OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_ |
| 6 #define MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_ |
| 7 |
| 8 #include "media/audio/audio_system.h" |
| 9 |
| 10 namespace media { |
| 11 class AudioManager; |
| 12 |
| 13 class MEDIA_EXPORT AudioSystemImpl : public AudioSystem { |
| 14 public: |
| 15 static std::unique_ptr<AudioSystem> Create(AudioManager* audio_manager); |
| 16 |
| 17 ~AudioSystemImpl(); |
| 18 |
| 19 base::SingleThreadTaskRunner* GetTaskRunner() const override; |
| 20 |
| 21 // AudioSystem implementation. |
| 22 void GetInputStreamParameters(const std::string& device_id, |
| 23 OnAudioParamsCallback on_params_cb) override; |
| 24 AudioManager* GetAudioManager() override; |
| 25 |
| 26 protected: |
| 27 AudioSystemImpl(AudioManager* audio_manager); |
| 28 |
| 29 private: |
| 30 AudioManager* audio_manager_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(AudioSystemImpl); |
| 33 }; |
| 34 |
| 35 } // namespace media |
| 36 |
| 37 #endif // MEDIA_AUDIO_AUDIO_SYSTEM_IMPL_H_ |
OLD | NEW |