Re: I am having trouble in creating a new wav file using mmioOpen
- From: "Chris P. [MVP]" <msdn@xxxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 09:44:07 -0400
On Sun, 9 Oct 2005 12:21:01 -0700, Srini wrote:
> Actually I haven't even gone that far. I am trying to first create a new
> *.wav file using mmioOpen with flags MMIO_CREATE Or MMIO_READWRITE before
> calling WaveInXXX functions. If I am successful in creating a new file or
> truncating an existing file every time I try to record, then I can work on
> actual recording part.
>
> hmmioOut = mmioOpen("Test.Wav", 0, MMIO_CREATE Or MMIO_READWRITE) 'Or
> MMIO_ALLOCBUF)
>
> mmioOpen should return a valid handle to the file created upon SUCCESS else
> returns ZERO. I am always getting ZERO. Don't know why???
If it works in VC 6 and not in VB with essentially the same function call I
would be very suspect of the function definition. Check the size of all
the parameters in the definition including ByVal, ByRef designators.
.
- References:
- Re: I am having trouble in creating a new wav file using mmioOpen
- From: alanglloyd
- Re: I am having trouble in creating a new wav file using mmioOpen
- Prev by Date: Multichannel Audio
- Next by Date: Re: Multichannel Audio
- Previous by thread: Re: I am having trouble in creating a new wav file using mmioOpen
- Next by thread: Re: I am having trouble in creating a new wav file using mmioOpen
- Index(es):
Relevant Pages
|