An attempt to port lossyWAV to POSIX.