| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 5 #ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| 6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 6 #define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/lock.h" | 10 #include "base/lock.h" |
| 11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "media/audio/audio_manager_base.h" | 14 #include "media/audio/audio_manager_base.h" |
| 15 | 15 |
| 16 class AlsaPcmOutputStream; | 16 class AlsaPcmOutputStream; |
| 17 class AlsaWrapper; | 17 class AlsaWrapper; |
| 18 | 18 |
| 19 class AudioManagerLinux : public AudioManagerBase { | 19 class AudioManagerLinux : public AudioManagerBase { |
| 20 public: | 20 public: |
| 21 AudioManagerLinux(); | 21 AudioManagerLinux(); |
| 22 | 22 |
| 23 // Call before using a newly created AudioManagerLinux instance. | 23 // Call before using a newly created AudioManagerLinux instance. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 scoped_ptr<AlsaWrapper> wrapper_; | 41 scoped_ptr<AlsaWrapper> wrapper_; |
| 42 | 42 |
| 43 Lock lock_; | 43 Lock lock_; |
| 44 std::map<AlsaPcmOutputStream*, scoped_refptr<AlsaPcmOutputStream> > | 44 std::map<AlsaPcmOutputStream*, scoped_refptr<AlsaPcmOutputStream> > |
| 45 active_streams_; | 45 active_streams_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); | 47 DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ | 50 #endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_ |
| OLD | NEW |