File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 17
17
with :
18
18
python-version : ${{ matrix.python }}
19
19
- name : Install ffmpeg
20
- run : sudo apt install -y ffmpeg
20
+ run : sudo apt install -y --no-install-recommends ffmpeg
21
21
- name : Install tox and any other packages
22
22
run : pip install tox
23
23
- name : Run tox
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ Version History
72
72
3.0.0
73
73
Drop support for Python 2 and older versions of Python 3. The library now
74
74
requires Python 3.6+.
75
+ Increase default block size in FFmpegAudioFile to get slightly faster file reading.
75
76
76
77
2.1.9
77
78
Work correctly with GStreamer 1.18 and later (thanks to @ssssam).
Original file line number Diff line number Diff line change 23
23
import sys
24
24
import threading
25
25
import time
26
+ from io import DEFAULT_BUFFER_SIZE
26
27
27
28
from .exceptions import DecodeError
28
29
@@ -120,7 +121,7 @@ def available():
120
121
121
122
class FFmpegAudioFile :
122
123
"""An audio file decoded by the ffmpeg command-line utility."""
123
- def __init__ (self , filename , block_size = 4096 ):
124
+ def __init__ (self , filename , block_size = DEFAULT_BUFFER_SIZE ):
124
125
# On Windows, we need to disable the subprocess's crash dialog
125
126
# in case it dies. Passing SEM_NOGPFAULTERRORBOX to SetErrorMode
126
127
# disables this behavior.
You can’t perform that action at this time.
0 commit comments