Skip to content

Instantly share code, notes, and snippets.

@cosmo0920
Last active August 29, 2015 14:05
Show Gist options
  • Save cosmo0920/e74b647a6465698a2746 to your computer and use it in GitHub Desktop.
Save cosmo0920/e74b647a6465698a2746 to your computer and use it in GitHub Desktop.
% ./dist/build/example-portaudio/example-portaudio 48000 1024
Initialization: 0
Available APIs:
Opening the default stream: -9985
example-portaudio: user error (Failed.)
./dist/build/example-portaudio/example-portaudio 44100 1024
Initialization: 0
Available APIs:
Opening the default stream: -9985
example-portaudio: user error (Failed.)
% brew install portaudio(pa_stable_v19_20140130.tgz installed)
% clang -o paex_sine paex_sine.c -framework Carbon -framework AudioUnit -framework AudioToolbox -framework CoreAudio -lportaudio
% ./paex_sine
PortAudio Test: output sine wave. SR = 44100, BufSize = 64
Play for 5 seconds.
Stream Completed: No Message
Test finished.
% ./dist/build/example-portaudio/example-portaudio 44100 1024
Initialization: 0
Available APIs:
(0,"Core Audio")
Opening the default stream: 0
Starting the stream: 0
Stopping the stream: 0
Closing the stream: 0
% ./dist/build/example-portaudio/example-portaudio 48000 1024
Initialization: 0
Available APIs:
(0,"Core Audio")
Opening the default stream: 0
Starting the stream: 0
Stopping the stream: 0
Closing the stream: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment