mirror of
https://github.com/markqvist/Sideband.git
synced 2026-12-05 06:10:03 -05:00
remove dangling spaces
This commit is contained in:
parent
2a13ed0921
commit
236e0901fa
48 changed files with 741 additions and 741 deletions
|
|
@ -87,7 +87,7 @@ class OpusDecoder:
|
|||
# data)
|
||||
Buffer = ctypes.c_char * len(encoded_bytes)
|
||||
encoded_bytes_ctypes = Buffer.from_buffer(encoded_bytes)
|
||||
|
||||
|
||||
# Create pointer to encoded bytes
|
||||
encoded_bytes_ptr = ctypes.cast(
|
||||
encoded_bytes_ctypes,
|
||||
|
|
@ -127,16 +127,16 @@ class OpusDecoder:
|
|||
* ctypes.sizeof(opus.opus_int16)
|
||||
* self._channels
|
||||
)
|
||||
|
||||
|
||||
# Create memoryview of PCM buffer to avoid copying data during slice.
|
||||
mv = memoryview(self._pcm_buffer)
|
||||
|
||||
|
||||
# Cast memoryview to chars
|
||||
mv = mv.cast('c')
|
||||
|
||||
|
||||
# Slice memoryview to extract only valid data
|
||||
mv = mv[:end_valid_data]
|
||||
|
||||
|
||||
return mv
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue