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/xine_interface.c | |
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/xine_interface.c')
-rw-r--r-- | src/xine-engine/xine_interface.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 19a367f5b..c026bbca1 100644 --- a/src/xine-engine/xine_interface.c +++ b/src/xine-engine/xine_interface.c @@ -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: xine_interface.c,v 1.56 2003/08/24 08:31:30 f1rmb Exp $ + * $Id: xine_interface.c,v 1.57 2003/08/26 21:18:32 miguelfreitas Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -374,6 +374,11 @@ void xine_set_param (xine_stream_t *stream, int param, int value) { stream->audio_out->set_property (stream->audio_out, AO_PROP_AMP, value); break; + case XINE_PARAM_AUDIO_CLOSE_DEVICE: + if (stream->audio_out) + stream->audio_out->set_property (stream->audio_out, AO_PROP_CLOSE_DEVICE, value); + break; + case XINE_PARAM_EQ_30HZ: case XINE_PARAM_EQ_60HZ: case XINE_PARAM_EQ_125HZ: |