diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /libk3b/plugin/libsamplerate | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/plugin/libsamplerate')
-rw-r--r-- | libk3b/plugin/libsamplerate/samplerate.h | 4 | ||||
-rw-r--r-- | libk3b/plugin/libsamplerate/src_sinc.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libk3b/plugin/libsamplerate/samplerate.h b/libk3b/plugin/libsamplerate/samplerate.h index dfc4448..f83ae48 100644 --- a/libk3b/plugin/libsamplerate/samplerate.h +++ b/libk3b/plugin/libsamplerate/samplerate.h @@ -123,8 +123,8 @@ const char* src_strerror (int error) ; enum { - SRC_SINC_BEST_QUALITY = 0, - SRC_SINC_MEDIUM_QUALITY = 1, + SRC_SINC_BEST_TQUALITY = 0, + SRC_SINC_MEDIUM_TQUALITY = 1, SRC_SINC_FASTEST = 2, SRC_ZERO_ORDER_HOLD = 3, SRC_LINEAR = 4 diff --git a/libk3b/plugin/libsamplerate/src_sinc.c b/libk3b/plugin/libsamplerate/src_sinc.c index ddfc06b..cca8b64 100644 --- a/libk3b/plugin/libsamplerate/src_sinc.c +++ b/libk3b/plugin/libsamplerate/src_sinc.c @@ -114,10 +114,10 @@ const char* sinc_get_name (int src_enum) { switch (src_enum) - { case SRC_SINC_BEST_QUALITY : + { case SRC_SINC_BEST_TQUALITY : return "Best Sinc Interpolator" ; - case SRC_SINC_MEDIUM_QUALITY : + case SRC_SINC_MEDIUM_TQUALITY : return "Medium Sinc Interpolator" ; case SRC_SINC_FASTEST : @@ -131,10 +131,10 @@ const char* sinc_get_description (int src_enum) { switch (src_enum) - { case SRC_SINC_BEST_QUALITY : + { case SRC_SINC_BEST_TQUALITY : return "Band limitied sinc interpolation, best quality, 97dB SNR, 96% BW." ; - case SRC_SINC_MEDIUM_QUALITY : + case SRC_SINC_MEDIUM_TQUALITY : return "Band limitied sinc interpolation, medium quality, 97dB SNR, 90% BW." ; case SRC_SINC_FASTEST : @@ -170,7 +170,7 @@ sinc_set_converter (SRC_PRIVATE *psrc, int src_enum) psrc->reset = sinc_reset ; switch (src_enum) - { case SRC_SINC_BEST_QUALITY : + { case SRC_SINC_BEST_TQUALITY : temp_filter.coeffs = high_qual_coeffs ; temp_filter.coeff_half_len = (sizeof (high_qual_coeffs) / sizeof (coeff_t)) - 1 ; temp_filter.index_inc = 128 ; @@ -178,7 +178,7 @@ sinc_set_converter (SRC_PRIVATE *psrc, int src_enum) temp_filter.coeff_len = sizeof (high_qual_coeffs) / sizeof (coeff_t) ; break ; - case SRC_SINC_MEDIUM_QUALITY : + case SRC_SINC_MEDIUM_TQUALITY : temp_filter.coeffs = mid_qual_coeffs ; temp_filter.coeff_half_len = (sizeof (mid_qual_coeffs) / sizeof (coeff_t)) - 1 ; temp_filter.index_inc = 128 ; |