[wdmaudiodev] Re: API used by Sounds/Program Events

  • From: Vincent Wang <vincent0wang@xxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Sat, 9 Nov 2013 15:36:04 +0800

Hi Matthew and Frank,
Thanks for confirming.
And as you observed, there is no issue, when there is other stream on.
VincentFrom: Matthew.van.Eerde@xxxxxxxxxxxxx
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: API used by Sounds/Program Events
Date: Fri, 8 Nov 2013 20:18:45 +0000









Yup, I can repro.
 
It seems to be specific to PlaySound. PlaySound internally calls winMM 
(waveOutOpen etc.), but when I use winMM directly I can hear
 the full sound.
 
I can also get it to play the full sound if I have silence.exe running in the 
background (or any other audio stream.)
 


From: wdmaudiodev-bounce@xxxxxxxxxxxxx
 [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Matthew van Eerde

Sent: Friday, November 8, 2013 9:24 AM

To: wdmaudiodev@xxxxxxxxxxxxx

Subject: [wdmaudiodev] Re: API used by Sounds/Program Events


 
The Sound control panel basically just calls PlaySound(filename, NULL, 
SND_ASYNC | SND_FILENAME).
 
Does it repro if you have other audio playing (e.g., silence?) Try running 
silence.exe in the background:
http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/10/sample-playing-silence-via-wasapi-event-driven-pull-mode.aspx
 
I will see if I can repro internally.
 


From:
wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]
On Behalf Of Frank Yerrace

Sent: Friday, November 8, 2013 8:35 AM

To: wdmaudiodev@xxxxxxxxxxxxx

Subject: [wdmaudiodev] Re: API used by Sounds/Program Events


 
Yes, these go through different paths, although these paths do ultimately 
together before reaching the driver.
 
It sounds to me like you may have discovered a bug in the code that plays 
sounds from the Sounds page of the Sound control panel.
 
Frank Yerrace
Microsoft
 


From:
wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]
On Behalf Of Vincent Wang

Sent: Friday, November 8, 2013 1:20 AM

To: wdmaudiodev@xxxxxxxxxxxxx

Subject: [wdmaudiodev] API used by Sounds/Program Events


 

Hi all,

 


In Win 8.1, I finding different behavior for .wav file playback using the 
Windows Media Player and Sounds/ Program Events (responsible for playing back 
system notification).


 


I wonder are they calling different API with different buffer management.


 


When playing back a short wav clip, and record digitally from the sound card 
digital mix, I'm getting a much shorter clips from the Program Events player 
compared to WMP.


I can see part of the input wav is chopped (due to buffer management?) The 
number of samples chopped is also dependent on the sampling frequency.


 


Thanks


 


Best Regards


Vincent


                                          

Other related posts: