Compare commits
1 Commits
8ddbee713a
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ae2556dc1d |
@@ -30,7 +30,7 @@ def playback_thread(file_path, state):
|
|||||||
|
|
||||||
container = av.open(file_path)
|
container = av.open(file_path)
|
||||||
stream = container.streams.audio[0]
|
stream = container.streams.audio[0]
|
||||||
resampler = av.AudioResampler(format='s16', layout='stereo', rate=48000)
|
resampler = av.AudioResampler(format='s16', layout='stereo', rate=44100)
|
||||||
|
|
||||||
with open(fifo_path, 'wb') as fifo:
|
with open(fifo_path, 'wb') as fifo:
|
||||||
iterator = container.decode(stream)
|
iterator = container.decode(stream)
|
||||||
|
|||||||
Reference in New Issue
Block a user