Skip to content

Commit a333e5a

Browse files
committed
Remove useless cast to float*
1 parent c261664 commit a333e5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎jack.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,8 +1518,8 @@ def get_buffer(self):
15181518
15191519
"""
15201520
blocksize = self._client.blocksize
1521-
return _ffi.buffer(_ffi.cast("float*", _lib.jack_port_get_buffer(
1522-
self._ptr, blocksize)), blocksize * _ffi.sizeof("float"))
1521+
return _ffi.buffer(_lib.jack_port_get_buffer(self._ptr, blocksize),
1522+
blocksize * _ffi.sizeof("float"))
15231523

15241524
def get_array(self):
15251525
"""Get audio buffer as NumPy array.

0 commit comments

Comments
 (0)