コード例 #1
0
ファイル: UserInputMapper.cpp プロジェクト: rabedik/hifi
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;
}
コード例 #2
0
void XAudio2SourceVoiceProxy::GetVoiceDetails(XAUDIO2_VOICE_DETAILS * pVoiceDetails)
{
	pVoiceDetails->InputChannels = getInputChannels();
	pVoiceDetails->CreationFlags = getFlags();
	pVoiceDetails->InputSampleRate = getInputSampleRate();
}