library support. Since we anyway only use mutexes, let's write our own little posix-mutex wrapper around that.
attempt to read (i.e. use the snd-api and convolver on the same buffer). Protect that section with a mutex.
position format. - if SNDFILE is writing it, add number of frames. - if we copy the header from the original, change the blocksizes to what sndfile is writing - otherwise the file is invalid.
end of the file, we return some empty buffer. Otherwise, we diligently skip while decoding ... otherwise skipping back will be a hassle.
(s)he gets back the current estimate of final size back. o mutex-protect global map.
it is according to spec: kaffeine does not know how to play the stream.
by sndfile. o pass through a sndfile. Not yet convolving, but at least re-generating.