-
Notifications
You must be signed in to change notification settings - Fork 2
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 #11 from HEnquist/next
Next
- Loading branch information
Showing
7 changed files
with
202 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from camilladsp.camilladsp import CamillaConnection, CamillaError | ||
from camilladsp.camilladsp import CamillaConnection, CamillaError, ProcessingState, StopReason |
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,27 @@ | ||
# play wav | ||
from camilladsp import CamillaConnection | ||
import sys | ||
import time | ||
|
||
try: | ||
port = int(sys.argv[1]) | ||
except: | ||
print("Usage: Start CamillaDSP with the websocket server enabled:") | ||
print("> camilladsp -p4321 yourconfig.yml") | ||
print("Then run this script to print some parameters from the active config.") | ||
print("> python get_config.py 4321") | ||
sys.exit() | ||
|
||
cdsp = CamillaConnection("127.0.0.1", port) | ||
cdsp.connect() | ||
|
||
conf = cdsp.get_config() | ||
|
||
# Get some single parameters | ||
print(f'Capture device type: {conf["devices"]["capture"]["type"]}') | ||
print(f'Sample rate: {conf["devices"]["samplerate"]}') | ||
print(f'Resampling enabled: {conf["devices"]["enable_resampling"]}') | ||
|
||
# Print the whole playback and capture devices | ||
print(f'Capture device: {str(conf["devices"]["capture"])}') | ||
print(f'Playback device: {str(conf["devices"]["playback"])}') |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import os | ||
import struct | ||
import logging | ||
|
||
|
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 |
---|---|---|
|
@@ -5,10 +5,10 @@ | |
|
||
setuptools.setup( | ||
name="camilladsp", | ||
version="0.5.1", | ||
version="0.6.0", | ||
author="Henrik Enquist", | ||
author_email="[email protected]", | ||
description="A library for comminucating with CamillaDSP", | ||
description="A library for communicating with CamillaDSP", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/HEnquist/pycamilladsp", | ||
|
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