Re: I am having trouble in creating a new wav file using mmioOpen



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.
.



Relevant Pages

  • Re: OT- Calif nears abyss
    ... Obama (ZERO) ... AFAICT it's the truth. ... He has run a successful congressional campaign, ... successful senatorial campaign and successful presidential campaign. ...
    (rec.outdoors.rv-travel)
  • Re: No Such Thing As "Macro" Evolution
    ... > mate with an evening primrose at zero. ... Are you saying that you aren't? ... probability of successful mating is zero. ...
    (talk.origins)
  • Re: Gun control and rape - The myths and the facts
    ... Phil, if you were successful in banning knives in AU, would stabbings drop ... to 0.0% (zero point zero)? ... If you were successful in banning ladders, would falls from ladders drop to ...
    (talk.politics.guns)
  • viapropm doesnt like sys/dev/pci.c rev 1.214
    ... pci_set_command_bitwas successful with a subsequent PCI_READ_CONFIG ... What is annoying is that by changing the last line to return a zero instead ... zero bytes is a silly response to a silly question. ...
    (freebsd-current)
  • Re: Gun control and rape - The myths and the facts
    ... > Phil, if you were successful in banning knives in AU, would stabbings drop ... > to 0.0% (zero point zero)? ... > If you were successful in banning ladders, would falls from ladders drop to ...
    (talk.politics.guns)