Erik de Castro Lopo wrote:
> 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).
If I would redo my toolchain from scratch, I would probably do that. My
WAV I/O is part of a codec/filter test framework I started few years
ago, grew in little steps to 100x its originally intended size, and is
in production use although never intended to - but each evolution step
small enough that I said "just writing this little thing down is much
less effort than researching for an existing solution". I think you all
know this game :-)
> 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
Nope (2x16 bit is the maximum I handle). But actually I don't really
care. I mainly read others' WAVs, which works fine. If Audacity can read
my temporary files, that's nice because I don't have to write a custom
editor (like my terminal program saving its transcripts in HTML so I
don't need a custom viewer), but not a prime objective.
Stefan