671242f350d172e106580348e24bab66b0d7e6a5vboxsync/* -*- c-basic-offset: 8 -*-
671242f350d172e106580348e24bab66b0d7e6a5vboxsync rdesktop: A Remote Desktop Protocol client.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Sound Channel Process Functions - Sun
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 2003-2008
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Copyright (C) GuoJunBo <guojunbo@ict.ac.cn> 2003
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Copyright (C) Michael Gernoth <mike@zerfleddert.de> 2003-2008
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Copyright 2007-2008 Pierre Ossman <ossman@cendio.se> for Cendio AB
671242f350d172e106580348e24bab66b0d7e6a5vboxsync Copyright 2008-2011 Peter Astrand <astrand@cendio.se> for Cendio AB
671242f350d172e106580348e24bab66b0d7e6a5vboxsync This program is free software: you can redistribute it and/or modify
671242f350d172e106580348e24bab66b0d7e6a5vboxsync it under the terms of the GNU General Public License as published by
671242f350d172e106580348e24bab66b0d7e6a5vboxsync the Free Software Foundation, either version 3 of the License, or
671242f350d172e106580348e24bab66b0d7e6a5vboxsync (at your option) any later version.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync This program is distributed in the hope that it will be useful,
671242f350d172e106580348e24bab66b0d7e6a5vboxsync but WITHOUT ANY WARRANTY; without even the implied warranty of
671242f350d172e106580348e24bab66b0d7e6a5vboxsync MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
671242f350d172e106580348e24bab66b0d7e6a5vboxsync GNU General Public License for more details.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync You should have received a copy of the GNU General Public License
671242f350d172e106580348e24bab66b0d7e6a5vboxsync along with this program. If not, see <http://www.gnu.org/licenses/>.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync * Oracle GPL Disclaimer: For the avoidance of doubt, except that if any license choice
671242f350d172e106580348e24bab66b0d7e6a5vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
671242f350d172e106580348e24bab66b0d7e6a5vboxsync * the General Public License version 2 (GPLv2) at this time for any software where
671242f350d172e106580348e24bab66b0d7e6a5vboxsync * a choice of GPL license versions is made available with the language indicating
671242f350d172e106580348e24bab66b0d7e6a5vboxsync * that GPLv2 or any later version may be used, or where a choice of which version
671242f350d172e106580348e24bab66b0d7e6a5vboxsync * of the GPL is applied is otherwise unspecified.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync#if (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncsun_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync * Pause recording until we actually start using it.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync /* Flush the audiobuffer */
sun_close();
while (!rdpsnd_queue_empty())
return False;
return False;
#ifdef L_ENDIAN
sun_close();
return False;
return True;
sun_pause();
sun_close();
return False;
return False;
return False;
return True;
if (dsp_configured)
return False;
return False;
return False;
return False;
return True;
sun_pause();
stereo = 0;
sun_close();
return False;
if (dsp_in)
sun_resume();
return True;
balance =
if (rdpsnd_queue_empty())
if (!dsp_broken)
struct audio_driver *
if (options)
return &sun_driver;