[vlc-devel] commit: DirectSound: be more restrictive and fix warning ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Aug 19 23:43:21 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 19 22:38:14 2009 +0200| [bc5036063f7dcd99fd3a8b358227a05fe9a6673b] | committer: Jean-Baptiste Kempf
DirectSound: be more restrictive and fix warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bc5036063f7dcd99fd3a8b358227a05fe9a6673b
---
modules/audio_output/directx.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 9c040d6..80081cd 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -1,7 +1,7 @@
/*****************************************************************************
* directx.c: Windows DirectX audio output method
*****************************************************************************
- * Copyright (C) 2001 the VideoLAN team
+ * Copyright (C) 2001-2009 the VideoLAN team
* $Id$
*
* Authors: Gildas Bazin <gbazin at videolan.org>
@@ -210,7 +210,7 @@ static void Play ( aout_instance_t * );
static void Probe ( aout_instance_t * );
static int InitDirectSound ( aout_instance_t * );
static int CreateDSBuffer ( aout_instance_t *, int, int, int, int, int, bool );
-static int CreateDSBufferPCM ( aout_instance_t *, int*, int, int, int, bool );
+static int CreateDSBufferPCM ( aout_instance_t *, vlc_fourcc_t*, int, int, int, bool );
static void DestroyDSBuffer ( aout_instance_t * );
static void* DirectSoundThread( vlc_object_t * );
static int FillBuffer ( aout_instance_t *, int, aout_buffer_t * );
@@ -448,7 +448,7 @@ static int OpenAudio( vlc_object_t *p_this )
static void Probe( aout_instance_t * p_aout )
{
vlc_value_t val, text;
- int i_format;
+ vlc_fourcc_t i_format;
unsigned int i_physical_channels;
DWORD ui_speaker_config;
bool is_default_output_set = false;
@@ -984,7 +984,7 @@ static int CreateDSBuffer( aout_instance_t *p_aout, int i_format,
* We first try to create a WAVE_FORMAT_IEEE_FLOAT buffer if supported by
* the hardware, otherwise we create a WAVE_FORMAT_PCM buffer.
****************************************************************************/
-static int CreateDSBufferPCM( aout_instance_t *p_aout, int *i_format,
+static int CreateDSBufferPCM( aout_instance_t *p_aout, vlc_fourcc_t *i_format,
int i_channels, int i_nb_channels, int i_rate,
bool b_probe )
{
More information about the vlc-devel
mailing list