1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // Copyright (c) 2017 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef PPAPI_THUNK_PPB_AUDIO_OUTPUT_API_H_
- #define PPAPI_THUNK_PPB_AUDIO_OUTPUT_API_H_
- #include <stdint.h>
- #include "base/memory/ref_counted.h"
- #include "ppapi/c/dev/ppb_audio_output_dev.h"
- namespace ppapi {
- class TrackedCallback;
- namespace thunk {
- class PPB_AudioOutput_API {
- public:
- virtual ~PPB_AudioOutput_API() {}
- virtual int32_t EnumerateDevices(const PP_ArrayOutput& output,
- scoped_refptr<TrackedCallback> callback) = 0;
- virtual int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback,
- void* user_data) = 0;
- virtual int32_t Open(PP_Resource device_ref,
- PP_Resource config,
- PPB_AudioOutput_Callback audio_output_callback,
- void* user_data,
- scoped_refptr<TrackedCallback> callback) = 0;
- virtual PP_Resource GetCurrentConfig() = 0;
- virtual PP_Bool StartPlayback() = 0;
- virtual PP_Bool StopPlayback() = 0;
- virtual void Close() = 0;
- };
- } // namespace thunk
- } // namespace ppapi
- #endif // PPAPI_THUNK_PPB_AUDIO_OUTPUT_API_H_
|