]> git.sesse.net Git - vlc/commitdiff
* Fixed BeOS output ;
authorChristophe Massiot <massiot@videolan.org>
Mon, 19 Aug 2002 21:54:37 +0000 (21:54 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 19 Aug 2002 21:54:37 +0000 (21:54 +0000)
* Fixed a few boolean_t.

modules/gui/beos/AudioOutput.cpp
src/audio_output/filters.c
src/audio_output/mixer.c

index a5f2f00f724be184e5850cfcc62ba6b074cee907..cb5883103c46c85c0a0847c96c7c3d83d050ad61 100644 (file)
@@ -2,7 +2,7 @@
  * aout.cpp: BeOS audio output
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: AudioOutput.cpp,v 1.3 2002/08/19 11:51:03 tcastley Exp $
+ * $Id: AudioOutput.cpp,v 1.4 2002/08/19 21:54:37 massiot Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -63,7 +63,7 @@ struct aout_sys_t
  *****************************************************************************/
 static int     SetFormat   ( aout_instance_t * );
 //static int     GetBufInfo  ( aout_instance_t *, int );
-static void    Play        ( aout_instance_t *, aout_buffer_t * );
+static void    Play        ( aout_instance_t * );
 
 /*****************************************************************************
  * OpenAudio: opens a BPushGameSound
@@ -138,9 +138,9 @@ static int SetFormat( aout_instance_t *p_aout )
  *****************************************************************************
  * This function writes a buffer of i_length bytes in the dsp
  *****************************************************************************/
-static void Play( aout_instance_t *p_aout,
-                  aout_buffer_t *p_buffer )
+static void Play( aout_instance_t *p_aout )
 {
+    aout_buffer_t * p_buffer = aout_FifoPop( p_aout, &p_aout->output.fifo );
     int i_newbuf_pos;
 
     if( (i_newbuf_pos = p_aout->output.p_sys->i_buffer_pos + p_buffer->i_size)
index f4c017bd4e54b3ec377cd69e792eac12a0b4503f..c97ffc098a189e6c27981f2f531e665d9718810a 100644 (file)
@@ -2,7 +2,7 @@
  * filters.c : audio output filters management
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: filters.c,v 1.5 2002/08/19 21:31:11 massiot Exp $
+ * $Id: filters.c,v 1.6 2002/08/19 21:54:37 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -76,13 +76,13 @@ static int SplitConversion( aout_instance_t * p_aout,
                              const audio_sample_format_t * p_input_format,
                              const audio_sample_format_t * p_output_format,
                              audio_sample_format_t * p_middle_format,
-                             boolean_t b_format_first,
-                             boolean_t b_rate_first )
+                             vlc_bool_t b_format_first,
+                             vlc_bool_t b_rate_first )
 {
-    boolean_t b_format =
+    vlc_bool_t b_format =
              (p_input_format->i_format != p_output_format->i_format);
-    boolean_t b_rate = (p_input_format->i_rate != p_output_format->i_rate);
-    boolean_t b_channels =
+    vlc_bool_t b_rate = (p_input_format->i_rate != p_output_format->i_rate);
+    vlc_bool_t b_channels =
              (p_input_format->i_channels != p_output_format->i_channels);
     int i_nb_conversions = b_format + b_rate + b_channels;
 
@@ -160,7 +160,7 @@ int aout_FiltersCreatePipeline( aout_instance_t * p_aout,
                                 const audio_sample_format_t * p_output_format )
 {
     audio_sample_format_t temp_format;
-    boolean_t b_format_first, b_rate_first;
+    vlc_bool_t b_format_first, b_rate_first;
 
     if ( AOUT_FMTS_IDENTICAL( p_input_format, p_output_format ) )
     {
index f17a6ecc600d2d8de4326ef0f9e58c7478468613..1b6f261aa0669788428e0e6bcf33efacd7ac1a57 100644 (file)
@@ -2,7 +2,7 @@
  * mixer.c : audio output mixing operations
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: mixer.c,v 1.6 2002/08/19 21:31:11 massiot Exp $
+ * $Id: mixer.c,v 1.7 2002/08/19 21:54:37 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -92,7 +92,7 @@ void aout_MixerRun( aout_instance_t * p_aout )
         aout_fifo_t * p_fifo = &p_input->fifo;
         aout_buffer_t * p_buffer;
         mtime_t prev_date;
-        boolean_t b_drop_buffers;
+        vlc_bool_t b_drop_buffers;
 
         vlc_mutex_lock( &p_fifo->lock );