diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-08-26 21:18:32 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-08-26 21:18:32 +0000 |
commit | 52a53032fe9bf2c331d6a5923d37c385f3b31464 (patch) | |
tree | 6a155a83f3722a1d3ed40b01d3e0310d3ce219ed /src/xine-engine/audio_out.h | |
parent | 10677ef1e21c0429e2850d81b904dcc209ef0f19 (diff) | |
download | xine-lib-52a53032fe9bf2c331d6a5923d37c385f3b31464.tar.gz xine-lib-52a53032fe9bf2c331d6a5923d37c385f3b31464.tar.bz2 |
add a mechanism to force closing audio device without stoping stream.
this is useful for (1) pausing the playback, (2) let another
application use the sound card, and then (3) unpause it again.
also add new "format" field to audio buffer (just like we have
for frames)
CVS patchset: 5312
CVS date: 2003/08/26 21:18:32
Diffstat (limited to 'src/xine-engine/audio_out.h')
-rw-r--r-- | src/xine-engine/audio_out.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/xine-engine/audio_out.h b/src/xine-engine/audio_out.h index 8859b454c..8b12d9e3c 100644 --- a/src/xine-engine/audio_out.h +++ b/src/xine-engine/audio_out.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.h,v 1.56 2003/07/22 09:36:03 mroi Exp $ + * $Id: audio_out.h,v 1.57 2003/08/26 21:18:32 miguelfreitas Exp $ */ #ifndef HAVE_AUDIO_OUT_H #define HAVE_AUDIO_OUT_H @@ -138,6 +138,14 @@ struct ao_driver_s { typedef struct extra_info_s extra_info_t; #endif +typedef struct ao_format_s ao_format_t; + +struct ao_format_s { + uint32_t bits; + uint32_t rate; + int mode; +}; + typedef struct audio_fifo_s audio_fifo_t; typedef struct audio_buffer_s audio_buffer_t; @@ -159,14 +167,7 @@ struct audio_buffer_s { xine_stream_t *stream; /* stream that send that buffer */ -}; - -typedef struct ao_format_s ao_format_t; - -struct ao_format_s { - uint32_t bits; - uint32_t rate; - int mode; + ao_format_t format; /* let each buffer carry it's own format info */ }; /* @@ -305,6 +306,7 @@ xine_audio_port_t *ao_new_port (xine_t *xine, ao_driver_t *driver, int grab_only #define AO_PROP_EQ_4000HZ 14 /* equalizer */ #define AO_PROP_EQ_8000HZ 15 /* equalizer */ #define AO_PROP_EQ_16000HZ 16 /* equalizer */ +#define AO_PROP_CLOSE_DEVICE 17 /* force closing audio device */ /* audio device control ops */ #define AO_CTRL_PLAY_PAUSE 0 |