From: Marcel van der Veldt Date: Thu, 2 Jun 2022 16:31:23 +0000 (+0200) Subject: adjust buffer size X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=904b94da5f20a9364e55b13ad209e53bd193ba0a;p=music-assistant-server.git adjust buffer size --- 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