Chromium Code Reviews| Index: media/audio/audio_io.h |
| diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h |
| index bdc9f6fa6b71d25ba03895ee7958f0fef8028747..cfc71bdb4681dedecad48f483c83a52973d892b6 100644 |
| --- a/media/audio/audio_io.h |
| +++ b/media/audio/audio_io.h |
| @@ -90,7 +90,8 @@ class MEDIA_EXPORT AudioOutputStream { |
| virtual ~AudioOutputStream() {} |
| - // Open the stream. false is returned if the stream cannot be opened. |
| + // Open the stream. false is returned if the stream cannot be opened. Open() |
| + // must always be followed by a call to Close() even if Open() fails. |
|
scherkus (not reviewing)
2012/10/11 20:19:31
this makes me sad considering we return true/false
DaleCurtis
2012/10/12 00:09:12
Yeah, it's not ideal. At least the comment codifi
|
| virtual bool Open() = 0; |
| // Starts playing audio and generating AudioSourceCallback::OnMoreData(). |