Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Problem with ofSoundStream and JACK api - win 10

$
0
0

@nzfs wrote:

hi, im using jack as the audio api so i can route audio from another software to of. im using ofSoundStramSettings and setApi():

void ofApp::setup(){

	ofSoundStreamSettings settings;
	settings.setApi(ofSoundDevice::Api::JACK);
	auto devices = soundStream.getDeviceList();
	settings.setInDevice(devices[1]);
	settings.setInListener(this);
	settings.sampleRate = sampleRate;
	settings.bufferSize = bufferSize;
	settings.numInputChannels = 2;
	settings.numOutputChannels = 0;
	soundStream.setup(settings);

}

it works, but not all the time… sometimes the app starts and crashes.
once it starts with no problems, everything works fine…
any idea what can be causing this problem? when it crashed i get this error:

C:\Users\fonse\Documents\of\apps\myApps\nzfs_live\bin\nzfs_live.exe (process 24740) exited with code -1073740940. Press any key to close this window . . .

thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles