#include <sys/types.h>
#include <dirent.h>
-#include <CoreAudio/CoreAudio.h>
+
#include "para.h"
#include "fd.h"
#include "string.h"
#include "osx_write.cmdline.h"
#include "error.h"
-
-#include <CoreAudio/CoreAudio.h>
+#include <CoreServices/CoreServices.h>
#include <AudioUnit/AudioUnit.h>
-#include <AudioToolbox/DefaultAudioOutput.h>
+#include <AudioToolbox/AudioToolbox.h>
/** describes one input buffer for the osx writer */
struct osx_buffer {