Skip to content

Commit

Permalink
jack client name
Browse files Browse the repository at this point in the history
  • Loading branch information
edne committed Aug 2, 2015
1 parent 0c2152b commit 60bef2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hear.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import numpy as np


def hear_jack(callback, channels, body):
def hear_jack(callback, channels, body, client_name):
import jack
client = jack.Client("Test Client")
client = jack.Client(client_name)

if client.status.server_started:
print("JACK server started")
Expand Down Expand Up @@ -84,7 +84,7 @@ def is_jack_active():
for api in apis])


def hear(callback, channels=2, body=None):
def hear(callback, channels=2, body=None, jack_client="Hear"):

def default_body():
from time import sleep
Expand All @@ -98,6 +98,6 @@ def default_body():
body = default_body

if is_jack_active():
hear_jack(callback, channels, body)
hear_jack(callback, channels, body, jack_client)
else:
hear_pa(callback, channels, body)

0 comments on commit 60bef2b

Please sign in to comment.