Re: acmStreamOpen
- From: "Tobia Quantrill" <xeres@xxxxxx>
- Date: Thu, 12 Jan 2006 10:16:50 +0100
"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.
.
- References:
- acmStreamOpen
- From: Tobia Quantrill
- acmStreamOpen
- Prev by Date: Re: acmStreamOpen
- Next by Date: Re: waveInOpen, window handle from VB
- Previous by thread: Re: acmStreamOpen
- Next by thread: Re: waveInOpen, window handle from VB
- Index(es):
Relevant Pages
|