ofxHapPlayer
ofxHapPlayer copied to clipboard
No sound on Windows...
I am not getting audio when playing o Windows. I tried to switch oF sound API to DirectSound as usual:
ofSoundStream soundStream;
setupAudio()
{
soundStream.printDeviceList();
int bufferSize = 512;
int sampleRate = 48000;
auto deviceList = soundStream.getDeviceList(ofSoundDevice::Api::MS_DS);
for each (auto d in deviceList)
{
cout << ofToString(d) << endl;
}
int i = 0; // select device
ofSoundStreamSettings settings;
settings.setApi(ofSoundDevice::Api::MS_WASAPI);
settings.setOutDevice(deviceList[i]);
settings.setOutListener(this);
settings.sampleRate = sampleRate;
settings.numOutputChannels = 2;
settings.numInputChannels = 0;
settings.bufferSize = bufferSize;
soundStream.setup(settings);
}
Anybody knows if it should work or there's some known bug?
I must go to use a parallel sound player then?
Thanks.