-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hey @roymacdonald ,
How is going on? Hope all fine there!
I am just trying to start using this add-on and probably integrate also your new ofxSoundDevicesManager aswell,
as I have a similar one.
I am thinking about bundle all this features together.
(I am just doing a sound analyzer app, with smoothing and bang detectors)
ofxSoundObjects It's working fine, on Release but also in Debug mode.
(Just using the PG without props or nothing more.)
Currently I am using ofxSoundObjects experimental branch.
Windows10 / VS 2022 / oF patch-release
But when closing the app window it crashes like that:
Do you think that could be easy to fix?
I think it happens in all the examples, but in this case I made the initialization like that:
ofSoundStream stream;
ofxSoundInput input;
ofxSoundOutput output;
ofSoundStreamSettings settings;
std::vector<ofSoundDevice> devices;//--------------------------------------------------------------
void ofApp::setup() {
stream.printDeviceList();
int sampleRate = 48000;
int bufferSize = 256;
int numBuffers = 4;
settings.setApi(ofSoundDevice::Api::MS_DS);
devices = stream.getDeviceList(ofSoundDevice::Api::MS_DS);
/*
[notice ] [MS DirectShow: 0] Default Device [in:2 out:2] (default in) (default out)
[MS DirectShow: 1] VoiceMeeter Input (VB-Audio VoiceMeeter VAIO) [in:0 out:2]
[MS DirectShow: 2] Speakers (Realtek(R) Audio) [in:0 out:2]
[MS DirectShow: 3] 1 - Panasonic-TV (AMD High Definition Audio Device) [in:0 out:2]
[MS DirectShow: 4] Microphone Array (Xbox NUI Sensor) [in:2 out:0]
[MS DirectShow: 5] Line (NewTek NDI Audio) [in:2 out:0]
[MS DirectShow: 6] Microphone (Iriun Webcam) [in:2 out:0]
[MS DirectShow: 7] VoiceMeeter Output (VB-Audio VoiceMeeter VAIO) [in:2 out:0]
[MS DirectShow: 8] Microphone (USB Camera-B4.09.24.1) [in:2 out:0]
*/
ofLogNotice() << devices;
settings.sampleRate = sampleRate;
settings.bufferSize = bufferSize;
settings.numBuffers = numBuffers;
settings.numOutputChannels = 2;
settings.numInputChannels = 2;
settings.setInListener(this);
settings.setOutListener(this);
int deviceIn_Port = 7; // 7 VoiceMeeter Output
int deviceOut_Port = 3; // 3 Panasonic - TV
settings.setInDevice(devices[deviceIn_Port]);
settings.setOutDevice(devices[deviceOut_Port]);
stream.setup(settings);
stream.setInput(input);
stream.setOutput(output);
//-
input.connectTo(waveFrom);
waveFrom.connectTo(vuMeter);
vuMeter.connectTo(fft);
fft.connectTo(output);
}Saludos!
Metadata
Metadata
Assignees
Labels
No labels


