[wdmaudiodev] Re: - How to capture HDMI audio output data? Whether is sAPO a choice for it?

  • From: Jun Jiang <jun.jiang77@xxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Fri, 21 Oct 2011 09:53:13 +0000

Hi Mathew,  I changed your sample code to ignored the error code, 
AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY.I captured the Windows7 sample audio 
file, Sleep Away.mp3 and check the wave form of my capturing file with the 
original file with CoolEdit Pro. And I listened the 2 audio files carefully.I 
did not found/hearded difference. Could you please show me the reason why the 
error code, AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY, returned?Thanks a lot in 
advance.  Many thanks,Audleyswood
 From: jun.jiang77@xxxxxxxx
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: - How to capture HDMI audio output data? Whether is 
sAPO a choice for it?
Date: Fri, 21 Oct 2011 03:44:29 +0000








Hi Matthew,
 
Thank you very much. Your solution gave me big help. The loopback capture works 
well to capture HDMI audio output data.
 
I play a song and ran slience.exe as your suggesion but there was still 
AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY happened sometimes just like following 
cases in your blog:
    >loopback-capture
    Press Enter to quit...
    IAudioCaptureClient::GetBuffer set flags to 0x00000001 on pass 5381 after 
1088829 frames

    Thread HRESULT is 0x8000ffff
 
Could you please show me some suggstion on it? 
 
I have another question: How much delay will be added for loopback capture?
 
Thanks in advance.
 
 
Many thanks,
Audleyswood
 
 
From: Matthew.van.Eerde@xxxxxxxxxxxxx
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: - How to capture HDMI audio output data
 ? Whether is sAPO a choice for it?
Date: Thu, 20 Oct 2011 16:02:45 +0000











The designed solution to get audio that is playing is to use WASAPI loopback 
capture.
http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx
 


From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx]
On Behalf Of Jun Jiang

Sent: Thursday, October 20, 2011 3:34 AM

To: wdmaudiodev@xxxxxxxxxxxxx

Subject: [wdmaudiodev] - How to capture HDMI audio output data? Whether is sAPO 
a choice for it?


 

Hi Experts,

 

My question: How to capture HDMI audio output data? Whether is sAPO a choice 
for it?

 

I need the speaker data to do AEC. 

In my Windows 7 x64 PC, the audio output data was sent to HDMI speaker. The 
HDMI audio driver is Intel Display Audio driver.


Whether is sAPO a choice to capture HDMI audio data? Here, I can not change 
anying about HDMI audio driver because it is Intel driver not ours.

I am newie on sAPO.  Could somebody show me suggestions? 

 

If sAPO is not good choice to capture HDMI audio data, How can I do? Is there 
anohter way to do it?

 

Thanks in advance.

 

 

Many thanks,

Audleyswood

 

 

 

                                                                                
  

Other related posts: