Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 473 of file mmixer.c.
{ MMDEVICE_TYPE DeviceType; PSOUND_DEVICE SoundDevice; MMRESULT Result; BOOL bWaveIn; Result = GetSoundDeviceFromInstance(Instance, &SoundDevice); if ( ! MMSUCCESS(Result) ) { return TranslateInternalMmResult(Result); } Result = GetSoundDeviceType(SoundDevice, &DeviceType); SND_ASSERT( Result == MMSYSERR_NOERROR ); bWaveIn = (DeviceType == WAVE_IN_DEVICE_TYPE ? TRUE : FALSE); if (MMixerOpenWave(&MixerContext, DeviceId, bWaveIn, WaveFormat, NULL, NULL, &Instance->Handle) == MM_STATUS_SUCCESS) { if (DeviceType == WAVE_OUT_DEVICE_TYPE) { MMixerSetWaveStatus(&MixerContext, Instance->Handle, KSSTATE_ACQUIRE); MMixerSetWaveStatus(&MixerContext, Instance->Handle, KSSTATE_PAUSE); MMixerSetWaveStatus(&MixerContext, Instance->Handle, KSSTATE_RUN); } return MMSYSERR_NOERROR; } return MMSYSERR_ERROR; }