From abd88d0a711af8b1038b52cf3d5a06f73fb5cc42 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 16 Dec 2018 17:23:26 +0100 Subject: [PATCH] recplay default blocksize should be the configured/default output blocksize --- platypush/plugins/sound.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/sound.py b/platypush/plugins/sound.py index eca20836..c16100ed 100644 --- a/platypush/plugins/sound.py +++ b/platypush/plugins/sound.py @@ -290,7 +290,7 @@ class SoundPlugin(Plugin): sample_rate = int(dev_info['default_samplerate']) if blocksize is None: - blocksize = self.output_blocksize + blocksize = self.input_blocksize q = queue.Queue() @@ -362,7 +362,7 @@ class SoundPlugin(Plugin): :param sample_rate: Recording sample rate (default: device default rate) :type sample_rate: int - :param blocksize: Audio block size (default: configured maximum value between the configured `input_blocksize` and `output_blocksize` or 2048) + :param blocksize: Audio block size (default: configured `output_blocksize` or 2048) :type blocksize: int :param latency: Device latency in seconds (default: 0) @@ -397,7 +397,7 @@ class SoundPlugin(Plugin): sample_rate = int(dev_info['default_samplerate']) if blocksize is None: - blocksize = max(self.input_blocksize, self.output_blocksize) + blocksize = self.output_blocksize def audio_callback(indata, outdata, frames, time, status): while self._get_recording_state() == RecordingState.PAUSED: