Skip to content

Commit

Permalink
Add sampling freqs
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippThoelke committed Apr 14, 2024
1 parent 66da60e commit 6e7e0d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goofi/nodes/outputs/audioout.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def config_input_slots():
def config_params():
return {
"audio": {
"sampling_rate": StringParam("44100", options=["44100", "48000"]),
"sampling_rate": StringParam("44100", options=["44100", "48000", "32000", "16000"]),
"device": StringParam(AudioOut.list_audio_devices()[0], options=AudioOut.list_audio_devices()),
"transition_samples": 100,
}
Expand Down Expand Up @@ -65,7 +65,7 @@ def process(self, data: Data):
# Send the audio data to the output device after ensuring it's C-contiguous
self.stream.write(np.ascontiguousarray(samples))

def audio_sampling_frequency_changed(self, value):
def audio_sampling_rate_changed(self, value):
self.setup()

@staticmethod
Expand Down

0 comments on commit 6e7e0d1

Please sign in to comment.