I am developing a music visualizer software for Vive so I am trying to get FFT data from music that users listen to. However, I couldn't take any data from USB audio devices versus my soundcard.
What I have done is
- Using FMOD, I could access recording devices but there is no usb-audio device in the recording device list so I can only access the speaker(What U Hear)
system->recordStart(0, sound, true); // only I can capture data from recording devices
system->playSound(FMOD_CHANNEL_FREE, sound, false, &channel);
- Using WASAPI in Windows SDK, I tried to get the data although It also takes only data from the speaker not USB-Audio. I am not sure I did correct here but the SDK's example, WASAPICaptureSharedTimerDriven, doesn't seem to work for USB-AUDIO but it works fine with data from my soundcard (What U Hear)
If anyone has captured any audio data through USB-audio, please tell me the approach.