mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-12-02 08:35:12 -05:00
Add support for my experimental firpfbch2_crcf_set_channel_state
- Needs my fork of liquid-dsp at: https://github.com/cjcliffe/liquid-dsp/tree/firpfbch_toggle_channels
This commit is contained in:
parent
249e04e69c
commit
a4dc4498fc
@ -214,6 +214,11 @@ void SDRPostThread::run() {
|
|||||||
|
|
||||||
// Find active demodulators
|
// Find active demodulators
|
||||||
if (nRunDemods) {
|
if (nRunDemods) {
|
||||||
|
|
||||||
|
for (int i = 0; i < numChannels; i++) {
|
||||||
|
firpfbch2_crcf_set_channel_state(channelizer, i, (demodChannelActive[i]>0)?1:0);
|
||||||
|
}
|
||||||
|
|
||||||
// channelize data
|
// channelize data
|
||||||
// firpfbch2 output rate is 2 x ( input rate / channels )
|
// firpfbch2 output rate is 2 x ( input rate / channels )
|
||||||
for (int i = 0, iMax = dataSize; i < iMax; i+=numChannels/2) {
|
for (int i = 0, iMax = dataSize; i < iMax; i+=numChannels/2) {
|
||||||
|
@ -245,9 +245,9 @@ int SDRThread::getOptimalChannelCount(long long sampleRate) {
|
|||||||
optimal_count = 4;
|
optimal_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (optimal_count > 16) {
|
// if (optimal_count > 16) {
|
||||||
optimal_count = 16;
|
// optimal_count = 16;
|
||||||
}
|
// }
|
||||||
return optimal_count;
|
return optimal_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user