El 08/03/2017 a las 0:03, Vojtěch Čihák escribió:

there are different informations about *.wav, so maybe there are
different impementations too.
http://soundfile.sapp.org/doc/WaveFormat/
https://blogs.msdn.microsoft.com/dawate/2009/06/23/intro-to-audio-programming-part-2-demystifying-the-wav-format/

Hello,

Wav (AKA RIFF WAVE) is a container (RIFF), not an audio format, inside a wav you can put many audio formats and other informations like author, copyright, cues, some of them standard (defined by Microsoft) and others proprietary.

Usual wav files that most people use are PCM (Pulse Code Modulation) or in more programmer words int16 per channel. This is the usual format, but you can put inside floats, mp3, GSM, ADPCM, and many more.

@Fredvs: If your wav is noise in audacity the reason is quite sure because you are writing float audio buffer with a wav PCM header. Wav PCM is 4 bytes per sample in stereo while float is 8 bytes and almost never used for wav. Header and audio data (format, channels, bit depth) must match.


--

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to