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

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

I've tried disabling the mmap option, but the behaviour is the same.

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.

I guess that what I should do is to call alutExit() and alutInit() every 2 hours???

I haven't still tried to play via PulseAudio, I hope I will have some time today.

Thanks!


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

I believe I'm the one that reported this problem.  I didn't find a
solution to the problem in the time I had available to me.  I believe
the problem is with ALSA driver itself and is due to integer overflow
(problem manifests after about 6+ hrs
(2^32=48000*2channels*2bytes/channel*3600*6.21)).

I found that one can suspend the process having the playback problem
very briefly and then resume it and it will start playing again
normally.

I looked at upgrading my ALSA stack but it wasn't feasible for my
situation.  Perhaps you have that option.  My net searching didn't find
any specific mention of this problem with ALSA but I did find some fixes
related to specific hardware on Fedora Core that seemed similar.  It has
been a few months since I last looked at this so the details are a bit
fuzzy.  I did patch ALSA on a machine and looked at debug output
in /sys/...(?) and saw that the problem happened when some counters
(related to drain?) wrapped around.  I didn't manage to find the logic
that wasn't handling that situation correctly.

Troy.


On Tue, 2010-04-20 at 07:34 -0700, Chris Robinson wrote:
> On Tuesday 20 April 2010 7:01:01 am Arnau Font wrote:
> > Hi Chris,
> > 
> > I've modified the /etc/openal/alsoft.conf to disable the mmap feature. Is
> > it ok?
> 
> That's fine. :)
> 
> > Also, when the application is unable to play any sound, I can play some
> > wavs from outside the application.
> 
> That's good to know. At least ALSA/dmix itself isn't frozen up, just that what 
> the app's doing isn't getting through.
> _______________________________________________
> Openal mailing list
> [email protected]
> http://opensource.creative.com/mailman/listinfo/openal

_______________________________________________
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.