debug
This commit is contained in:
parent
a9d531c6fc
commit
392ec2416b
|
@ -38,7 +38,7 @@ py::array_t<int16_t> getNumpyData() {
|
||||||
|
|
||||||
int sendCustomAudioData(int16_t destChannelIndex, py::array_t<int16_t> inputArray,
|
int sendCustomAudioData(int16_t destChannelIndex, py::array_t<int16_t> inputArray,
|
||||||
int32_t sampleRate, uint64_t channelNum, uint64_t dataLen) {
|
int32_t sampleRate, uint64_t channelNum, uint64_t dataLen) {
|
||||||
py::gil_scoped_release release;
|
//py::gil_scoped_release release;
|
||||||
|
|
||||||
py::array_t<int16_t> contiguous = py::array::ensure(inputArray);
|
py::array_t<int16_t> contiguous = py::array::ensure(inputArray);
|
||||||
if (!contiguous) throw py::value_error("Array conversion failed");
|
if (!contiguous) throw py::value_error("Array conversion failed");
|
||||||
|
|
Loading…
Reference in New Issue