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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 virtual void FlushStream(int stream_id) = 0; | 87 virtual void FlushStream(int stream_id) = 0; | 
| 88 | 88 | 
| 89 // Closes the audio stream and deletes the matching AudioOutputController | 89 // Closes the audio stream and deletes the matching AudioOutputController | 
| 90 // instance. Prior to deleting the AudioOutputController object, a call to | 90 // instance. Prior to deleting the AudioOutputController object, a call to | 
| 91 // AudioOutputController::Close must be made. | 91 // AudioOutputController::Close must be made. | 
| 92 virtual void CloseStream(int stream_id) = 0; | 92 virtual void CloseStream(int stream_id) = 0; | 
| 93 | 93 | 
| 94 // Sets the volume of the audio stream. | 94 // Sets the volume of the audio stream. | 
| 95 virtual void SetVolume(int stream_id, double volume) = 0; | 95 virtual void SetVolume(int stream_id, double volume) = 0; | 
| 96 | 96 | 
| 97 protected: | |
| 98 virtual ~AudioOutputIPC(); | 97 virtual ~AudioOutputIPC(); | 
| 
 
tommi (sloooow) - chröme
2012/07/31 10:52:41
This changes the concept of the interface a bit.
 
sail
2012/07/31 22:02:08
Done.
Moved destructor. Not sure what documentati
 
 | |
| 99 }; | 98 }; | 
| 100 | 99 | 
| 101 } // namespace media | 100 } // namespace media | 
| 102 | 101 | 
| 103 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 102 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_IPC_H_ | 
| OLD | NEW |