OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 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 PPAPI_CPP_AUDIO_H_ |
| 6 #define PPAPI_CPP_AUDIO_H_ |
| 7 |
| 8 #include "ppapi/c/pp_stdint.h" |
| 9 #include "ppapi/c/ppb_audio.h" |
| 10 #include "ppapi/cpp/audio_config.h" |
| 11 #include "ppapi/cpp/instance.h" |
| 12 #include "ppapi/cpp/resource.h" |
| 13 |
| 14 namespace pp { |
| 15 |
| 16 class Audio : public Resource { |
| 17 public: |
| 18 Audio() {} |
| 19 Audio(Instance* instance, |
| 20 const AudioConfig& config, |
| 21 PPB_Audio_Callback callback, |
| 22 void* user_data); |
| 23 |
| 24 AudioConfig& config() { return config_; } |
| 25 const AudioConfig& config() const { return config_; } |
| 26 |
| 27 bool StartPlayback(); |
| 28 bool StopPlayback(); |
| 29 |
| 30 private: |
| 31 AudioConfig config_; |
| 32 }; |
| 33 |
| 34 } // namespace pp |
| 35 |
| 36 #endif // PPAPI_CPP_AUDIO_H_ |
| 37 |
OLD | NEW |