Re: acmStreamOpen



"Tobia Quantrill" <xeres@xxxxxx> wrote in message
news:OyraWCsFGHA.3120@xxxxxxxxxxxxxxxxxxxxxxx
> Is there a way to make this function succeed?
>
> I'm calling this funcktion with the following params and it always fails
> with return code MMSYSERR_INVALPARAM
>
> wfxIn.wFormatTag = 1
> wfxIn.nChannels = 2
> wfxIn.nSamplesPerSec = 44100
> wfxIn.nAvgBytesPerSec = 176400
> wfxIn.nBlockAlign = 4
> wfxIn.wBitsPerSample = 16
> wfxIn.cbSize = 0
>
> pwfxOut->wFormatTag = 85
> pwfxOut->nChannels = 2
> pwfxOut->nSamplesPerSec = 44100
> pwfxOut->nAvgBytesPerSec = 16000
> pwfxOut->nBlockAlign = 1
> pwfxOut->wBitsPerSample = 0
> pwfxOut->cbSize = 12
>
> acmDriverOpen(&m_hACMDrv, m_hACMDrvID, 0); // SUCCEEDED !!!! m_hACMDrvID
> is the ID of the mp3 acm driver
>
> HANDLE h = CreateEvent(NULL, FALSE, FALSE, NULL);
>
> mmR = acmStreamOpen(&m_hACMStream, m_hACMDrv, &wfxIn, pWfxOut, NULL,
> (DWORD_PTR)h, 0, CALLBACK_EVENT);
>
> what is wrong here???
>
> thnx

I located the problem.... from some unknown reason to me, acmStreamOpen will
succeed only if you call it with flag ACM_STREAMOPENF_NONREALTIME. Maybe it
has something to do with this particular codec - Fraunhofer.


.



Relevant Pages

  • acmStreamOpen
    ... I'm calling this funcktion with the following params and it always fails ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: ExitWindowsEx function not working.
    ... you should always check the API return value ... to determine if the API calling fails. ... As Int32, ByVal dwreserved As Int32) As Int32 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: set of sets
    ... the add succeeds ... the remove fails eventually not calling hash. ... Is this fast as with lists? ...
    (comp.lang.python)
  • Re: 802.1x for wired networks
    ... via 802.1x to a wired network? ... calling 80211 ioctl's and thus fails. ... I found the open1x project, but did not find it in the ports tree. ...
    (freebsd-net)
  • Re: LINECALLSTATE_CONNECTED -> delay
    ... > 10:54.18.960: lineOpen returned SUCCESS ... Check "Params" check box... ... > 10:54.26.441: Calling lineGetID ... > 10:54.26.456: lineGetID returned SUCCESS ...
    (microsoft.public.win32.programmer.tapi)