Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WavPack decoding support #168

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

WavPack decoding support #168

wants to merge 3 commits into from

Conversation

c41x
Copy link

@c41x c41x commented Mar 13, 2017

As in title.


namespace WavPackNamespace
{
#include <wavpack/wavpack.h>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in true JUCE fashion wavpack's files would be added locally to the module.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we don't generally include 3rd party headers unless really necessary. What is in wavpack.h and where would someone get it? Does it rely on a static library to go with it, or is it header only?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you can directly get the source: http://www.wavpack.com/downloads.html#sources

Alternatively, you could add a git submodule for its (official?) repository: https://github.com/dbry/WavPack

@c41x
Copy link
Author

c41x commented Mar 30, 2017

I've included Wavpack source, only needed files, fixed warnings, and conversion errors.

@jrlanglois
Copy link

Was curious, so ran the code on VS2013 and VS2015 - no warnings, which is good! Problem is that I can't find any files to test with. I guess this format is a bit niche?

@c41x
Copy link
Author

c41x commented Apr 11, 2017

You're right, it is a bit niche (actually I am writing music player in JUCE so I want to support all formats). I think the easiest way to test it is to download converter (there is one in wavpacks site) and convert some audio to wv.

@jrlanglois
Copy link

Thanks. I got a file converted using all sorts of different WavPack settings and they all played back just fine.

@jrlanglois
Copy link

jrlanglois commented Apr 26, 2017

@c41x I'd be keen on using this in our application for similar reasons. Have you mentioned this PR on the forums? Could be good timing with JUCE 5...

@c41x
Copy link
Author

c41x commented Sep 24, 2017

@jrlanglois Nope, I'm not registered on JUCE forums... If you write audio player you could use my FFmpeg decoder for JUCE (https://github.com/c41x/JUCE-FFmpeg) :)

@jrlanglois
Copy link

@c41x I suggest you post that FFMPEG reader support on the forums - I think it will get a decent amount of attention!

@jrlanglois
Copy link

@c41x I'm not so sure about the wavpack reader code after testing this with wavpack's provided test suite.

@jrlanglois
Copy link

jrlanglois commented Oct 18, 2017

Also, the sample rates supported by WavPack are as follows:

6000, 8000, 9600, 11025, 12000, 16000, 22050, 24000,
32000, 44100, 48000, 64000, 88200, 96000, 192000

You've only listed a subset, and some incorrect rates:

8000, 11025, 12000, 16000, 22050, 32000,
44100, 48000, 88200, 96000, 176400, 192000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants