[xiph-cvs] cvs commit: ao/src audio_out.c
Jack Moffitt
jack at xiph.org
Fri Feb 23 17:18:51 PST 2001
jack 01/02/23 17:18:51
Modified: . configure.in
include/ao ao.h
src audio_out.c
Log:
added new function suggested by rik at kde.org
updated library version for release
Revision Changes Path
1.14 +1 -1 ao/configure.in
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/ao/configure.in,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- configure.in 2000/12/30 05:03:24 1.13
+++ configure.in 2001/02/24 01:18:49 1.14
@@ -7,7 +7,7 @@
dnl Library versioning
LIB_CURRENT=1
LIB_REVISION=0
-LIB_AGE=0
+LIB_AGE=1
AC_SUBST(LIB_CURRENT)
AC_SUBST(LIB_REVISION)
AC_SUBST(LIB_AGE)
1.9 +1 -0 ao/include/ao/ao.h
Index: ao.h
===================================================================
RCS file: /usr/local/cvsroot/ao/include/ao/ao.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ao.h 2000/12/30 05:03:24 1.8
+++ ao.h 2001/02/24 01:18:50 1.9
@@ -95,6 +95,7 @@
void ao_close(ao_device_t *device);
/* misc functions */
+int ao_get_driver_count(void);
int ao_is_big_endian(void);
#ifdef __cplusplus
1.10 +14 -0 ao/src/audio_out.c
Index: audio_out.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/audio_out.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- audio_out.c 2000/12/17 20:28:35 1.9
+++ audio_out.c 2001/02/24 01:18:50 1.10
@@ -318,3 +318,17 @@
if (bytewise[0] == 0xba) return 1;
return 0;
}
+
+int ao_get_driver_count(void)
+{
+ int i = 0;
+
+ driver_tree_t *driver = driver_head;
+
+ while (driver) {
+ i++;
+ driver = driver->next;
+ }
+
+ return i;
+}
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list