Think about Loose Coupling | |
PerlMonks |
Win32::Sound with textby sulfericacid (Deacon) |
on Oct 14, 2005 at 23:18 UTC ( [id://500400]=perlquestion: print w/replies, xml ) | Need Help?? |
sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:
After reading a node recently on playing sounds through the command prompt, I decided I'd give it a try with Win32::Sound. It works great with Wav playback but I have run into a problem. While running this on Windows XP's command prompt, it'll load the song and play it BUT it will not allow anything else to continue until the song is done. This is to say, I want to print stuff to screen during the wav playback but it's just not pushing through. Anyone have suggestions on how to get around this? UPDATE: The solution is adding SND_ASYNC to the file open. Win32::Sound::Play($song, SND_ASYNC); does the trick.
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us" sulfericacid
Back to
Seekers of Perl Wisdom
|
|