PortAudio
2.0
|
#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 <stdio.h>
#include <string.h>
#include <pulse/pulseaudio.h>
#include "pa_linux_pulseaudio_internal.h"
Go to the source code of this file.
Functions | |
int | PaPulseAudio_updateTimeInfo (pa_stream *s, PaStreamCallbackTimeInfo *timeInfo, int record) |
void * | PaPulseAudio_processThread (void *userdata) |
PaError | PaPulseAudio_CloseStreamCb (PaStream *stream) |
PaError | PaPulseAudio_StartStreamCb (PaStream *stream) |
PaError | PaPulseAudio_StopStreamCb (PaStream *stream) |
PaError | PaPulseAudio_AbortStreamCb (PaStream *stream) |
void | PaPulseAudio_StreamRecordCb (pa_stream *s, size_t length, void *userdata) |
void | PaPulseAudio_StreamPlaybackCb (pa_stream *s, size_t length, void *userdata) |
Referenced by PaPulseAudio_Initialize(), and PaPulseAudio_StartStreamCb().
References PaPulseAudio_Stream::bufferProcessor, PaPulseAudio_Stream::hostapi, PaPulseAudio_Stream::inputStream, PaPulseAudio_Stream::inputStreamName, PaPulseAudio_Stream::isActive, PaPulseAudio_Stream::isStopped, PaPulseAudio_Stream::mainloop, PaPulseAudio_Stream::outputStream, PaPulseAudio_Stream::outputStreamName, paNoError, PaPulseAudio_Lock(), PaPulseAudio_ReleaseOperation(), PaPulseAudio_UnLock(), PaUtil_FreeMemory(), PaUtil_TerminateBufferProcessor(), PaUtil_TerminateStreamRepresentation(), PaPulseAudio_Stream::pulseaudioIsActive, PaPulseAudio_Stream::pulseaudioIsStopped, and PaPulseAudio_Stream::streamRepresentation.
Referenced by PaPulseAudio_Initialize().
void* PaPulseAudio_processThread | ( | void * | userdata | ) |
References _PaPulseAudio_WaitStreamState(), PaPulseAudio_Stream::bufferProcessor, PaHostApiInfo::defaultInputDevice, PaHostApiInfo::defaultOutputDevice, PaPulseAudio_Stream::hostapi, PaUtilHostApiRepresentation::info, PaPulseAudio_HostApiRepresentation::inheritedHostApiRep, PaPulseAudio_Stream::inputBufferAttr, PaPulseAudio_Stream::inputDevice, PaPulseAudio_Stream::inputSampleSpec, PaPulseAudio_Stream::inputStream, PaPulseAudio_Stream::isActive, PaPulseAudio_Stream::isStopped, PaPulseAudio_HostApiRepresentation::mainloop, PaPulseAudio_Stream::missedBytes, PaPulseAudio_Stream::outputBufferAttr, PaPulseAudio_Stream::outputDevice, PaPulseAudio_Stream::outputSampleSpec, PaPulseAudio_Stream::outputStream, PaPulseAudio_Stream::outputUnderflows, PA_DEBUG, paNoDevice, paNoError, paNotInitialized, PaPulseAudio_AbortStreamCb(), PaPulseAudio_Lock(), PaPulseAudio_ReleaseOperation(), PaPulseAudio_StreamPlaybackCb(), PaPulseAudio_StreamRecordCb(), PaPulseAudio_UnLock(), PaUtil_DeviceIndexToHostApiDeviceIndex(), PaUtil_ResetBufferProcessor(), PaPulseAudio_HostApiRepresentation::pulseaudioDeviceNames, PaPulseAudio_Stream::pulseaudioIsActive, PaPulseAudio_Stream::pulseaudioIsStopped, and PaPulseAudio_Stream::suggestedLatencyUSecs.
Referenced by PaPulseAudio_Initialize().
Referenced by PaPulseAudio_Initialize().
void PaPulseAudio_StreamPlaybackCb | ( | pa_stream * | s, |
size_t | length, | ||
void * | userdata | ||
) |
References PaPulseAudio_Stream::bufferProcessor, PaPulseAudio_Stream::mainloop, and PaUtilBufferProcessor::streamCallback.
Referenced by PaPulseAudio_StartStreamCb().
void PaPulseAudio_StreamRecordCb | ( | pa_stream * | s, |
size_t | length, | ||
void * | userdata | ||
) |
References _PaPulseAudio_Read(), PaPulseAudio_Stream::bufferProcessor, PaPulseAudio_Stream::mainloop, and PaUtilBufferProcessor::streamCallback.
Referenced by PaPulseAudio_StartStreamCb().
int PaPulseAudio_updateTimeInfo | ( | pa_stream * | s, |
PaStreamCallbackTimeInfo * | timeInfo, | ||
int | record | ||
) |
References PaStreamCallbackTimeInfo::currentTime, PaStreamCallbackTimeInfo::inputBufferAdcTime, and PaStreamCallbackTimeInfo::outputBufferDacTime.
Referenced by GetStreamTime().