[xiph-commits] r3722 - in libsydneyaudio/trunk: . include src
silvia at svn.annodex.net
silvia at svn.annodex.net
Fri Sep 19 21:36:14 PDT 2008
Author: silvia
Date: 2008-09-19 21:36:13 -0700 (Fri, 19 Sep 2008)
New Revision: 3722
Added:
libsydneyaudio/trunk/src/sydney_audio_sunaudio.c
Modified:
libsydneyaudio/trunk/Makefile.am
libsydneyaudio/trunk/configure.ac
libsydneyaudio/trunk/include/Makefile.am
libsydneyaudio/trunk/include/sydney_audio.h
libsydneyaudio/trunk/src/Makefile.am
libsydneyaudio/trunk/src/sydney_audio_mac.c
Log:
fixed the compile for apple; applied patch from sun for sunaudio support; added some copyright info to makefiles, though that has to be completed
Modified: libsydneyaudio/trunk/Makefile.am
===================================================================
--- libsydneyaudio/trunk/Makefile.am 2008-09-17 07:22:54 UTC (rev 3721)
+++ libsydneyaudio/trunk/Makefile.am 2008-09-20 04:36:13 UTC (rev 3722)
@@ -1,3 +1,31 @@
+# Copyright (C) 2003 Annodex Association
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# - Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# - Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# - Neither the name of CSIRO Australia nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ORGANISATION OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AUTOMAKE_OPTIONS = foreign
Modified: libsydneyaudio/trunk/configure.ac
===================================================================
--- libsydneyaudio/trunk/configure.ac 2008-09-17 07:22:54 UTC (rev 3721)
+++ libsydneyaudio/trunk/configure.ac 2008-09-20 04:36:13 UTC (rev 3722)
@@ -32,6 +32,21 @@
dnl Configure for target platform
dnl
+HAVE_APPLE=no
+case "$target_os" in
+ linux* | solaris*)
+ SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
+ AC_SUBST(PLATFORM,"linux")
+ ;;
+ darwin* | rhapsody*)
+ APPLE_LIBS="-framework CoreAudio -framework AudioUnit -framework AudioToolbox"
+ AC_SUBST(APPLE_LIBS)
+ AUDIO_BACKEND=apple
+ ;;
+ *)
+ ;;
+esac
+
dnl
dnl Detect alsa
dnl
@@ -47,6 +62,16 @@
AC_SUBST(PULSE_LIBS)
dnl
+dnl detect sun audio
+dnl
+AC_CHECK_HEADER(sys/audioio.h, HAVE_SUN=yes, HAVE_SUN=no)
+
+dnl
+dnl detect apple coreaudio
+dnl
+AC_CHECK_HEADER(sys/audioio.h, HAVE_SUN=yes, HAVE_SUN=no)
+
+dnl
dnl alsa backend configure option
dnl
AC_ARG_WITH(alsa,
@@ -64,6 +89,7 @@
dnl
dnl oss backend configure option
dnl
+AC_CHECK_HEADER(sys/soundcard.h, HAVE_OSS=yes, HAVE_OSS=no)
AC_ARG_WITH(oss,
[ --with-oss Use OSS audio backend],
[ case "$withval" in
@@ -76,16 +102,24 @@
esac]
)
-AUDIO_BACKEND=oss
+if test "x$HAVE_OSS" = "xyes"; then
+ AUDIO_BACKEND=oss
+fi
if test "x$HAVE_ALSA" = "xyes"; then
AUDIO_BACKEND=alsa
fi
if test "x$HAVE_PULSE" = "xyes"; then
AUDIO_BACKEND=pulse
fi
+if test "x$HAVE_SUN" = "xyes"; then
+ AUDIO_BACKEND=sun
+fi
+AM_CONDITIONAL(HAVE_OSS, test "x$AUDIO_BACKEND" = "xoss")
AM_CONDITIONAL(HAVE_ALSA, test "x$AUDIO_BACKEND" = "xalsa")
AM_CONDITIONAL(HAVE_PULSE, test "x$AUDIO_BACKEND" = "xpulse")
+AM_CONDITIONAL(HAVE_SUN, test "x$AUDIO_BACKEND" = "xsun")
+AM_CONDITIONAL(HAVE_APPLE, test "x$AUDIO_BACKEND" = "xapple")
dnl
dnl Detect pthreads libraries
@@ -104,6 +138,17 @@
fi
AC_SUBST(PTHREAD_LIBS)
+SEMAPHORE_LIBS="-lpthread"
+AC_SUBST(SEMAPHORE_LIBS)
+
+dnl Use -Wall if we have gcc.
+dnl changequote(,)dnl
+if test "x$ac_cv_prog_gcc" = xyes ; then
+ CFLAGS="$CFLAGS -Wall -g"
+fi
+dnl changequote([,])dnl
+
+
dnl
dnl Configuration tests complete -- provide summary of results.
dnl
@@ -121,10 +166,6 @@
*** misconfigured on your system:
])
-if test "x$HAVE_OGGPLAY" != xyes ; then
- AC_MSG_RESULT(
-[*** liboggplay, available from http://svn.annodex.net/liboggplay/trunk])
-fi
AC_MSG_RESULT(
[*** If you install the required libraries from source, you
Modified: libsydneyaudio/trunk/include/Makefile.am
===================================================================
--- libsydneyaudio/trunk/include/Makefile.am 2008-09-17 07:22:54 UTC (rev 3721)
+++ libsydneyaudio/trunk/include/Makefile.am 2008-09-20 04:36:13 UTC (rev 3722)
@@ -1,3 +1,32 @@
+# Copyright (C) 2003 Annodex Association
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# - Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# - Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# - Neither the name of CSIRO Australia nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ORGANISATION OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
## Process this file with automake to produce Makefile.in
includedir = $(prefix)/include
Modified: libsydneyaudio/trunk/include/sydney_audio.h
===================================================================
--- libsydneyaudio/trunk/include/sydney_audio.h 2008-09-17 07:22:54 UTC (rev 3721)
+++ libsydneyaudio/trunk/include/sydney_audio.h 2008-09-20 04:36:13 UTC (rev 3722)
@@ -47,6 +47,12 @@
# else
# define SA_LITTLE_ENDIAN 1
# endif
+#elif defined(SOLARIS)
+# if defined(_BIG_ENDIAN)
+# define SA_BIG_ENDIAN 1
+# else
+# define SA_LITTLE_ENDIAN 1
+# endif
#else
# error "Cannot determine byte order!"
#endif
Modified: libsydneyaudio/trunk/src/Makefile.am
===================================================================
--- libsydneyaudio/trunk/src/Makefile.am 2008-09-17 07:22:54 UTC (rev 3721)
+++ libsydneyaudio/trunk/src/Makefile.am 2008-09-20 04:36:13 UTC (rev 3722)
@@ -1,3 +1,32 @@
+# Copyright (C) 2003 Annodex Association
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# - Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# - Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# - Neither the name of CSIRO Australia nor the names of its
+# contributors may be used to endorse or promote products derived from
+# this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ORGANISATION OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
## Process this file with automake to produce Makefile.in
INCLUDES = -I$(top_srcdir)/include
@@ -8,12 +37,22 @@
else
if HAVE_ALSA
audio_sources = sydney_audio_alsa.c
-
audio_libs = $(ALSA_LIBS)
else
+if HAVE_OSS
audio_sources = sydney_audio_oss.c
+else
+if HAVE_SUN
+audio_sources = sydney_audio_sunaudio.c
+else
+if HAVE_APPLE
+audio_sources = sydney_audio_mac.c
+audio_libs = $(APPLE_LIBS)
endif
endif
+endif
+endif
+endif
lib_LTLIBRARIES = libsydneyaudio.la
Modified: libsydneyaudio/trunk/src/sydney_audio_mac.c
===================================================================
--- libsydneyaudio/trunk/src/sydney_audio_mac.c 2008-09-17 07:22:54 UTC (rev 3721)
+++ libsydneyaudio/trunk/src/sydney_audio_mac.c 2008-09-20 04:36:13 UTC (rev 3722)
@@ -33,6 +33,7 @@
* ***** END LICENSE BLOCK ***** *
*/
+#include <pthread.h>
#include <AudioUnit/AudioUnit.h>
#include "sydney_audio.h"
Added: libsydneyaudio/trunk/src/sydney_audio_sunaudio.c
===================================================================
--- libsydneyaudio/trunk/src/sydney_audio_sunaudio.c (rev 0)
+++ libsydneyaudio/trunk/src/sydney_audio_sunaudio.c 2008-09-20 04:36:13 UTC (rev 3722)
@@ -0,0 +1,407 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Initial Developer of the Original Code is
+ * Copyright (C) 2008 Sun Microsystems, Inc.,
+ * Brian Lu <brian.lu at sun.com>
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** *
+ */
+#include <stdlib.h>
+#include <pthread.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stropts.h>
+#include <sys/audio.h>
+#include <sys/mixer.h>
+#include <errno.h>
+#include <stdio.h>
+#include <pthread.h>
+#include "sydney_audio.h"
+
+#define DEFAULT_AUDIO_DEVICE "/dev/audio"
+
+#define LOOP_WHILE_EINTR(v,func) do { (v) = (func); } \
+ while ((v) == -1 && errno == EINTR);
+
+struct sa_stream
+{
+ int audio_fd;
+
+ /* audio format info */
+ /* default setting */
+ unsigned int default_n_channels;
+ unsigned int default_rate;
+ unsigned int default_precision;
+
+ /* used settings */
+ unsigned int rate;
+ unsigned int n_channels;
+ unsigned int precision;
+ int64_t bytes_played;
+
+};
+
+
+/*
+ * -----------------------------------------------------------------------------
+ * Startup and shutdown functions
+ * -----------------------------------------------------------------------------
+ */
+
+int
+sa_stream_create_pcm(
+ sa_stream_t ** _s,
+ const char * client_name,
+ sa_mode_t mode,
+ sa_pcm_format_t format,
+ unsigned int rate,
+ unsigned int n_channels
+)
+{
+ sa_stream_t * s = 0;
+
+ /* Make sure we return a NULL stream pointer on failure. */
+ if (_s == NULL)
+ return SA_ERROR_INVALID;
+
+ *_s = NULL;
+
+ if (mode != SA_MODE_WRONLY)
+ return SA_ERROR_NOT_SUPPORTED;
+
+ if (format != SA_PCM_FORMAT_S16_LE)
+ return SA_ERROR_NOT_SUPPORTED;
+
+ /*
+ * Allocate the instance and required resources.
+ */
+ if ((s = malloc(sizeof(sa_stream_t))) == NULL)
+ return SA_ERROR_OOM;
+
+ s->audio_fd = NULL;
+
+ s->rate = rate;
+ s->n_channels = n_channels;
+ s->precision = 16;
+ s->bytes_played = 0;
+
+ *_s = s;
+
+ return SA_SUCCESS;
+}
+
+
+int
+sa_stream_open(sa_stream_t *s)
+{
+ int fd,err;
+ audio_info_t audio_info;
+ char *device_name;
+
+ /* according to the sun audio manual (man audio(7I))
+ * use the device name set in AUDIODEV
+ * environment variaible if it is set
+ */
+ device_name = getenv("AUDIODEV");
+ if (!device_name)
+ device_name = DEFAULT_AUDIO_DEVICE;
+
+ if (s == NULL)
+ return SA_ERROR_NO_INIT;
+
+ if (s->audio_fd != NULL)
+ return SA_ERROR_INVALID;
+
+ fd = open(device_name,O_WRONLY | O_NONBLOCK);
+ if (fd >= 0)
+ {
+ close (fd);
+ fd = open (device_name, O_WRONLY);
+ }
+
+ if ( fd < 0 )
+ {
+ printf("Open %s failed:%s ",device_name,strerror(errno));
+ return SA_ERROR_NO_DEVICE;
+ }
+
+ AUDIO_INITINFO(&audio_info);
+
+ // save the default settings for resetting
+ err = ioctl(fd, AUDIO_GETINFO, &audio_info);
+ if (err == -1)
+ {
+ perror("ioctl AUDIO_GETINFO failed");
+ close(fd);
+ return SA_ERROR_SYSTEM;
+ }
+
+ s->default_n_channels = audio_info.play.channels;
+ s->default_rate = audio_info.play.sample_rate;
+ s->default_precision = audio_info.play.precision;
+
+ AUDIO_INITINFO(&audio_info)
+
+ audio_info.play.sample_rate = s->rate;
+ audio_info.play.channels = s->n_channels;
+ audio_info.play.precision = s->precision;
+
+ /* Signed Linear PCM encoding */
+ audio_info.play.encoding = AUDIO_ENCODING_LINEAR;
+
+ err=ioctl(fd,AUDIO_SETINFO,&audio_info);
+ if (err== -1)
+ return SA_ERROR_NOT_SUPPORTED;
+
+ AUDIO_INITINFO(&audio_info)
+ err=ioctl(fd,AUDIO_GETINFO,&audio_info);
+ if (err== -1)
+ {
+ perror("ioctl AUDIO_SETINFO failed");
+ return SA_ERROR_NOT_SUPPORTED;
+ }
+
+ s->audio_fd = fd;
+
+ return SA_SUCCESS;
+}
+
+int
+sa_stream_destroy(sa_stream_t *s)
+{
+ int result = SA_SUCCESS;
+
+ if (s == NULL)
+ return SA_SUCCESS;
+
+ /*
+ * Shut down the audio output device.
+ */
+ if (s->audio_fd != NULL)
+ {
+ if (close(s->audio_fd) < 0)
+ {
+ perror("Close sun audio fd failed");
+ result = SA_ERROR_SYSTEM;
+ }
+ }
+
+ free(s);
+
+ return result;
+}
+
+/*
+ * -----------------------------------------------------------------------------
+ * Data read and write functions
+ * -----------------------------------------------------------------------------
+ */
+
+int
+sa_stream_write(sa_stream_t *s, const void *data, size_t nbytes)
+{
+
+ int result = SA_SUCCESS;
+ int total = 0;
+ int bytes = 0;
+ int fd;
+ int i;
+ audio_info_t ainfo;
+
+ if (s == NULL || s->audio_fd == NULL)
+ return SA_ERROR_NO_INIT;
+
+ if (nbytes == 0)
+ return SA_SUCCESS;
+
+ fd = s->audio_fd;
+
+ while (total < nbytes )
+ {
+ LOOP_WHILE_EINTR(bytes,(write(fd, (void *)(((unsigned char *)data) total), nbytes-total)));
+
+ total = bytes;
+ if (total != nbytes)
+ printf("SunAudio\tWrite completed short - %d vs %d. Write more data\n",total,nbytes);
+ }
+
+ s->bytes_played += nbytes;
+
+ return result;
+}
+
+
+
+/*
+ * -----------------------------------------------------------------------------
+ * General query and support functions
+ * -----------------------------------------------------------------------------
+ */
+
+int
+sa_stream_get_position(sa_stream_t *s, sa_position_t position, int64_t *pos)
+{
+
+ if (s == NULL || s->audio_fd == NULL)
+ return SA_ERROR_NO_INIT;
+
+ if (position != SA_POSITION_WRITE_SOFTWARE)
+ return SA_ERROR_NOT_SUPPORTED;
+
+ *pos = s->bytes_played;
+ return SA_SUCCESS;
+}
+
+/*
+ * -----------------------------------------------------------------------------
+ * Extension functions
+ * -----------------------------------------------------------------------------
+ */
+
+int
+sa_stream_set_volume_abs(sa_stream_t *s, float vol)
+{
+ unsigned int newVolume = 0;
+ int err;
+ audio_info_t audio_info;
+
+
+ newVolume = (AUDIO_MAX_GAIN-AUDIO_MIN_GAIN)*volAUDIO_MIN_GAIN;
+
+ /* Check if the new volume is valid or not */
+ if ( newVolume < AUDIO_MIN_GAIN || newVolume > AUDIO_MAX_GAIN )
+ return SA_ERROR_INVALID;
+
+ AUDIO_INITINFO(&audio_info);
+ audio_info.play.gain = newVolume;
+ err=ioctl(s->audio_fd,AUDIO_SETINFO,&audio_info); // The actual setting of the parameters
+ if (err == -1)
+ {
+ perror("sa_stream_set_volume_abs failed") ;
+ return SA_ERROR_SYSTEM;
+ }
+
+ return SA_SUCCESS;
+}
+
+int
+sa_stream_get_volume_abs(sa_stream_t *s, float *vol)
+{
+ float volume;
+ int err;
+ audio_info_t audio_info;
+
+ if (s == NULL || s->audio_fd == NULL) {
+ return SA_ERROR_NO_INIT;
+ }
+
+ AUDIO_INITINFO(&audio_info);
+ err=ioctl(s->audio_fd,AUDIO_GETINFO,&audio_info);
+ if (err == -1)
+ {
+ perror("sa_stream_get_volume_abs failed");
+ return SA_ERROR_SYSTEM;
+ }
+
+ volume = (float)((audio_info.play.gain - AUDIO_MIN_GAIN))/(AUDIO_MAX_GAIN - AUDIO_MIN_GAIN);
+
+ *vol = volume;
+
+ return SA_SUCCESS;
+}
+
+/*
+ * -----------------------------------------------------------------------------
+ * Unsupported functions
+ * -----------------------------------------------------------------------------
+ */
+#define UNSUPPORTED(func) func { return SA_ERROR_NOT_SUPPORTED; }
+
+UNSUPPORTED(int sa_stream_pause(sa_stream_t *s))
+UNSUPPORTED(int sa_stream_resume(sa_stream_t *s))
+UNSUPPORTED(int sa_stream_create_opaque(sa_stream_t **s, const char *client_name, sa_mode_t mode, const char *codec))
+UNSUPPORTED(int sa_stream_set_write_lower_watermark(sa_stream_t *s, size_t size))
+UNSUPPORTED(int sa_stream_set_read_lower_watermark(sa_stream_t *s, size_t size))
+UNSUPPORTED(int sa_stream_set_write_upper_watermark(sa_stream_t *s, size_t size))
+UNSUPPORTED(int sa_stream_set_read_upper_watermark(sa_stream_t *s, size_t size))
+UNSUPPORTED(int sa_stream_set_channel_map(sa_stream_t *s, const sa_channel_t map[], unsigned int n))
+UNSUPPORTED(int sa_stream_set_xrun_mode(sa_stream_t *s, sa_xrun_mode_t mode))
+UNSUPPORTED(int sa_stream_set_non_interleaved(sa_stream_t *s, int enable))
+UNSUPPORTED(int sa_stream_set_dynamic_rate(sa_stream_t *s, int enable))
+UNSUPPORTED(int sa_stream_set_driver(sa_stream_t *s, const char *driver))
+UNSUPPORTED(int sa_stream_start_thread(sa_stream_t *s, sa_event_callback_t callback))
+UNSUPPORTED(int sa_stream_stop_thread(sa_stream_t *s))
+UNSUPPORTED(int sa_stream_change_device(sa_stream_t *s, const char *device_name))
+UNSUPPORTED(int sa_stream_change_read_volume(sa_stream_t *s, const int32_t vol[], unsigned int n))
+UNSUPPORTED(int sa_stream_change_write_volume(sa_stream_t *s, const int32_t vol[], unsigned int n))
+UNSUPPORTED(int sa_stream_change_rate(sa_stream_t *s, unsigned int rate))
+UNSUPPORTED(int sa_stream_change_meta_data(sa_stream_t *s, const char *name, const void *data, size_t size))
+UNSUPPORTED(int sa_stream_change_user_data(sa_stream_t *s, const void *value))
+UNSUPPORTED(int sa_stream_set_adjust_rate(sa_stream_t *s, sa_adjust_t direction))
+UNSUPPORTED(int sa_stream_set_adjust_nchannels(sa_stream_t *s, sa_adjust_t direction))
+UNSUPPORTED(int sa_stream_set_adjust_pcm_format(sa_stream_t *s, sa_adjust_t direction))
+UNSUPPORTED(int sa_stream_set_adjust_watermarks(sa_stream_t *s, sa_adjust_t direction))
+UNSUPPORTED(int sa_stream_get_mode(sa_stream_t *s, sa_mode_t *access_mode))
+UNSUPPORTED(int sa_stream_get_codec(sa_stream_t *s, char *codec, size_t *size))
+UNSUPPORTED(int sa_stream_get_pcm_format(sa_stream_t *s, sa_pcm_format_t *format))
+UNSUPPORTED(int sa_stream_get_rate(sa_stream_t *s, unsigned int *rate))
+UNSUPPORTED(int sa_stream_get_nchannels(sa_stream_t *s, int *nchannels))
+UNSUPPORTED(int sa_stream_get_user_data(sa_stream_t *s, void **value))
+UNSUPPORTED(int sa_stream_get_write_lower_watermark(sa_stream_t *s, size_t *size))
+UNSUPPORTED(int sa_stream_get_read_lower_watermark(sa_stream_t *s, size_t *size))
+UNSUPPORTED(int sa_stream_get_write_upper_watermark(sa_stream_t *s, size_t *size))
+UNSUPPORTED(int sa_stream_get_read_upper_watermark(sa_stream_t *s, size_t *size))
+UNSUPPORTED(int sa_stream_get_channel_map(sa_stream_t *s, sa_channel_t map[], unsigned int *n))
+UNSUPPORTED(int sa_stream_get_xrun_mode(sa_stream_t *s, sa_xrun_mode_t *mode))
+UNSUPPORTED(int sa_stream_get_non_interleaved(sa_stream_t *s, int *enabled))
+UNSUPPORTED(int sa_stream_get_dynamic_rate(sa_stream_t *s, int *enabled))
+UNSUPPORTED(int sa_stream_get_driver(sa_stream_t *s, char *driver_name, size_t *size))
+UNSUPPORTED(int sa_stream_get_device(sa_stream_t *s, char *device_name, size_t *size))
+UNSUPPORTED(int sa_stream_get_read_volume(sa_stream_t *s, int32_t vol[], unsigned int *n))
+UNSUPPORTED(int sa_stream_get_write_volume(sa_stream_t *s, int32_t vol[], unsigned int *n))
+UNSUPPORTED(int sa_stream_get_meta_data(sa_stream_t *s, const char *name, void*data, size_t *size))
+UNSUPPORTED(int sa_stream_get_adjust_rate(sa_stream_t *s, sa_adjust_t *direction))
+UNSUPPORTED(int sa_stream_get_adjust_nchannels(sa_stream_t *s, sa_adjust_t *direction))
+UNSUPPORTED(int sa_stream_get_adjust_pcm_format(sa_stream_t *s, sa_adjust_t *direction))
+UNSUPPORTED(int sa_stream_get_adjust_watermarks(sa_stream_t *s, sa_adjust_t *direction))
+UNSUPPORTED(int sa_stream_get_state(sa_stream_t *s, sa_state_t *state))
+UNSUPPORTED(int sa_stream_get_event_error(sa_stream_t *s, sa_error_t *error))
+UNSUPPORTED(int sa_stream_get_event_notify(sa_stream_t *s, sa_notify_t *notify))
+UNSUPPORTED(int sa_stream_read(sa_stream_t *s, void *data, size_t nbytes))
+UNSUPPORTED(int sa_stream_read_ni(sa_stream_t *s, unsigned int channel, void *data, size_t nbytes))
+UNSUPPORTED(int sa_stream_write_ni(sa_stream_t *s, unsigned int channel, const void *data, size_t nbytes))
+UNSUPPORTED(int sa_stream_pwrite(sa_stream_t *s, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence))
+UNSUPPORTED(int sa_stream_pwrite_ni(sa_stream_t *s, unsigned int channel, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence))
+UNSUPPORTED(int sa_stream_get_read_size(sa_stream_t *s, size_t *size))
+UNSUPPORTED(int sa_stream_drain(sa_stream_t *s))
+
+const char *sa_strerror(int code) { return NULL; }
+
More information about the commits
mailing list