#include <AudioToolBox/AudioToolBox.h>
-#define FRAME_SIZE 2048
-
/*****************************************************************************
* aout_sys_t: AudioQueue audio output method descriptor
*****************************************************************************
AudioQueueBufferRef inBuffer = NULL;
OSStatus status;
- status = AudioQueueAllocateBuffer(p_aout->sys->audioQueue, FRAME_SIZE * 2, &inBuffer);
+ status = AudioQueueAllocateBuffer(p_aout->sys->audioQueue, p_block->i_buffer, &inBuffer);
if (status != noErr) {
msg_Err(p_aout, "buffer alloction failed (%li)", status);
return;