Sat Sep 11 14:17:44 PDT 1999

(Raster)

fix minor sample loading and caching bug.. :)


SVN revision: 241
This commit is contained in:
Carsten Haitzler 1999-09-11 20:21:02 +00:00
parent f12c13ba63
commit f02b72d528
2 changed files with 9 additions and 2 deletions

View File

@ -1642,3 +1642,10 @@ the middle-desktop button menu works and displays something nice.
i hope all theme desginers use this to plug themselves and any comments or
credits they want to give for their theme.
-------------------------------------------------------------------------------
Sat Sep 11 14:17:44 PDT 1999
(Raster)
fix minor sample loading and caching bug.. :)

View File

@ -111,9 +111,9 @@ SoundPlay(Sample * s)
s->id = esd_sample_cache(sound_fd, s->format, s->rate, size, s->file);
write(sound_fd, s->data, size);
confirm = esd_confirm_sample_cache(sound_fd);
if (confirm != s->id)
s->id = 0;
}
if ((s->id < 0) || (confirm != s->id))
s->id = 0;
Efree(s->data);
s->data = NULL;
}