We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a7363 commit 788869eCopy full SHA for 788869e
audioread/ffdec.py
@@ -23,6 +23,7 @@
23
import sys
24
import threading
25
import time
26
+from io import DEFAULT_BUFFER_SIZE
27
28
from .exceptions import DecodeError
29
@@ -120,7 +121,7 @@ def available():
120
121
122
class FFmpegAudioFile:
123
"""An audio file decoded by the ffmpeg command-line utility."""
- def __init__(self, filename, block_size=4096):
124
+ def __init__(self, filename, block_size=DEFAULT_BUFFER_SIZE):
125
# On Windows, we need to disable the subprocess's crash dialog
126
# in case it dies. Passing SEM_NOGPFAULTERRORBOX to SetErrorMode
127
# disables this behavior.
0 commit comments