mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
A small change to accommodate new Nyquist version
This commit is contained in:
parent
9e5ec6d9cc
commit
a7c1906bf5
@ -1282,16 +1282,7 @@ bool NyquistEffect::ProcessOne()
|
|||||||
nyx_set_audio_params(mCurTrack[0]->GetRate(), 0);
|
nyx_set_audio_params(mCurTrack[0]->GetRate(), 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// UNSAFE_SAMPLE_COUNT_TRUNCATION
|
auto curLen = mCurLen.as_long_long();
|
||||||
// Danger! Truncation of long long to long!
|
|
||||||
// Don't say we didn't warn you!
|
|
||||||
|
|
||||||
// Note mCurLen was elsewhere limited to mMaxLen, which is normally
|
|
||||||
// the greatest long value, and yet even mMaxLen may be experimentally
|
|
||||||
// increased with a nyquist comment directive.
|
|
||||||
// See the parsing of "maxlen"
|
|
||||||
|
|
||||||
auto curLen = long(mCurLen.as_long_long());
|
|
||||||
nyx_set_audio_params(mCurTrack[0]->GetRate(), curLen);
|
nyx_set_audio_params(mCurTrack[0]->GetRate(), curLen);
|
||||||
|
|
||||||
nyx_set_input_audio(StaticGetCallback, (void *)this,
|
nyx_set_input_audio(StaticGetCallback, (void *)this,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user