OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
byungchul
2015/04/27 17:38:06
You should add these 2 public header files in cast
slan
2015/04/28 00:11:39
Done.
| |
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 CHROMECAST_PUBLIC_CAST_AUDIO_OUTPUT_DEVICE_H_ | |
6 #define CHROMECAST_PUBLIC_CAST_AUDIO_OUTPUT_DEVICE_H_ | |
7 | |
8 #include "cast_audio_stream.h" | |
9 #include "chromecast_export.h" | |
10 | |
11 namespace chromecast { | |
12 | |
13 // This is an interface used to provide platform-specific audio streams. | |
14 // Implementations of this interface should survive for the duration of the | |
15 // process. | |
16 | |
17 // Note: This interface should be implemented by third parties seeking to | |
18 // provide an audio manager platform for Cast. CastAudioManager will call | |
19 // this interface. | |
20 | |
21 class CHROMECAST_EXPORT CastAudioOutputDevice { | |
22 public: | |
23 virtual ~CastAudioOutputDevice() {} | |
24 | |
25 // Returns the maximum number of output streams allowed. | |
26 virtual int GetMaximumOutputStreamsAllowed() const = 0; | |
27 | |
28 // Returns the preferred output stream parameters. The caller may inject | |
29 // |suggested| parameters, but it is left to the implementation to decide | |
30 // which of these to return. | |
31 virtual AudioParameters GetPreferredOutputStreamParameters( | |
32 const AudioParameters& suggested) const = 0; | |
33 | |
34 // Creates the output stream with parameters described by |params|. Caller | |
35 // does not take ownership of the returned stream. | |
36 virtual CastAudioOutputStream* MakeOutputStream( | |
37 const AudioParameters& params) = 0; | |
38 }; | |
39 | |
40 } // namespace chromecast | |
41 | |
42 #endif // CHROMECAST_PUBLIC_CAST_AUDIO_OUTPUT_DEVICE_H_ | |
OLD | NEW |