-
Notifications
You must be signed in to change notification settings - Fork 11
Add SAL and limiter, and clean up build files #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| /* | ||
| * Copyright (c) Qualcomm Innovation Center, Inc. All Rights Reserved. | ||
| * SPDX-License-Identifier: BSD-3-Clause-Clear | ||
| */ | ||
|
|
||
| /***************************************************************************** | ||
| * FILE NAME: audpp_filterDesign.h TYPE: C-header file | ||
| * DESCRIPTION: Header file for filter design, adapted from QSound code. | ||
| *****************************************************************************/ | ||
| #ifndef _AUDPP_FILTERDESIGN_H_ | ||
| #define _AUDPP_FILTERDESIGN_H_ | ||
| #include "audpp_util.h" | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif /* __cplusplus */ | ||
|
|
||
| /*============================================================================= | ||
| Function Declarations | ||
| =============================================================================*/ | ||
| int32_t Q23_cosine_norm_freq | ||
| ( | ||
| int32_t freqHz, /* input frequency in Hz */ | ||
| int32_t sampleRate /* sampling rate */ | ||
| ); | ||
|
|
||
| /* Design functions. 1st order filters need three coefficients, biquads */ | ||
| /* need five. Some filters have zeros which improve signal rejection */ | ||
| /* (e.g. a low-pass filter with zeros will be better at filtering out high */ | ||
| /* frequencies than one that doesn't) but run a little more slowly. */ | ||
|
|
||
| void designFirstOrderLowpassCoeffs | ||
| ( | ||
| int32_t coeffsL32Q23[3], /* coeffs in L32Q23 */ | ||
| int16_t mB, /* attenuation at cutoff freq */ | ||
| int32_t freqHz, /* cutoff frequency */ | ||
| int32_t sampleRate, /* sampling rate */ | ||
| bool_t withZero /* with a zero or not at fs/2 */ | ||
| ); | ||
|
|
||
| void designFirstOrderHighpassCoeffs | ||
| ( | ||
| int32_t coeffsL32Q23[3], /* coeffs in L32Q23 */ | ||
| int16_t mB, /* attenuation at cutoff freq */ | ||
| int32_t freqHz, /* cutoff frequency */ | ||
| int32_t sampleRate, /* sampling rate */ | ||
| bool_t withZero /* with a zero or not at fs/2 */ | ||
| ); | ||
|
|
||
| /* QSound version */ | ||
| void DesignFirstOrderCoeffs_Zero | ||
| ( | ||
| int32_t coeffs[3], /* coeffs in L32Q23 */ | ||
| int32_t dc_mb, /* dc gain in mB */ | ||
| int32_t nyquist_mb, /* gain at fs/2 in mB */ | ||
| int32_t mb, /* gain at the following freq */ | ||
| int32_t freqHz, /* freq for the above gain */ | ||
| int32_t sampleRate /* sampling rate */ | ||
| ); | ||
|
|
||
| void designBiquadLowpassCoeffs | ||
| ( | ||
| int32_t coeffsL32Q23[5], /* coeffs in L32Q23 */ | ||
| int16_t mB, /* attenuation at cutoff freq */ | ||
| int32_t freqHz, /* cutoff frequency */ | ||
| int32_t sampleRate, /* sampling rate */ | ||
| bool_t withZero /* with a zero or not at fs/2 */ | ||
| ); | ||
|
|
||
| void designBiquadBandpassCoeffs | ||
| ( | ||
| int32_t coeffsL32Q23[5], /* coeffs in L32Q23 */ | ||
| int16_t mB, /* attenuation at cutoff freq */ | ||
| int32_t freqHz, /* cutoff frequency */ | ||
| int32_t sampleRate, /* sampling rate */ | ||
| bool_t withZero /* with a zero or not */ | ||
| ); | ||
|
|
||
| void designBiquadHighpassCoeffs | ||
| ( | ||
| int32_t coeffsL32Q23[5], /* coeffs in L32Q23 */ | ||
| int16_t mB, /* attenuation at cutoff freq */ | ||
| int32_t freqHz, /* cutoff frequency */ | ||
| int32_t sampleRate /* sampling rate */ | ||
| ); | ||
|
|
||
| void cascadeFirstOrderFilters | ||
| ( | ||
| int32_t coeffsL32Q23[5], /* biquad coeffs, L32Q23 */ | ||
| int32_t uL32Q23[3], /* first-order filter coeffs */ | ||
| int32_t vL32Q23[3] /* first-order filter coeffs */ | ||
| ); | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif /* __cplusplus */ | ||
|
|
||
| #endif /* _FILTERDESIGN_H_ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious. When gain module is introduced, why are these include lines not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is line is for including the limiter api. I believe that now that I've added the limiter source code it is required to add the api here to build the full audioreach-engine image.