mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-27 08:46:20 +02:00
fix 4231: do not set stream format for the global scope as it is not required and not supported by all effects
(cherry picked from commit 3cc0977d3646478dc15951523eb6fc16cceb1c7e) Signed-off-by: Avery King <gperson@disroot.org>
This commit is contained in:
committed by
Avery King
parent
4cf3820f51
commit
db821dbb46
@@ -453,13 +453,11 @@ bool AudioUnitWrapper::SetRateAndChannels(
|
||||
sizeof(float) * 8,
|
||||
};
|
||||
|
||||
unsigned one = 1u;
|
||||
const struct Info{
|
||||
unsigned &nChannels;
|
||||
AudioUnitScope scope;
|
||||
const char *const msg; // used only in log messages
|
||||
} infos[]{
|
||||
{ one, kAudioUnitScope_Global, "global" },
|
||||
{ mAudioIns, kAudioUnitScope_Input, "input" },
|
||||
{ mAudioOuts, kAudioUnitScope_Output, "output" },
|
||||
};
|
||||
@@ -471,7 +469,7 @@ bool AudioUnitWrapper::SetRateAndChannels(
|
||||
identifier.wx_str(), msg);
|
||||
return false;
|
||||
}
|
||||
if (scope != kAudioUnitScope_Global) {
|
||||
|
||||
bool failed = true;
|
||||
++nChannels;
|
||||
do {
|
||||
@@ -488,7 +486,6 @@ bool AudioUnitWrapper::SetRateAndChannels(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user