Nils
2 years ago
5 changed files with 58 additions and 5 deletions
@ -1 +1 @@ |
|||||
Subproject commit 59ac36808180249002d7468b4136fa5160627ec7 |
Subproject commit 96e5182b93243a009d240230e5e48243e0c156db |
@ -0,0 +1,36 @@ |
|||||
|
#! /usr/bin/env python3 |
||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
import os |
||||
|
import sys |
||||
|
import logging |
||||
|
|
||||
|
logging.basicConfig(level=logging.INFO) #this also sets _cbox2 logging level |
||||
|
|
||||
|
#_cbox2.py reads this environment variable and uses the lib directly. |
||||
|
#Without it will look for a vanilla "calfbox" library, but we are *-lss |
||||
|
os.environ["CALFBOXLIBABSPATH"] = os.path.abspath("../build/libcalfbox-lss.so") |
||||
|
|
||||
|
#Variant 1 |
||||
|
sys.path.append(os.path.abspath("../calfbox/py/")) |
||||
|
import cbox |
||||
|
|
||||
|
def cmd_dumper(cmd, fb, args): |
||||
|
print ("%s(%s)" % (cmd, ",".join(list(map(repr,args))))) |
||||
|
|
||||
|
cbox.init_engine("") #empty string for "no config file" |
||||
|
cbox.start_audio(cmd_dumper) |
||||
|
cbox.stop_audio() |
||||
|
cbox.shutdown_engine() |
||||
|
|
||||
|
cbox.init_engine("") |
||||
|
cbox.start_audio(cmd_dumper) |
||||
|
cbox.stop_audio() |
||||
|
cbox.shutdown_engine() |
||||
|
|
||||
|
cbox.init_engine("") |
||||
|
cbox.start_audio(cmd_dumper) |
||||
|
|
||||
|
|
||||
|
while True: |
||||
|
cbox.call_on_idle(cmd_dumper) |
@ -1 +0,0 @@ |
|||||
/home/nils/lss/libcalfbox-lss/calfbox/py |
|
Loading…
Reference in new issue