Apple CoreAudio audio output driver. More...
#include "stdinc.h"#include <CoreAudio/AudioHardware.h>#include "audio_file.h"#include "audio_output.h"#include "gui.h"
Go to the source code of this file.
Functions | |
| static OSStatus | audio_output_ioproc (AudioDeviceID inDevice, const AudioTimeStamp *inNow, const AudioBufferList *inInputData, const AudioTimeStamp *inInputTime, AudioBufferList *outOutputData, const AudioTimeStamp *inOutputTime, void *inClientData) |
| Pull-function needed by CoreAudio to copy data to the audio buffers. | |
| int | audio_output_open (void) |
| Open the sound device for audio output. | |
| int | audio_output_play (struct audio_file *fd) |
| Write data to the sound device. | |
| void | audio_output_close (void) |
| Close the sound device. | |
| static int | audio_output_volume_adjust (Float32 n) |
| Adjust the audio output by a certain ratio and return the new value. | |
| int | audio_output_volume_up (void) |
| Increment the volume and return the new value in percent. | |
| int | audio_output_volume_down (void) |
| Decrement the volume and return the new value in percent. | |
Variables | |
| AudioDeviceID | adid |
| The audio device ID obtained from CoreAudio. | |
| AudioStreamBasicDescription | afmt |
| The stream format used by the CoreAudio device. | |
| AudioDeviceIOProcID | aprocid |
| The IO-process ID. | |
| int16_t * | abufnew |
| The buffer that will be played when the current buffer is finished processing. | |
| int16_t * | abufcur |
| The buffer that is currently processed by CoreAudio. | |
| int | abuflen |
| The length of the buffers used by CoreAudio. | |
| int | abufulen = 0 |
| The length of the abufcur that is currently used. It should only be used with g_atomic_* operations. | |
| GMutex * | abuflock |
| A not really used mutex that is used for the conditional variable. | |
| GCond * | abufdrained |
| The conditional variable that is used to inform the application that a buffer has been processed. | |
| UInt32 | achans [2] = { 0, 0 } |
| Preferred audio channels used for audio playback. We use it to set the volume. | |
Apple CoreAudio audio output driver.
Definition in file audio_output_coreaudio.c.
1.6.3