| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 PPAPI_CPP_AUDIO_H_ | 5 #ifndef PPAPI_CPP_AUDIO_H_ |
| 6 #define PPAPI_CPP_AUDIO_H_ | 6 #define PPAPI_CPP_AUDIO_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_stdint.h" | 8 #include "ppapi/c/pp_stdint.h" |
| 9 #include "ppapi/c/ppb_audio.h" | 9 #include "ppapi/c/ppb_audio.h" |
| 10 #include "ppapi/cpp/audio_config.h" | 10 #include "ppapi/cpp/audio_config.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 AudioConfig& config() { return config_; } | 57 AudioConfig& config() { return config_; } |
| 58 | 58 |
| 59 /// Getter function for returning the internal <code>PPB_AudioConfig</code> | 59 /// Getter function for returning the internal <code>PPB_AudioConfig</code> |
| 60 /// struct. | 60 /// struct. |
| 61 /// | 61 /// |
| 62 /// @return A const reference to the internal <code>PPB_AudioConfig</code> | 62 /// @return A const reference to the internal <code>PPB_AudioConfig</code> |
| 63 /// struct. | 63 /// struct. |
| 64 const AudioConfig& config() const { return config_; } | 64 const AudioConfig& config() const { return config_; } |
| 65 | 65 |
| 66 /// StartPlayback() starts playback of audio. | 66 /// StartPlayback() starts playback of audio. |
| 67 /// |
| 68 /// @return True if successful, otherwise false. |
| 67 bool StartPlayback(); | 69 bool StartPlayback(); |
| 68 | 70 |
| 69 /// StopPlayback stops playback of audio. | 71 /// StopPlayback stops playback of audio. |
| 72 /// |
| 73 /// @return True if successful, otherwise false. |
| 70 bool StopPlayback(); | 74 bool StopPlayback(); |
| 71 | 75 |
| 72 private: | 76 private: |
| 73 AudioConfig config_; | 77 AudioConfig config_; |
| 74 }; | 78 }; |
| 75 | 79 |
| 76 } // namespace pp | 80 } // namespace pp |
| 77 | 81 |
| 78 #endif // PPAPI_CPP_AUDIO_H_ | 82 #endif // PPAPI_CPP_AUDIO_H_ |
| 79 | 83 |
| OLD | NEW |