Jacob Meuser wrote:
I did not write the code, but
a) WAV is a well known format. probably all audio players/converters
support WAV format.
b) aucat(1) (previously and in now legacy mode) treats raw streams
as mono mulaw @ 8kHz, so playing a raw stream with aucat(1)
(previously or now in legacy mode) would not work correctly.
c) the WAV header is the first 44 bytes of the stream. it's quite
simple to turn a WAV into a raw stream, if a raw stream is
preferred.
Isn't point c) a slightly dangerous assumption? As far as
I know a WAV file can contain multiple "data" chunks ...
just skipping 44 bytes would be a bad idea in this case.