Skip to content

Instantly share code, notes, and snippets.

@zeffii
Forked from anonymous/server_settings_intro.c
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/98cd631b03c54efc215c to your computer and use it in GitHub Desktop.
Save zeffii/98cd631b03c54efc215c to your computer and use it in GitHub Desktop.
// if you hear clicks or get messages in the post window like 'late <some number>'
// then, for whatever reason, your soundcard isn't getting enough of each frame processed
// in time for the audio to be glitch-free
s.options.blockSize = 1024; // must be a multiple of 64
s.latency = 1 // 1 second, 0.2 = 1/5 second etc.
// what about ASIO?
// Q: i've seen my soundcards after doing an s.boot;
// but don't know how to tell supercollider to use a specific device.
// A: Then prior to your next s.boot; do something like
//
// s.options.device = "ASIO : ASIO4ALL v2";
(
s.options.numInputBusChannels_(2); // optional
s.options.numOutputBusChannels_(6); // optional
s.options.sampleRate = 44100; // optional
s.options.device = "ASIO : ASIO4ALL v2";
s.boot;
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment