From 904b94da5f20a9364e55b13ad209e53bd193ba0a Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 2 Jun 2022 18:31:23 +0200 Subject: [PATCH] adjust buffer size --- music_assistant/helpers/process.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/music_assistant/helpers/process.py b/music_assistant/helpers/process.py index d0900e8d..c790b4ca 100644 --- a/music_assistant/helpers/process.py +++ b/music_assistant/helpers/process.py @@ -14,7 +14,7 @@ from async_timeout import timeout as _timeout LOGGER = logging.getLogger("AsyncProcess") -DEFAULT_CHUNKSIZE = 64000 +DEFAULT_CHUNKSIZE = 176400 # 1 second of pcm 44100/16 DEFAULT_TIMEOUT = 120 @@ -41,7 +41,7 @@ class AsyncProcess: args, stdin=asyncio.subprocess.PIPE if self._enable_write else None, stdout=asyncio.subprocess.PIPE, - limit=DEFAULT_CHUNKSIZE, + limit=DEFAULT_CHUNKSIZE * 10, close_fds=True, ) else: @@ -49,7 +49,7 @@ class AsyncProcess: *args, stdin=asyncio.subprocess.PIPE if self._enable_write else None, stdout=asyncio.subprocess.PIPE, - limit=DEFAULT_CHUNKSIZE, + limit=DEFAULT_CHUNKSIZE * 10, close_fds=True, ) return self -- 2.34.1