[wdmaudiodev] WaveRT weird problem

  • From: Robert Bielik <robert.bielik@xxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 26 Oct 2011 15:38:02 +0200

Hi all,

I have a weird problem with a WaveRT device (Conexant 20561 SmartAudio HD) on 
Windows 7 (a Lenovo PC) , I've checked 
KSPROPERTY_RTAUDIO_QUERY_NOTIFICATION_SUPPORT which returns OK and TRUE for 
notification support, so subsequently I call 
KSPROPERTY_RTAUDIO_BUFFER_WITH_NOTIFICATION:

    KSRTAUDIO_BUFFER_PROPERTY_WITH_NOTIFICATION propIn;
    KSRTAUDIO_BUFFER propOut;

    propIn.BaseAddress = 0;
    propIn.NotificationCount = 2;
    propIn.RequestedBufferSize = *pRequestedBufSize;    << = 5292  (2 * 441 
frames/buffer * 6 bytes/frame)
    propIn.Property.Set = KSPROPSETID_RtAudio;
    propIn.Property.Id = KSPROPERTY_RTAUDIO_BUFFER_WITH_NOTIFICATION;
    propIn.Property.Flags = KSPROPERTY_TYPE_GET;
    DWORD bytesReturned = 0;

    BOOL result = DeviceIoControl(pPin->handle, IOCTL_KS_PROPERTY,
        &propIn,
        sizeof(KSRTAUDIO_BUFFER_PROPERTY_WITH_NOTIFICATION),
        &propOut,
        sizeof(KSRTAUDIO_BUFFER),
        &bytesReturned,
        NULL);

and I get FALSE result and GetLastError() returns ERROR_INVALID_PARAMETER. This 
code works fine on _several_ other machines, also on Windows 7 machines, and 
the device works fine otherwise in Windows 7, hence I must be doing something 
wrong (?)

Ideas?

TIA
/Rob

******************

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/

Other related posts: