View Single Post
  #21 (permalink)  
Old 09-26-2007, 02:37 AM
Erik de Castro Lopo
Guest
 
Posts: n/a
Default Re: 32 bit integer WAV file writer?

Stefan Reuther wrote:

> Actually, Windows Media Player refuses to open WAV files I wrote
> although I think I conform to the specs.


This is why you should use a library like

http://www.mega-nerd.com/libsndfile/

(of which I am the main author).

> Didn't get around debugging
> that, though: I use them for temporary storage only, and Audacity, Sound
> Recorder and sox read them just fine :-)


Audacity for instance uses libsndfile.

I suspect that the reason WMP doesn't like your WAV file is that
you have one of more of the following:

- more than 2 channels
- PCM bitwidths > 16

for which WMP insists on the WAVFORMATEXTENSIBLE style WAV files.

Erik
--
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
" Baldie is such a wonderful villain
The Linux/OSS community could not possibly ask for a better villain than
our man Baldie. He is absolutely perfect for the part. Just look at his
creds: 1) Physically repulsive; 2) Morally bankrupt; 3) Megalomaniacal;
4) Possessed of a truly nasty, abusive disposition; 5) Prone to Hitlerian
ranting; 6) Stalinesque paranoia... The list just goes on and on. The man
has the gift of true despicability, no doubt about it. If it weren't for
Baldie we'd be stuck with Bilgatus' merely vacuuous and creepy persona
for an anthropomorphization of the Evil Empire -- tepid at best."
-- Matthew Alton in LinuxToday.com on Steve Balmer
Reply With Quote