RE: Sound doesn't play anymore after a few plays

Arnau Font <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <80E021E474D70646964D4AAB69FF3827C5B67AFEBF@IPSMailServer.IPSMail.com>
Hi Chris, 

After a few tests I've been unable to fix it in a proper way... no pulse audio, no emulation... maybe it did not configure it properly.

What it did work was to reinitialize the library every 2 hours. I check that no sound is being played, and after that I unload the library and load back all the buffers and sources. There are few sounds, so the reload time is not a problem.

One thing I noticed is that the sound doesn't completely stop. It's more like it is not synchronized or corrupted, as random sounds are sometimes played (or maybe the sound itself but in a much higher speed).

Well, I'll leave it this way now (initializing every two hours).

Thanks for your help,

Arnau.

-----Missatge original-----
De: [email protected] [mailto:[email protected]] En nom de Chris Robinson
Enviat: miércoles, 21 de abril de 2010 12:00
Per a: [email protected]
Tema: Re: [Openal] Sound doesn't play anymore after a few plays

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

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.