View Single Post
  #7  
Old January 5th, 2001, 01:30 AM
GordonF GordonF is offline
Registered User
 
Join Date: Jan 2001
Posts: 44
Exclamation Using MCI Codecs instead of internal WAV code?

Quote:
Have you tried more than one .wav file? Are they imported from a CD or computed by an audio program? The problem might be the .wav header is non-standard.
Seeing a minor glitch in an input file or seeing anything but a pure 44.1k audio file should not cause a program to crash. If you have to perform sanity checks on your input before using it you should do so. There really isn't an excuse for bad input causing an app to crash - this I learned the hard way after programming for an ISP myself.

An alternate idea for processing audio input might be to use the MCI or DirectShow codecs already built into modern versions of Win9x and Win2K. Not only would this leave the sanity checks to code that's already well thought out, but this makes your software open to support things like MP3 and other audio formats transparently. Consider this for Microstudio as well as for KHP.