Skip to content

Commit e2ed8bd

Browse files
committed
fixup! Release GIL while resampling
acquire GIL for execution of callback
1 parent a3ba943 commit e2ed8bd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/samplerate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ long the_callback_func(void *cb_data, float **data) {
346346
CallbackResampler *cb = static_cast<CallbackResampler *>(cb_data);
347347
int cb_channels = cb->get_channels();
348348

349+
py::gil_scoped_acquire acquire;
350+
349351
// get the data as a numpy array
350352
auto input = cb->callback();
351353

0 commit comments

Comments
 (0)