? a.patch Index: audioIO_SunOS.cpp =================================================================== RCS file: /home/kde/kdemultimedia/mpeglib/lib/util/audio/audioIO_SunOS.cpp,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 audioIO_SunOS.cpp --- audioIO_SunOS.cpp 2000/07/04 19:21:58 1.1.1.1 +++ audioIO_SunOS.cpp 2000/09/21 13:27:15 @@ -3,6 +3,7 @@ Origional code by: tomislav uzelac Modified by: * Andrew Richards - moved code from audio.c + * Jim Crumley - ported some code from other audioIO_'s */ @@ -20,6 +21,17 @@ static audio_fd; static audio_info_t auinfo; + +int audioConstruct(){ + audio_fd=-1; + return true; +} + +void audioDestruct() { + +} + + /* audioOpen() */ /* should open the audio device and perform any special initialization */ /* returns the file descriptior of the audio device */ @@ -81,6 +93,20 @@ only code this if your system can change the volume while playing */ + + +int getAudioBufferSize() { + int buf; + if (ioctl(audio_fd,AUDIO_GETINFO,&auinfo) == -1) { + perror("ioctl getAudioBufferSize using default"); + buf=1024*65; + } else { + buf=auinfo.play.buffer_size; + } + return buf; +} + + void mixerSetVolume(int leftVolume,int rightVolume) { int volume;