#include <CoreAudio/CoreAudio.h>
#include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/DefaultAudioOutput.h>
+
+/** describes one input buffer for the osx writer */
struct osx_buffer {
+ /** pointer to the beginning of the buffer */
float *buffer;
+ /** the size of this buffer */
long size;
- float *ptr; /* Where in the buffer are we? */
+ /* current position in the buffer */
+ float *ptr;
+ /** number of floats not yet consuned */
long remaining;
+ /** pointer to the next audio buffer */
struct osx_buffer *next;
};