Wavpack support

Hi,
it would be great if MOC can read wavpack files in the future. It's a great lossless and free format but unfortunately, most linux players don't support it. >> http://www.wavpack.com for details.

Cheers,
Opera

Yes, it would be even greater if someone contribute some code for that :)

--
Damian Pietras - MOC developer

Here is something like a patch for moc-2.4.1. It uses standard wavpack decoder and standard io subsystem due to issues with rewinding. It also doesn't support streaming, but I'm still working on it. It was tested with 16bit integer and 32bit float source files. http://unsorted.ru/forum/splav/moc-wavpack/

Thanks!. I can't try it now because I'm in the middle of mu desktop upgrade (new Ubuntu :). Just after a very quick look it seems OK.

--
Damian Pietras - MOC developer

I've merged the plugin. Thanks.

--
Damian Pietras - MOC developer

Patch for trunk. Fixed 8,24,32 bit decoding. http://unsorted.ru/forum/splav/moc-wavpack/moc-wavpack-28.04.07.patch

There is also a change in wav_seek(), is it needed?

--
Damian Pietras - MOC developer

Oh, I can see it's just a removed debug() macro. Merged, thanks.

--
Damian Pietras - MOC developer

Oh yeah, I understand you. ;)
I'm coding in C only for a year and never on other's applications, I don't think I have the skills to do that myself. I don't even know how to start.
So I just hope one day someone with good programming abilities will be interested in making this plugin for that great audio codec.

Opera