Added possibility to get size of filterbank

This commit is contained in:
Anne de Jong 2020-01-20 12:10:57 +01:00
parent 5dbccf4797
commit 60a5c63748
2 changed files with 15 additions and 0 deletions

View File

@ -21,6 +21,13 @@ typedef struct Sosfilterbank {
dmat state;
} Sosfilterbank;
us Sosfilterbank_getFilterbankSize(const Sosfilterbank* fb) {
fsTRACE(15);
assertvalidptr(fb);
return fb->filterbank_size;
feTRACE(15);
}
Sosfilterbank* Sosfilterbank_create(const us filterbank_size,
const us nsections) {

View File

@ -23,6 +23,14 @@ typedef struct Sosfilterbank Sosfilterbank;
Sosfilterbank* Sosfilterbank_create(const us filterbank_size,
const us nsections);
/**
* Returns the number of channels in the filterbank (the filberbank size).
*
* @param[in] fb: Filterbank handle
* @return The number of filters in the bank
* */
us Sosfilterbank_getFilterbankSize(const Sosfilterbank* fb);
/**
* Initialize the filter coeficients in the filterbank
*