PortAudio  2.0
Functions
pa_linux_pulseaudio_cb.c File Reference

PulseAudio implementation of support for a host API. More...

#include "pa_util.h"
#include "pa_allocation.h"
#include "pa_hostapi.h"
#include "pa_stream.h"
#include "pa_cpuload.h"
#include "pa_process.h"
#include "pa_unix_util.h"
#include "pa_ringbuffer.h"
#include "pa_linux_pulseaudio_cb_internal.h"
#include <string.h>
#include <unistd.h>

Functions

int PaPulseAudio_updateTimeInfo (pa_stream *s, PaStreamCallbackTimeInfo *timeInfo, int record)
 
void PaPulseAudio_ReleaseOperation (PaPulseAudio_HostApiRepresentation *hostapi, pa_operation **operation)
 
void PaPulseAudio_Lock (pa_threaded_mainloop *mainloop)
 
void PaPulseAudio_UnLock (pa_threaded_mainloop *mainloop)
 
void _PaPulseAudio_WriteRingBuffer (PaUtilRingBuffer *ringbuffer, const void *buffer, size_t length)
 
void _PaPulseAudio_Read (PaPulseAudio_Stream *stream, size_t length)
 
void PaPulseAudio_StreamRecordCb (pa_stream *s, size_t length, void *userdata)
 
void PaPulseAudio_StreamPlaybackCb (pa_stream *s, size_t length, void *userdata)
 
void PaPulseAudio_StreamStartedCb (pa_stream *stream, void *userdata)
 
PaError PaPulseAudio_CloseStreamCb (PaStream *s)
 
PaError _PaPulseAudio_WaitStreamState (pa_threaded_mainloop *mainloop, pa_stream *stream)
 
PaError PaPulseAudio_StartStreamCb (PaStream *s)
 
PaError PaPulseAudio_StopStreamCb (PaStream *s)
 
PaError PaPulseAudio_AbortStreamCb (PaStream *s)
 

Detailed Description

PulseAudio implementation of support for a host API.

This host API implements PulseAudio support for portaudio it has callback mode and normal write mode support

Function Documentation

void _PaPulseAudio_Read ( PaPulseAudio_Stream stream,
size_t  length 
)
PaError _PaPulseAudio_WaitStreamState ( pa_threaded_mainloop *  mainloop,
pa_stream *  stream 
)
void _PaPulseAudio_WriteRingBuffer ( PaUtilRingBuffer ringbuffer,
const void *  buffer,
size_t  length 
)
PaError PaPulseAudio_AbortStreamCb ( PaStream s)
PaError PaPulseAudio_CloseStreamCb ( PaStream s)
void PaPulseAudio_Lock ( pa_threaded_mainloop *  mainloop)
void PaPulseAudio_ReleaseOperation ( PaPulseAudio_HostApiRepresentation hostapi,
pa_operation **  operation 
)
PaError PaPulseAudio_StartStreamCb ( PaStream s)
PaError PaPulseAudio_StopStreamCb ( PaStream s)

Referenced by PaPulseAudio_Initialize().

void PaPulseAudio_StreamPlaybackCb ( pa_stream *  s,
size_t  length,
void *  userdata 
)
void PaPulseAudio_StreamRecordCb ( pa_stream *  s,
size_t  length,
void *  userdata 
)
void PaPulseAudio_StreamStartedCb ( pa_stream *  stream,
void *  userdata 
)

References PaPulseAudio_Stream::mainloop.

Referenced by OpenStream().

void PaPulseAudio_UnLock ( pa_threaded_mainloop *  mainloop)
int PaPulseAudio_updateTimeInfo ( pa_stream *  s,
PaStreamCallbackTimeInfo timeInfo,
int  record 
)