Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
https://msdn.microsoft.com/zh-cn/subscriptions/securedownloads/dd370800.aspx
I just write a process to capture sound from like the link.And I got the buffer succeed.
I try to write the sound into a wav file.
The IAudioClient supported WAVEFORMATEX value is
cbSize 22
nAvgBytesPerSec 352800
nBlockAlign 8
nChannels 2
nSamplesPerSec 44100
wBitsPerSample 32
wFormatTag 65534
But the problem is if I set the wFormatTag to 65534 the windows media can't open it.If I set wFormatTao to 1 .Windows media can open it,but the sound is not right,it's slowly and not clearly.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900