This source file includes following definitions.
- ChangeUniqueId
- TimeUntilNextProcess
- Process
- RegisterEventObserver
- ActiveAudioLayer
- LastError
- PlayoutDevices
- RecordingDevices
- PlayoutDeviceName
- RecordingDeviceName
- SetPlayoutDevice
- SetPlayoutDevice
- SetRecordingDevice
- SetRecordingDevice
- InitPlayout
- InitRecording
- SetWaveOutVolume
- WaveOutVolume
- InitSpeaker
- SpeakerIsInitialized
- InitMicrophone
- MicrophoneIsInitialized
- SpeakerVolumeIsAvailable
- SetSpeakerVolume
- SpeakerVolume
- MaxSpeakerVolume
- MinSpeakerVolume
- SpeakerVolumeStepSize
- MicrophoneVolumeIsAvailable
- MicrophoneVolumeStepSize
- SpeakerMuteIsAvailable
- SetSpeakerMute
- SpeakerMute
- MicrophoneMuteIsAvailable
- SetMicrophoneMute
- MicrophoneMute
- MicrophoneBoostIsAvailable
- SetMicrophoneBoost
- MicrophoneBoost
- SetStereoPlayout
- StereoPlayout
- SetStereoRecording
- StereoRecording
- SetRecordingChannel
- RecordingChannel
- SetPlayoutBuffer
- PlayoutBuffer
- CPULoad
- StartRawOutputFileRecording
- StopRawOutputFileRecording
- StartRawInputFileRecording
- StopRawInputFileRecording
- SetRecordingSampleRate
- SetPlayoutSampleRate
- ResetAudioDevice
- SetLoudspeakerStatus
- GetLoudspeakerStatus
- SetAGC
- AGC
#include "content/renderer/media/webrtc_audio_device_not_impl.h"
namespace {
const int64 kMillisecondsBetweenProcessCalls = 5000;
}
namespace content {
WebRtcAudioDeviceNotImpl::WebRtcAudioDeviceNotImpl()
: last_process_time_(base::TimeTicks::Now()) {
}
int32_t WebRtcAudioDeviceNotImpl::ChangeUniqueId(const int32_t id) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() {
base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_);
int64 time_until_next =
kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds();
return static_cast<int32_t>(time_until_next);
}
int32_t WebRtcAudioDeviceNotImpl::Process() {
last_process_time_ = base::TimeTicks::Now();
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::RegisterEventObserver(
webrtc::AudioDeviceObserver* event_callback) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::ActiveAudioLayer(
AudioLayer* audio_layer) const {
return 0;
}
webrtc::AudioDeviceModule::ErrorCode
WebRtcAudioDeviceNotImpl::LastError() const {
return AudioDeviceModule::kAdmErrNone;
}
int16_t WebRtcAudioDeviceNotImpl::PlayoutDevices() {
return 0;
}
int16_t WebRtcAudioDeviceNotImpl::RecordingDevices() {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::PlayoutDeviceName(
uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
char guid[webrtc::kAdmMaxGuidSize]) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::RecordingDeviceName(
uint16_t index, char name[webrtc::kAdmMaxDeviceNameSize],
char guid[webrtc::kAdmMaxGuidSize]) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(uint16_t index) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetPlayoutDevice(WindowsDeviceType device) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(uint16_t index) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetRecordingDevice(WindowsDeviceType device) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::InitPlayout() {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::InitRecording() {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetWaveOutVolume(uint16_t volume_left,
uint16_t volume_right) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::WaveOutVolume(
uint16_t* volume_left, uint16_t* volume_right) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::InitSpeaker() {
return 0;
}
bool WebRtcAudioDeviceNotImpl::SpeakerIsInitialized() const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::InitMicrophone() {
return 0;
}
bool WebRtcAudioDeviceNotImpl::MicrophoneIsInitialized() const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeIsAvailable(bool* available) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetSpeakerVolume(uint32_t volume) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SpeakerVolume(uint32_t* volume) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MaxSpeakerVolume(uint32_t* max_volume) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MinSpeakerVolume(uint32_t* min_volume) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SpeakerVolumeStepSize(
uint16_t* step_size) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeIsAvailable(bool* available) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MicrophoneVolumeStepSize(
uint16_t* step_size) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SpeakerMuteIsAvailable(bool* available) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetSpeakerMute(bool enable) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SpeakerMute(bool* enabled) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MicrophoneMuteIsAvailable(bool* available) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneMute(bool enable) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MicrophoneMute(bool* enabled) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoostIsAvailable(bool* available) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetMicrophoneBoost(bool enable) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::MicrophoneBoost(bool* enabled) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetStereoPlayout(bool enable) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::StereoPlayout(bool* enabled) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetStereoRecording(bool enable) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::StereoRecording(bool* enabled) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetRecordingChannel(
const ChannelType channel) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::RecordingChannel(ChannelType* channel) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetPlayoutBuffer(const BufferType type,
uint16_t size_ms) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::PlayoutBuffer(BufferType* type,
uint16_t* size_ms) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::CPULoad(uint16_t* load) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::StartRawOutputFileRecording(
const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::StopRawOutputFileRecording() {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::StartRawInputFileRecording(
const char pcm_file_name_utf8[webrtc::kAdmMaxFileNameSize]) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::StopRawInputFileRecording() {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetRecordingSampleRate(
const uint32_t samples_per_sec) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetPlayoutSampleRate(
const uint32_t samples_per_sec) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::ResetAudioDevice() {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetLoudspeakerStatus(bool enable) {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::GetLoudspeakerStatus(bool* enabled) const {
return 0;
}
int32_t WebRtcAudioDeviceNotImpl::SetAGC(bool enable) {
return 0;
}
bool WebRtcAudioDeviceNotImpl::AGC() const {
return true;
}
}