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:
Charles J. Cliffe 2015-10-15 21:01:07 -04:00
parent 249e04e69c
commit a4dc4498fc
2 changed files with 8 additions and 3 deletions

View File

@ -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) {

View File

@ -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;
} }