victor_charlie has asked for the wisdom of the Perl Monks concerning the following question:
Hello, using a tutorial from Perl-gtk2 website, written by Ross McFarland -- basically the project is an alarm clock with a gui. At count 5 seconds it plays a .wav file, at 10 seconds another .wav. All the while we update text on a label showing the seconds counting up.
I get audio artifacts using SOX. WAVfile2 is faintly playing in the background of WAVfile1.
I changed over to use SDL v2.2.6; Because of SDL::Mixer I get much better audio fidelity. Much better. However, I have no synchronization. wav1.wav and then wav2.wav plays immediately as if one, single audio file. The code continues, then invokes the call for wav2 and it does play, but not on cue, Playback repeats for wav2 and is arbitrary, meaning any time before the 10-seconds test-condition.
I would post a code snippet, but current code is five files if we include the Glade<xml>, the .wav's, and the code.
Opinions wanted:
Thanks, really, if you can give me insight. Sound functionality is the step-child of coders. I like exploring the audio capabilities when I begin a new language.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Script with audio files
by Khen1950fx (Canon) on Jul 03, 2010 at 21:48 UTC | |
by victor_charlie (Novice) on Jul 05, 2010 at 09:23 UTC | |
by Khen1950fx (Canon) on Jul 05, 2010 at 09:49 UTC | |
by Anonymous Monk on Jul 05, 2010 at 09:47 UTC | |
by Khen1950fx (Canon) on Jul 05, 2010 at 10:01 UTC |