change portaudio sample silence to -32767, because its a signed int, so this should be correct.

master
Karl Stavestrand 6 years ago
parent 80679a86a7
commit e2aef35c87
  1. 2
      input/portaudio.c

@ -4,7 +4,7 @@
#include <portaudio.h> #include <portaudio.h>
#define PORTBUFSIZE 512 #define PORTBUFSIZE 512
#define SAMPLE_SILENCE 32768 #define SAMPLE_SILENCE -32767
#define PA_SAMPLE_TYPE paInt16 #define PA_SAMPLE_TYPE paInt16
typedef short SAMPLE; typedef short SAMPLE;

Loading…
Cancel
Save