Hi Edwin,
did the latest hints from Jerry solve your problem?
Best Regards, Hauke
Edwin van den Oosterkamp wrote:
Hello Jerry,
Thank you for your reply.
This is what I am currently using in my code:
WAVEFORMATEX wfx; memset( &wfx, 0, sizeof( WAVEFORMATEX ) ); wfx.wFormatTag = WAVE_FORMAT_PCM; wfx.nChannels = m_CardNumChannels; wfx.nSamplesPerSec = m_CardSamplerate; wfx.nBlockAlign = wfx.nChannels * 2; wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; wfx.wBitsPerSample = 16;
Where m_CardNumChannels has been 1 and 2 and m_CardSamplerate has been 48000 and 44100.
I've also tried the following:
WAVEFORMATEXTENSIBLE wfx; wfx.Format.wFormatTag = WAVE_FORMAT_EXTENSIBLE; wfx.Format.nChannels = 2; wfx.Format.nSamplesPerSec = m_CardSamplerate; wfx.Format.nBlockAlign = 4; wfx.Format.nAvgBytesPerSec = wfx.Format.nSamplesPerSec * wfx.Format.nBlockAlign; wfx.Format.wBitsPerSample = 16; wfx.Format.cbSize = sizeof(WAVEFORMATEXTENSIBLE)-sizeof(WAVEFORMATEX); wfx.Samples.wValidBitsPerSample = 16; wfx.dwChannelMask = KSAUDIO_SPEAKER_STEREO; wfx.SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
Without much luck unfortunately... Did not try this one in mono to be honest.
What are the settings you recommend?
Best regards,
Ing. Edwin van den Oosterkamp R&D, MDO UK
Hi Edwin
I've got DirectKS audio working over a variety of USB devices on Win2k and WinXP SP1/SP2.
When you create your capture pin what subformat and channelmask do you use?
Jerry ******************
WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/
******************
WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/