backport the sync implementation from the csdr++ branch

This commit is contained in:
Jakob Ketterl
2021-07-25 20:06:14 +02:00
parent c07d9ecf92
commit 459a99cbf8
3 changed files with 44 additions and 3 deletions

View File

@ -10,5 +10,5 @@ class ClientAudioChain(Chain):
workers += [AudioResampler(inputRate, clientRate)]
workers += [Convert(Format.FLOAT, Format.SHORT)]
if compression == "adpcm":
workers += [AdpcmEncoder()]
workers += [AdpcmEncoder(sync=True)]
super().__init__(*workers)