Win32 PlaySound() function

  • Follow


Subject: Win32 PlaySound() function

Using: VC++ 2008 Express, Win32, Windows XP.

Once a sound has been initiated asynchronously via the
PlaySound() function, is there a way to get information
on the status of the sound?

For example, is there a way to know if the sound has
finished playing? Is there a way to know if the sound
is still playing?

Is there a way to get the playback cursor (the current
position within the playing waveform)?

TIA.


0
Reply C 1/22/2011 12:56:11 PM

On Sat, 22 Jan 2011 07:56:11 -0500, "C.M. Burns"
<me@privacy.net> wrote:

>Subject: Win32 PlaySound() function
>
>Using: VC++ 2008 Express, Win32, Windows XP.
>
>Once a sound has been initiated asynchronously via the
>PlaySound() function, is there a way to get information
>on the status of the sound?
>
>For example, is there a way to know if the sound has
>finished playing? Is there a way to know if the sound
>is still playing?
>
>Is there a way to get the playback cursor (the current
>position within the playing waveform)?
>

I don't know about PlaySound, but all those things can be
done with the low-level waveOutXXX functions, such as
waveOUtGetPosition.  I assume PlaySound is just a wrapper
for those same functions, so it seems at least plausible
that you might get access to them.  

But it might be easier to just rewrite to use the waveOut
functions completely.

Best regards.


Bob Masta
 
              DAQARTA  v6.00
   Data AcQuisition And Real-Time Analysis
              www.daqarta.com
Scope, Spectrum, Spectrogram, Sound Level Meter
    Frequency Counter, FREE Signal Generator
           Pitch Track, Pitch-to-MIDI 
          Science with your sound card!
0
Reply N0Spam 1/22/2011 1:47:31 PM


1 Replies
413 Views

(page loaded in 0.044 seconds)

Similiar Articles:








7/15/2012 5:07:29 AM


Reply: