Commit 9999718f authored by Gildas Bazin's avatar Gildas Bazin

* modules/audio_output/directx.c: added multichannel support to the
   directx plugin.
* modules/audio_output/waveout.c: fixed quad audio channels detection and
   a few misplaced debug messages.
* configure.ac.in: don't link anymore the rc plugin with the winsock lib.
parent 00568c5d
...@@ -129,7 +129,6 @@ case "x${target_os}" in ...@@ -129,7 +129,6 @@ case "x${target_os}" in
LDFLAGS_access_udp="${LDFLAGS_access_udp} -lws2_32" LDFLAGS_access_udp="${LDFLAGS_access_udp} -lws2_32"
LDFLAGS_access_ftp="${LDFLAGS_access_ftp} -lws2_32" LDFLAGS_access_ftp="${LDFLAGS_access_ftp} -lws2_32"
LDFLAGS_access_output_udp="${LDFLAGS_access_output_udp} -lws2_32" LDFLAGS_access_output_udp="${LDFLAGS_access_output_udp} -lws2_32"
LDFLAGS_rc="${LDFLAGS_rc} -lws2_32"
LDFLAGS_sap="${LDFLAGS_sap} -lws2_32" LDFLAGS_sap="${LDFLAGS_sap} -lws2_32"
fi fi
;; ;;
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* waveout.c : Windows waveOut plugin for vlc * waveout.c : Windows waveOut plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: waveout.c,v 1.16 2003/02/14 17:00:02 ipkiss Exp $ * $Id: waveout.c,v 1.17 2003/02/17 22:19:24 gbazin Exp $
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -343,15 +343,15 @@ static void Probe( aout_instance_t * p_aout ) ...@@ -343,15 +343,15 @@ static void Probe( aout_instance_t * p_aout )
{ {
val.psz_string = N_("5.1"); val.psz_string = N_("5.1");
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val ); var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val );
}
else
msg_Dbg( p_aout, "device supports 5.1 channels" ); msg_Dbg( p_aout, "device supports 5.1 channels" );
}
} }
/* Test for 2 Front 2 Rear support */ /* Test for 2 Front 2 Rear support */
i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT | i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT |
AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT; AOUT_CHAN_REARLEFT | AOUT_CHAN_REARRIGHT;
if( p_aout->output.output.i_physical_channels & i_physical_channels ) if( ( p_aout->output.output.i_physical_channels & i_physical_channels )
== i_physical_channels )
{ {
if( OpenWaveOutPCM( p_aout, &i_format, if( OpenWaveOutPCM( p_aout, &i_format,
i_physical_channels, 4, i_physical_channels, 4,
...@@ -360,9 +360,8 @@ static void Probe( aout_instance_t * p_aout ) ...@@ -360,9 +360,8 @@ static void Probe( aout_instance_t * p_aout )
{ {
val.psz_string = N_("2 Front 2 Rear"); val.psz_string = N_("2 Front 2 Rear");
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val ); var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val );
}
else
msg_Dbg( p_aout, "device supports 4 channels" ); msg_Dbg( p_aout, "device supports 4 channels" );
}
} }
/* Test for stereo support */ /* Test for stereo support */
...@@ -375,9 +374,8 @@ static void Probe( aout_instance_t * p_aout ) ...@@ -375,9 +374,8 @@ static void Probe( aout_instance_t * p_aout )
val.psz_string = N_("Stereo"); val.psz_string = N_("Stereo");
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val ); var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val );
var_Set( p_aout, "audio-device", val ); var_Set( p_aout, "audio-device", val );
}
else
msg_Dbg( p_aout, "device supports 2 channels" ); msg_Dbg( p_aout, "device supports 2 channels" );
}
/* Test for mono support */ /* Test for mono support */
i_physical_channels = AOUT_CHAN_CENTER; i_physical_channels = AOUT_CHAN_CENTER;
...@@ -388,9 +386,8 @@ static void Probe( aout_instance_t * p_aout ) ...@@ -388,9 +386,8 @@ static void Probe( aout_instance_t * p_aout )
{ {
val.psz_string = N_("Mono"); val.psz_string = N_("Mono");
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val ); var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE, &val );
}
else
msg_Dbg( p_aout, "device supports 1 channel" ); msg_Dbg( p_aout, "device supports 1 channel" );
}
var_AddCallback( p_aout, "audio-device", aout_ChannelsRestart, NULL ); var_AddCallback( p_aout, "audio-device", aout_ChannelsRestart, NULL );
...@@ -746,6 +743,9 @@ static void CALLBACK WaveOutCallback( HWAVEOUT h_waveout, UINT uMsg, ...@@ -746,6 +743,9 @@ static void CALLBACK WaveOutCallback( HWAVEOUT h_waveout, UINT uMsg,
} }
} }
/*****************************************************************************
* InterleaveFloat32/S16: change the channel order to the Microsoft one.
*****************************************************************************/
static void InterleaveFloat32( float *p_buf, int *pi_chan_table, static void InterleaveFloat32( float *p_buf, int *pi_chan_table,
int i_nb_channels ) int i_nb_channels )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment