PDA

View Full Version : auto releasing sound sources



{MSX}
13-03-2005, 05:57 PM
ok, i've a sound source. I should free it after use with AlDeleteSources(1, @source);

Is there a way instead to auto release a source when the sound is over? or some other mean to auto-free the source?

Thanks

noeska
14-03-2005, 05:42 PM
Hmmm if you are able to detect if a source is playing or not you could periodicaly delete all nonplaying sources. I do not believe there is such an thing as play and delete.

{MSX}
14-03-2005, 07:06 PM
Hmmm if you are able to detect if a source is playing or not you could periodicaly delete all nonplaying sources. I do not believe there is such an thing as play and delete.

Ok thanks.. i've solved simply reusing the source..