forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request adafruit#9793 from jepler/audiofilters-unixport
Add audiodelays & audioeffects to unix coverage port
- Loading branch information
Showing
6 changed files
with
1,603 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,16 @@ | ||
from audiofilters import Filter | ||
from audiofilterhelper import synth_test, sine8k | ||
|
||
@synth_test | ||
def basic_filter(): | ||
effect = Filter( | ||
bits_per_sample=16, | ||
samples_signed=True, | ||
) | ||
yield effect, [] | ||
|
||
effect.play(sine8k, loop=True) | ||
yield 4 | ||
|
||
effect.stop() | ||
yield 2 |
Oops, something went wrong.