QVector<UserInputMapper::InputChannel> UserInputMapper::getAllInputsForDevice(uint16 device) { InputChannels allChannels; getInputChannels(allChannels); QVector<InputChannel> channels; for (InputChannel inputChannel : allChannels) { if (inputChannel._input._device == device) { channels.push_back(inputChannel); } } return channels; }
void XAudio2SourceVoiceProxy::GetVoiceDetails(XAUDIO2_VOICE_DETAILS * pVoiceDetails) { pVoiceDetails->InputChannels = getInputChannels(); pVoiceDetails->CreationFlags = getFlags(); pVoiceDetails->InputSampleRate = getInputSampleRate(); }