Home
last modified time | relevance | path

Searched refs:waveFormat (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/modules/audio_device/win/
Daudio_mixer_manager_win.cc594 WAVEFORMATEX waveFormat; in OpenSpeaker() local
597 waveFormat.wFormatTag = WAVE_FORMAT_PCM ; in OpenSpeaker()
598 waveFormat.nChannels = 2; in OpenSpeaker()
599 waveFormat.nSamplesPerSec = 48000; in OpenSpeaker()
600 waveFormat.wBitsPerSample = 16; in OpenSpeaker()
601 waveFormat.nBlockAlign = waveFormat.nChannels * waveFormat.wBitsPerSample / 8; in OpenSpeaker()
602 waveFormat.nAvgBytesPerSec = waveFormat.nSamplesPerSec * waveFormat.nBlockAlign; in OpenSpeaker()
603 waveFormat.cbSize = 0; in OpenSpeaker()
612 res = waveOutOpen(NULL, WAVE_MAPPER, &waveFormat, 0, 0, CALLBACK_NULL | in OpenSpeaker()
617 …res = waveOutOpen(&hWaveOut, WAVE_MAPPER, &waveFormat, 0, 0, CALLBACK_NULL | WAVE_MAPPED_kDefaultC… in OpenSpeaker()
[all …]
Daudio_device_wave_win.cc1639 WAVEFORMATEX waveFormat; in InitPlayout() local
1641 waveFormat.wFormatTag = WAVE_FORMAT_PCM; in InitPlayout()
1642 waveFormat.nChannels = _playChannels; // mono <=> 1, stereo <=> 2 in InitPlayout()
1643 waveFormat.nSamplesPerSec = N_PLAY_SAMPLES_PER_SEC; in InitPlayout()
1644 waveFormat.wBitsPerSample = 16; in InitPlayout()
1645 waveFormat.nBlockAlign = waveFormat.nChannels * (waveFormat.wBitsPerSample/8); in InitPlayout()
1646 waveFormat.nAvgBytesPerSec = waveFormat.nSamplesPerSec * waveFormat.nBlockAlign; in InitPlayout()
1647 waveFormat.cbSize = 0; in InitPlayout()
1656 … res = waveOutOpen(NULL, _outputDeviceIndex, &waveFormat, 0, 0, CALLBACK_NULL | WAVE_FORMAT_QUERY); in InitPlayout()
1660 res = waveOutOpen(&hWaveOut, _outputDeviceIndex, &waveFormat, 0, 0, CALLBACK_NULL); in InitPlayout()
[all …]