mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-07 23:57:50 -04:00
AudioThread: rollback some guard code because of previously wrong understanding
This commit is contained in:
parent
033bbd07df
commit
b55609c802
@ -345,10 +345,7 @@ void AudioThread::setSampleRate(int sampleRate) {
|
|||||||
//Set bounded sample rate:
|
//Set bounded sample rate:
|
||||||
for (size_t j = 0; j < boundThreads.size(); j++) {
|
for (size_t j = 0; j < boundThreads.size(); j++) {
|
||||||
AudioThread *srcmix = boundThreads[j];
|
AudioThread *srcmix = boundThreads[j];
|
||||||
// the controller thread is part of the boundedThreads, so prevent infinite recursion:
|
srcmix->setSampleRate(sampleRate);
|
||||||
if (srcmix != this) {
|
|
||||||
srcmix->setSampleRate(sampleRate);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//make a local copy, snapshot of the list of demodulators
|
//make a local copy, snapshot of the list of demodulators
|
||||||
|
Loading…
x
Reference in New Issue
Block a user