My pAudioClient->Initialize call fails if I select AUDCLNT_SHAREMODE_EXCLUSIVE with AUDCLNT_STREAMFLAGS_EVENTCALLBACK and the error log i mentioned in the previous mail. According to SDK help doc this error can occurs if i pass invalid format. I am sure that i am passing correct format -- if I passed wrong format then pAudioClient->Initialize would also fail with out AUDCLNT_STREAMFLAGS_EVENTCALLBACK flag. But with out this stream callback everything works fine. On Thu, Mar 5, 2009 at 4:02 AM, DJ Sisolak <dsisolak@xxxxxxxxxxxxxxxxxxxxxx>wrote: > Have you been able to successfully activate the IAudioClient interface? > If so, I am not sure how this could give you an invalid argument. > > > > *From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto: > wdmaudiodev-bounce@xxxxxxxxxxxxx] *On Behalf Of *Chandan Sourav Pal > *Sent:* Sunday, March 01, 2009 10:47 PM > *To:* wdmaudiodev@xxxxxxxxxxxxx > *Cc:* chandansouravpal@xxxxxxxxx > *Subject:* [wdmaudiodev] Re: AUDCLNT_SHAREMODE_EXCLUSIVE with > AUDCLNT_STREAMFLAGS_EVENTCALLBACK failed > > > > Hi DJ, > > > > Thanks for reply. > > > > The value that I am getting from GetDevicePeriod call. The return error > code is E_INVALIDARG > > > > Thanks and regards, > > Chandan > > > > > > > > On Sat, Feb 28, 2009 at 6:03 AM, DJ Sisolak < > dsisolak@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Chandan, > > > > What is the value you are setting for hnsRequestedDuration? What is the > error code you are receiving back from Initialize? > > > > Thx, > > DJ > > > > *From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto: > wdmaudiodev-bounce@xxxxxxxxxxxxx] *On Behalf Of *Chandan Sourav Pal > *Sent:* Friday, February 27, 2009 7:26 AM > *To:* wdmaudiodev@xxxxxxxxxxxxx > *Subject:* [wdmaudiodev] AUDCLNT_SHAREMODE_EXCLUSIVE with > AUDCLNT_STREAMFLAGS_EVENTCALLBACK failed > > > > Hi all, > > I am trying to implement an audio play and record application using Vista > new WASAPI for my audio WaveRT audio driver. When i am playing or recording > in AUDCLNT_SHAREMODE_SHARED mode it working fine (with max latency 8 ms). To > minimize the latency I want to use AUDCLNT_SHAREMODE_EXCLUSIVE mode for > playing and recording, but it does not work if I specify > AUDCLNT_STREAMFLAGS_EVENTCALLBACK flag. > > hr = pAudioClient->Initialize( AUDCLNT_SHAREMODE_EXCLUSIVE, > AUDCLNT_STREAMFLAGS_EVENTCALLBACK, > hnsRequestedDuration, > hnsRequestedDuration, > &wfx, > NULL); > > Without this EVENT CALLBACK the Initialize succeed. I am using Vista SP1 as > a client. Is there anything we have to do special in the WaveRT driver -- > Or I have do something in my application? I have no idea what is going > wrong. > > F.Y.I This WaveRT driver works fine with WaveXXX legacy APIs with > > Please help. > > Thanks in advance, > Chandan > > >