#include "windows_audio_common.h"
-#define DS_BUF_SIZE (1024*1024)
+#define DS_BUF_SIZE (4*1024*1024)
/*****************************************************************************
* aout_sys_t: directx audio output method descriptor
bool mute;
} volume;
- int i_bytes_per_sample; /* Size in bytes of one frame */
- int i_rate; /* Sample rate */
+ int i_bytes_per_sample; /* Size in bytes of one frame */
+ int i_rate; /* Sample rate */
uint8_t chans_to_reorder; /* do we need channel reordering */
uint8_t chan_table[AOUT_CHAN_MAX];
(void **) &p_aout->sys->p_notify )
!= DS_OK )
{
-
+
msg_Err(p_aout, "Couldn't query IDirectSoundNotify");
p_aout->sys->p_notify = NULL;
}
{
unsigned i_nb_channels = popcount( i_channels );
- /* Float32 audio samples are not supported for 5.1 output on the emu101k */
if( !var_GetBool( p_aout, "directx-audio-float32" ) ||
- i_nb_channels > 2 ||
CreateDSBuffer( p_aout, VLC_CODEC_FL32,
i_channels, i_nb_channels, i_rate, b_probe )
!= VLC_SUCCESS )
else
{
IDirectSoundBuffer_Stop( aout->sys->p_dsbuffer );
- IDirectSoundBuffer_SetCurrentPosition( aout->sys->p_dsbuffer,
+ IDirectSoundBuffer_SetCurrentPosition( aout->sys->p_dsbuffer,
aout->sys->i_write );
}
}