@nzfs wrote:
hi,
i made an app that uses the onboard sound card using the direcshow drivers in windows:ofSoundStreamSettings settings; settings.setApi(ofSoundDevice::Api::MS_DS); auto devices = soundStream.getDeviceList(ofSoundDevice::Api::MS_DS); settings.setInDevice(devices[4]); settings.setInListener(this); settings.sampleRate = sampleRate; settings.bufferSize = bufferSize; settings.numBuffers = 2; settings.numInputChannels = 2; settings.numOutputChannels = 0; soundStream.setup(settings);
the problem is that sometimes i have to run it a few times till it open, the first few times it just crashes without giving any error, and i have no idea why it may be.
i don’t have this problem with all the api, but MS_DS is one of the few that make this (and i need to use this one in this app).
any idea what may be causing the problem?thank you
Posts: 3
Participants: 2