Browse Source

PyRtAudio: Fix a strange retro-bug due to import print_function.

master
Stephen Sinclair 6 years ago
parent
commit
641d6008b6
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      contrib/python/pyrtaudio/rtaudiomodule.cpp

+ 6
- 1
contrib/python/pyrtaudio/rtaudiomodule.cpp View File

@@ -40,7 +40,12 @@ extern "C" {

typedef struct
{
PyObject_HEAD;
PyObject_HEAD
#if PY_MAJOR_VERSION < 3
void *padding; // python 2.7 seems to set dac to bad value
// after print_function, causing a crash, no
// idea why, but this fixes it.
#endif
RtAudio *dac;
RtAudioFormat _format;
int _bufferSize;


Loading…
Cancel
Save