Home | History | Annotate | Download | only in proxy

Lines Matching defs:Audio

9 #include "media/audio/shared_memory_util.h"
36 class Audio : public Resource, public PPB_Audio_Shared {
38 Audio(const HostResource& audio_id,
42 virtual ~Audio();
62 DISALLOW_COPY_AND_ASSIGN(Audio);
65 Audio::Audio(const HostResource& audio_id,
75 Audio::~Audio() {
77 // Invoke StopPlayback() to ensure audio back-end has a chance to send the
79 // audio callback loop. This is required for NaCl Plugins that can't escape
86 PPB_Audio_API* Audio::AsPPB_Audio_API() {
90 PP_Resource Audio::GetCurrentConfig() {
96 PP_Bool Audio::StartPlayback() {
106 PP_Bool Audio::StopPlayback() {
116 int32_t Audio::Open(PP_Resource config_id,
121 int32_t Audio::GetSyncSocket(int* sync_socket) {
125 int32_t Audio::GetSharedMemory(int* shm_handle, uint32_t* shm_size) {
162 return (new Audio(result, config_id,
213 // Make an audio config object.
223 // Initiate opening the audio object.
227 // Clean up the temporary audio config resource we made.
267 // Audio allocates extra space in shared memory for book-keeping, so the
283 // Get the audio interface which will give us the handles.
335 static_cast<Audio*>(enter.object())->GetCurrentConfig(), true);
338 // we must call PacketSizeInBytes to get back the size of the audio buffer,
339 // excluding the bytes that audio uses for book-keeping.
340 static_cast<Audio*>(enter.object())->SetStreamInfo(