summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-20 08:15:27 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-20 08:15:27 +0000
commit02424fa21f11068bff3a6d5de8e870e2caae198f (patch)
tree7f32187aec9a1032fd2d8fd03f0c3de565c42c7e /libao2
parent671f3a9ec2059913edd840f21ac1bbe424b6c4a7 (diff)
downloadmpv-02424fa21f11068bff3a6d5de8e870e2caae198f.tar.bz2
mpv-02424fa21f11068bff3a6d5de8e870e2caae198f.tar.xz
Remove unused code, if it is ever needed it can be recovered from history
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23350 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_sun.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/libao2/ao_sun.c b/libao2/ao_sun.c
index 0fab30f8bd..75d5d383af 100644
--- a/libao2/ao_sun.c
+++ b/libao2/ao_sun.c
@@ -562,42 +562,6 @@ static int init(int rate,int channels,int format,int flags){
ao_data.bps = byte_per_sec = bytes_per_sample * ao_data.samplerate;
ao_data.outburst = byte_per_sec > 100000 ? 16384 : 8192;
-#ifdef __not_used__
- /*
- * hmm, ao_data.buffersize is currently not used in this driver, do there's
- * no need to measure it
- */
- if(ao_data.buffersize==-1){
- // Measuring buffer size:
- void* data;
- ao_data.buffersize=0;
-#ifdef HAVE_AUDIO_SELECT
- data = malloc(ao_data.outburst);
- memset(data, format==AF_FORMAT_U8 ? 0x80 : 0, ao_data.outburst);
- while(ao_data.buffersize<0x40000){
- fd_set rfds;
- struct timeval tv;
- FD_ZERO(&rfds); FD_SET(audio_fd,&rfds);
- tv.tv_sec=0; tv.tv_usec = 0;
- if(!select(audio_fd+1, NULL, &rfds, NULL, &tv)) break;
- write(audio_fd,data,ao_data.outburst);
- ao_data.buffersize+=ao_data.outburst;
- }
- free(data);
- if(ao_data.buffersize==0){
- mp_msg(MSGT_AO, MSGL_ERR, MSGTR_AO_SUN_CantUseSelect);
- return 0;
- }
-#ifdef __svr4__
- // remove the 0 bytes from the above ao_data.buffersize measurement from the
- // audio driver's STREAMS queue
- ioctl(audio_fd, I_FLUSH, FLUSHW);
-#endif
- ioctl(audio_fd, AUDIO_DRAIN, 0);
-#endif
- }
-#endif /* __not_used__ */
-
AUDIO_INITINFO(&info);
info.play.samples = 0;
info.play.eof = 0;