Hi
The line of code is there :
self.beep_file = pygame.mixer.Sound("%s/beep.wav" % FILE_LOCATION)
So we reload the file from disk (SDCARD) each time.
Is this can be an issue ?
Thanks
--
Pierre
On 11-11-04 09:36 PM, Luke Paireepinart wrote:
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,
"pierrelafran...@sympatico.ca"<pierrelafran...@sympatico.ca> 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