mirror of
https://github.com/markqvist/LXST.git
synced 2026-04-27 22:25:41 +00:00
Sync upstream
This commit is contained in:
parent
61a452c6df
commit
514b5e7ae6
15 changed files with 634 additions and 61 deletions
23
examples/filters.py
Normal file
23
examples/filters.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import RNS
|
||||
import LXST
|
||||
import sys
|
||||
import time
|
||||
|
||||
from LXST.Filters import BandPass, AGC
|
||||
|
||||
target_frame_ms = 40
|
||||
raw = LXST.Codecs.Raw()
|
||||
|
||||
filters = [BandPass(200, 8500), AGC()]
|
||||
|
||||
line_sink = LXST.Sinks.LineSink()
|
||||
mixer = LXST.Mixer(target_frame_ms=target_frame_ms, sink=line_sink)
|
||||
line_source = LXST.Sources.LineSource(target_frame_ms=target_frame_ms, codec=raw, sink=mixer, filters=filters)
|
||||
|
||||
mixer.start()
|
||||
line_source.start()
|
||||
print("Hit enter stop"); input()
|
||||
|
||||
line_source.stop()
|
||||
|
||||
time.sleep(0.5)
|
||||
Loading…
Add table
Add a link
Reference in a new issue