This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PY_SSIZE_T_CLEAN | |
#include <Python.h> | |
#include <iostream> | |
int | |
main(int argc, char *argv[]) | |
{ | |
PyObject *pName, *pModule, *pFunc; | |
PyObject *pArgs, *pValue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "portaudio.h" | |
#include <string> | |
#include <string.h> | |
#include <algorithm> // std::copy | |
/* #define SAMPLE_RATE (17932) // Test failure to open with this value. */ | |
#define SAMPLE_RATE (48000) | |
#define FRAMES_PER_BUFFER (512) | |
#define NUM_SECONDS (10) |