Skip to content

Commit

Permalink
Fix windows/android compile (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidliu committed Aug 11, 2022
1 parent 13c63d3 commit 5665764
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/audio_device/win/audio_device_module_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ class WindowsAudioDeviceModule : public AudioDeviceModuleForTest {
return input_->SetSampleRate(sample_rate);
}

// Not supported on Windows
int32_t SetAudioDeviceSink(AudioDeviceSink* sink) const override { return 0; }

private:
// Ensures that the class is used on the same thread as it is constructed
// and destroyed on.
Expand Down
3 changes: 3 additions & 0 deletions sdk/android/src/jni/audio_device/audio_device_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ class AndroidAudioDeviceModule : public AudioDeviceModule {
return 0;
}

// Not supported on Android
int32_t SetAudioDeviceSink(AudioDeviceSink* sink) const override { return 0; }

private:
SequenceChecker thread_checker_;

Expand Down

0 comments on commit 5665764

Please sign in to comment.