patches/libaudioio-01-sunpro.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 973 417bf963b959
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
973
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     1
--- libaudioio-0.6.1alpha/Makefile.in.orig	Tue Aug 26 17:29:48 2003
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     2
+++ libaudioio-0.6.1alpha/Makefile.in	Mon Mar 10 19:04:01 2008
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     3
@@ -2,14 +2,11 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     4
 # Copyright (C) 2000 Robert Lunnon .
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     5
 # Distributed Under the GPL
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     6
  
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     7
-INSTALL_DIR=@prefix@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     8
+DESTDIR=
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
     9
+INSTALL_DIR=${DESTDIR}@prefix@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    10
 INSTALL_INCLUDES=${INSTALL_DIR}/include
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    11
-CXX=g++
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    12
-CC=gcc
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    13
-CXXFLAGS=-O3 -fPIC -DALGORITHM_COMPRESS -shared 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    14
-CFLAGS=-O3 -fPIC -shared
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    15
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    16
-CPP=$(CC) -E
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    17
+CPPFLAGS=-DALGORITHM_COMPRESS
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    18
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    19
 VER=0.6
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    20
 LIBS=-lm
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    21
@@ -22,22 +19,24 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    22
 all:    libaudioio.so audiotest
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    23
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    24
 audiotest:  audiotest.o  libaudioio.so
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    25
-	${CXX} -o $@ -DTEST  audiotest.cc -L.  -laudioio
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    26
+	${CXX} -o $@ -DTEST audiotest.cc ${CXXFLAGS} ${LDFLAGS} -L. -laudioio
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    27
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    28
-libaudioio.so: libaudioio.${VER}.so
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    29
+libaudioio.so: libaudioio.so.${VER}
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    30
 	rm -f $@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    31
-	ln -sf libaudioio.${VER}.so $@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    32
+	ln -sf libaudioio.so.${VER} $@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    33
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    34
-libaudioio.${VER}.so:${OBJS}
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    35
-	${CXX} -o $@ ${CXXFLAGS} ${OBJS} ${LIBS}
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    36
+libaudioio.so.${VER}: ${OBJS}
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    37
+	${CXX} -o $@ -G -h $@ ${CXXFLAGS} ${LDFLAGS} ${OBJS} ${LIBS}
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    38
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    39
 version.o: version.c version.h
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    40
 	${CC} ${CFLAGS} -c -o $@ version.c
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    41
  
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    42
-install: libaudioio.${VER}.so libaudioio.h
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    43
+install: libaudioio.so.${VER} libaudioio.h
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    44
 	rm -f ${INSTALL_DIR}/lib/libaudioio.so
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    45
-	./install-sh -c libaudioio.${VER}.so ${INSTALL_DIR}/lib
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    46
-	ln -sf ${INSTALL_DIR}/lib/libaudioio.${VER}.so ${INSTALL_DIR}/lib/libaudioio.so
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    47
+	./install-sh -d ${INSTALL_DIR}/lib
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    48
+	./install-sh -c libaudioio.so.${VER} ${INSTALL_DIR}/lib
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    49
+	ln -sf libaudioio.so.${VER} ${INSTALL_DIR}/lib/libaudioio.so
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    50
+	./install-sh -d ${INSTALL_INCLUDES}
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    51
 	./install-sh -c libaudioio.h ${INSTALL_INCLUDES}
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    52
 clean:
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    53
 	rm -f *.o audiotest *.so core *~ 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    54
@@ -45,7 +44,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    55
 	rm -f config.log config.cache config.status
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    56
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    57
 tarball: 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    58
-	tar cvf /tmp/${ARCHIVE_NAME} ${INSTALL_DIR}/lib/libaudioio.${VER}.so ${INSTALL_DIR}/lib/libaudioio.so ${INSTALL_DIR}/include/libaudioio.h
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    59
+	tar cvf /tmp/${ARCHIVE_NAME} ${INSTALL_DIR}/lib/libaudioio.so.${VER} ${INSTALL_DIR}/lib/libaudioio.so ${INSTALL_DIR}/include/libaudioio.h
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    60
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    61
 # DO NOT DELETE THIS LINE -- make depend depends on it.
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    62
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    63
--- libaudioio-0.6.1alpha/audioconvert.cc.orig	2001-02-24 19:35:27.000000000 -0500
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    64
+++ libaudioio-0.6.1alpha/audioconvert.cc	2008-03-10 16:53:03.577055251 -0400
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    65
@@ -110,7 +110,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    66
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    67
     Spec[HARDWARE_RECORD] = GetAudioSystemSettings (RECORD);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    68
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    69
-
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    70
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    71
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    72
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    73
 int
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    74
@@ -126,6 +126,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    75
     fprintf (stderr, "\nCPUendian = %d", Setting.CPUEndian);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    76
     fprintf (stderr, "\nInitialised = %ld\n", Setting.initialised);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    77
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    78
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    79
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    80
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    81
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    82
@@ -143,6 +144,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    83
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    84
       }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    85
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    86
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    87
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    88
 int
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    89
 AudioConvert::SignConvert (INT_16 * buffer, size_t size)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    90
@@ -155,6 +157,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    91
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    92
       }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    93
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    94
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    95
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    96
 int
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    97
 AudioConvert::SignConvert (char *buffer, size_t size)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    98
@@ -167,6 +170,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
    99
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   100
       }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   101
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   102
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   103
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   104
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   105
 // Given the current settings, for a given input data size how big does the output buffer need
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   106
--- libaudioio-0.6.1alpha/system/sys_i386solaris2.9.cc.orig	2003-06-21 19:32:50.000000000 -0400
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   107
+++ libaudioio-0.6.1alpha/system/sys_i386solaris2.9.cc	2008-03-10 16:55:57.872695070 -0400
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   108
@@ -291,6 +291,8 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   109
     ctl->position = 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   110
     ctl->size = 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   111
     ctl->thread_count--;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   112
+
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   113
+	return NULL;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   114
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   115
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   116
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   117
@@ -318,6 +320,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   118
 LIBENTRY AudioIOSetBlockLimit (size_t blocklimit)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   119
 {
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   120
     audioctl.blocklimit = blocklimit;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   121
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   122
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   123
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   124
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   125
@@ -388,6 +391,8 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   126
   fprintf(stderr,"inf.record.mod_ports=%d\n",inf.record.mod_ports);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   127
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   128
 close(fd);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   129
+
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   130
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   131
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   132
 static void
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   133
 audiot_rports (int ports)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   134
@@ -635,7 +640,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   135
 {
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   136
     forced = force;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   137
     fprintf (stderr, "Settiing up force\n");
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   138
-
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   139
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   140
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   141
 #endif
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   142
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   143
@@ -944,6 +949,8 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   144
     audioctl.fd = 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   145
     delete audioctl.Conversion;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   146
     audioctl.Conversion = NULL;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   147
+
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   148
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   149
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   150
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   151
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   152
@@ -972,6 +979,8 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   153
     ReadDefaultSettings.type = signing;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   154
     ReadDefaultSettings.channels = channels;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   155
     ReadDefaultSettings.rate = rate;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   156
+
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   157
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   158
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   159
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   160
 int
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   161
@@ -999,6 +1008,8 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   162
     WriteDefaultSettings.endian = endian;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   163
     WriteDefaultSettings.rate = rate;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   164
     WriteDefaultSettings.max_blocks = max_blocks;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   165
+
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   166
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   167
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   168
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   169
 /* Checks to see if a new block can be written
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   170
@@ -1293,6 +1304,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   171
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   172
 int LIBENTRY AudioIOFlush(){
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   173
 	audiot_flush();
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   174
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   175
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   176
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   177
 int LIBENTRY AudioIOCheckUnderrun(){
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   178
@@ -1418,7 +1430,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   179
 int sys_balance = balance *AUDIO_MID_BALANCE/100 +AUDIO_MID_BALANCE;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   180
 audiot_setbalance(sys_balance);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   181
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   182
-
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   183
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   184
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   185
 int LIBENTRY AudioIOSetFoldbackVolume(int volume){
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   186
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   187
@@ -1444,7 +1456,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   188
 int sys_balance = balance *AUDIO_MID_BALANCE/100 +AUDIO_MID_BALANCE;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   189
 audiot_rsetbalance(sys_balance);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   190
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   191
-
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   192
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   193
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   194
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   195
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   196
@@ -1467,10 +1479,12 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   197
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   198
 int LIBENTRY AudioIOPlaybackResume(){
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   199
 	audiot_resume();
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   200
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   201
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   202
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   203
 int LIBENTRY AudioIORecordingResume(){
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   204
 	audiot_rresume();
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   205
+	return 0;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   206
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   207
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   208
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   209
--- libaudioio-0.6.1alpha/audiotest.cc.orig	2003-08-26 17:29:48.000000000 -0400
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   210
+++ libaudioio-0.6.1alpha/audiotest.cc	2008-03-10 19:11:09.784072685 -0400
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   211
@@ -47,7 +47,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   212
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   213
 // Generate a sine wave in a character (8 Bit signed) format
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   214
 // format=0 for signed 0 for unsigned;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   215
-int
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   216
+void
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   217
 Sine8 (char *buffer, long size, int format)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   218
 {
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   219
     long i;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   220
@@ -68,7 +68,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   221
       }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   222
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   223
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   224
-int
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   225
+void
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   226
 Sine16 (int16_t * buffer, long size, int format, int swap)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   227
 {
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   228
 // Size is in bytes, convert to number of elements
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   229
@@ -95,7 +95,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   230
 }
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   231
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   232
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   233
-int
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   234
+void
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   235
 Sine32 (INT_32 * buffer, size_t size, int format, int swap)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   236
 {
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   237
     INT_32 i, tempword;
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   238
@@ -112,7 +112,7 @@
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   239
 	      tempword = (INT_32) (sin (0.01 * (i + 1)) * 2147483647.0);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   240
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   241
 	  if (format == DUNSIGNED)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   242
-	      ((UINT_32) tempword) = tempword + (2147483647 / 2);
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   243
+	      tempword = (INT_32) (((UINT_32)tempword) + (2147483647 / 2));
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   244
 
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   245
	  if (swap)
417bf963b959 2008-03-10 Albert Lee <[email protected]>
trisk
parents:
diff changeset
   246
 	      tempword =