Re: Sound doesn't play anymore after a few plays
Chris Robinson <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday 21 April 2010 12:52:21 am Arnau Font wrote: > Hi, > > I've tried disabling the mmap option, but the behaviour is the same. Sad. :( > > In my application I don't have a looping playback that keeps playing for 6 > hours, I have a sound of 0.5 seconds being played every 3 seconds. > > As it is not looped, I never call the alSourceStop as I suppose is called > automatically. When I play again the sound, I call alSourceRewind and > alSourcePlay. ALSA is still playing silence when no sources are playing, so even though you don't hear anything, it is still running. Do source offsets and state still continue to update while it's silent, or does it completely stop processing audio? If it completely stops, I can watch for that in the ALSA backend and try to kick it into restarting automatically. But if it's still processing and just silent, there's probably not much I can do. > I guess that what I should do is to call alutExit() and alutInit() every 2 > hours??? If you can handle shutting the audio system down and restarting it, and don't mind the break it'll cause in playback, that may work. Alternatively, you can try doing what Sam did, using ALSA's OSS emulation. Or see how well PulseAudio works for you. _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal