breakfastquay / rubberband

Official mirror of Rubber Band Library, an audio time-stretching and pitch-shifting library.
http://breakfastquay.com/rubberband/
GNU General Public License v2.0
566 stars 91 forks source link

Mismatch between C++ and C option values #19

Closed mjbshaw closed 4 years ago

mjbshaw commented 4 years ago

In C++:

OptionPitchHighSpeed   = 0x00000000,
OptionPitchHighQuality = 0x02000000,

In C:

RubberBandOptionPitchHighQuality = 0x00000000,
RubberBandOptionPitchHighSpeed   = 0x02000000,

The enum order (and values) are swapped in the C and C++ headers.

cannam commented 4 years ago

Ouch! Thanks for the report. The C++ one of course is intended to be correct, and the documentation agrees with it. I've updated the C header.