[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Sound stops working after hours of operation



Do you load the beep from disk once and then play it back with the in-memory sound object or are you reloading it each time?

-----------------------------
Sent from a mobile device. Apologies for brevity and top-posting.
-----------------------------

On Nov 4, 2011, at 5:42 PM, "PierreLafrance1@xxxxxxxxxxxx" <PierreLafrance1@xxxxxxxxxxxx> wrote:

> Hi
> Our Pygame application run 24/7 on a Atom/Intel Desktop Board D945GSEJT, with Debian Squeeze / Python / Pygame.
> 
> Our application use this code to create once in a while, a BEEP sound. Lets say its to wake up users :-)
> 
> self.beep_file = pygame.mixer.Sound("%s/beep.wav" % FILE_LOCATION)
> 
> This works find for many hours, but stops working within a day.  If we make this system command in shell :
> aplay %s/beep.wav
> 
> sound works and we can hear the sound.
> 
> In other words, sound trough Pygame doesn't work, but sounds trough system works fine.
> 
> We search the web for clues, but look likes we are pretty alone with this kind of bug.
> 
> Any pointer ?
> Thanks
> 
> -- 
> Pierre