Mercurial > mplayer.hg
view mixer.h @ 9787:c3b63fb0e8db
Added a test for "s->fd == NULL" to the start of "stream_fill_buffer()".
("fd" is NULL if the session is defined by a SDP file, for example.)
It turns out that this test is necessary only for Solaris, not Linux,
because in Linux, "s->eof" got set after the prior (failing) call to
"lseek()" in "stream_seek_long()". In Solaris, however, "lseek(NULL, ...)"
returns 0 (go figure!) rather than -1, so "s->eof" doesn't get set in
"stream_seek_long()".
author | rsf |
---|---|
date | Wed, 02 Apr 2003 01:46:47 +0000 |
parents | da2dda48b7ec |
children | 4e8f8efb6906 |
line wrap: on
line source
#ifndef __MPLAYER_MIXER #define __MPLAYER_MIXER extern char * mixer_device; extern int muted; extern void mixer_getvolume( float *l,float *r ); extern void mixer_setvolume( float l,float r ); extern void mixer_incvolume( void ); extern void mixer_decvolume( void ); extern float mixer_getbothvolume( void ); void mixer_mute( void ); //extern void mixer_setbothvolume( int v ); #define mixer_setbothvolume( v ) mixer_setvolume( v,v ) #endif