Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUDIO_OUTPUT_IPC_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
| 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
| 7 | 7 |
| 8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
| 9 #include "base/sync_socket.h" | 9 #include "base/sync_socket.h" |
| 10 #include "media/audio/audio_parameters.h" | 10 #include "media/audio/audio_parameters.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 const AudioParameters& params) = 0; | 76 const AudioParameters& params) = 0; |
| 77 | 77 |
| 78 // Starts playing the stream. This should generate a call to | 78 // Starts playing the stream. This should generate a call to |
| 79 // AudioOutputController::Play(). | 79 // AudioOutputController::Play(). |
| 80 virtual void PlayStream(int stream_id) = 0; | 80 virtual void PlayStream(int stream_id) = 0; |
| 81 | 81 |
| 82 // Pauses an audio stream. This should generate a call to | 82 // Pauses an audio stream. This should generate a call to |
| 83 // AudioOutputController::Pause(). | 83 // AudioOutputController::Pause(). |
| 84 virtual void PauseStream(int stream_id) = 0; | 84 virtual void PauseStream(int stream_id) = 0; |
| 85 | 85 |
| 86 // "Flushes" the audio device. This should generate a call to | |
| 87 // AudioOutputController::Flush(). | |
| 88 // TODO(tommi): This is currently neither implemented nor called. Remove? | |
|
tommi (sloooow) - chröme
2013/04/16 08:15:11
w00t!
| |
| 89 virtual void FlushStream(int stream_id) = 0; | |
| 90 | |
| 91 // Closes the audio stream and deletes the matching AudioOutputController | 86 // Closes the audio stream and deletes the matching AudioOutputController |
| 92 // instance. Prior to deleting the AudioOutputController object, a call to | 87 // instance. Prior to deleting the AudioOutputController object, a call to |
| 93 // AudioOutputController::Close must be made. | 88 // AudioOutputController::Close must be made. |
| 94 virtual void CloseStream(int stream_id) = 0; | 89 virtual void CloseStream(int stream_id) = 0; |
| 95 | 90 |
| 96 // Sets the volume of the audio stream. | 91 // Sets the volume of the audio stream. |
| 97 virtual void SetVolume(int stream_id, double volume) = 0; | 92 virtual void SetVolume(int stream_id, double volume) = 0; |
| 98 | 93 |
| 99 protected: | 94 protected: |
| 100 virtual ~AudioOutputIPC(); | 95 virtual ~AudioOutputIPC(); |
| 101 }; | 96 }; |
| 102 | 97 |
| 103 } // namespace media | 98 } // namespace media |
| 104 | 99 |
| 105 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 100 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ |
| OLD | NEW |