/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <Utilities.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
/* does not work on Solaris 2.7 */
#ifndef __linux__
#include <stropts.h>
#endif
#include <unistd.h>
/* defines for Solaris 2.7
#ifndef AUDIO_AUX1_OUT
#define AUDIO_AUX1_OUT (0x08) // output to aux1 out
#define AUDIO_AUX2_OUT (0x10) // output to aux2 out
#define AUDIO_SPDIF_OUT (0x20) // output to SPDIF port
#define AUDIO_AUX1_IN (0x08) // input from aux1 in
#define AUDIO_AUX2_IN (0x10) // input from aux2 in
#define AUDIO_SPDIF_IN (0x20) // input from SPDIF port
#endif
*/
/* input from Codec inter. loopback */
#ifndef AUDIO_CODEC_LOOPB_IN
#endif
typedef struct tag_AudioDevicePath {
typedef struct tag_AudioDeviceDescription {
int getAudioDeviceCount();
/*
* adPath is an array of AudioDevicePath structures
* count contains initially the number of elements in adPath
* and will be set to the returned number of paths.
*/
/*
* fills adDesc from the audio device given in path
* returns 0 if an error occured
* if getNames is 0, only path and pathctl are filled
*/
#endif // PLATFORM_API_SOLARISOS_UTILS_H_INCLUDED