liboss-commit Mailing List for Apple OS X libOSS (Page 8)
Brought to you by:
thesin
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(55) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(57) |
Nov
(52) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(16) |
Feb
(9) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Justin <th...@us...> - 2002-05-09 14:26:14
|
Update of /cvsroot/liboss/liboss/lib In directory usw-pr-cvs1:/tmp/cvs-serv1012 Modified Files: liboss.c Log Message: changed to use to proper form fomr coresaudio.h Index: liboss.c =================================================================== RCS file: /cvsroot/liboss/liboss/lib/liboss.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- liboss.c 9 May 2002 07:48:32 -0000 1.3 +++ liboss.c 9 May 2002 14:26:11 -0000 1.4 @@ -49,7 +49,7 @@ #include <stdlib.h> #include <string.h> -#include <CoreAudio.framework/Headers/CoreAudio.h> +#include <CoreAudio/CoreAudio.h> #include "soundcard.h" |
|
From: Justin <th...@us...> - 2002-05-09 14:24:46
|
Update of /cvsroot/liboss/liboss/lib In directory usw-pr-cvs1:/tmp/cvs-serv460 Modified Files: Makefile.am Log Message: Changing to use variables instead of hard coded Index: Makefile.am =================================================================== RCS file: /cvsroot/liboss/liboss/lib/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Makefile.am 9 May 2002 07:48:32 -0000 1.2 +++ Makefile.am 9 May 2002 14:24:42 -0000 1.3 @@ -2,7 +2,7 @@ ## Process this file with automake to produce Makefile.in ## -CFLAGS = @CFLAGS@ -L../include +CFLAGS = @CFLAGS@ -L$(srcdir)/include lib_LTLIBRARIES = liboss.la |
|
From: Dave V. <va...@us...> - 2002-05-09 08:15:13
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv17287 Modified Files: TODO Log Message: oss_real_time suggested. Index: TODO =================================================================== RCS file: /cvsroot/liboss/liboss/TODO,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- TODO 8 May 2002 21:36:15 -0000 1.3 +++ TODO 9 May 2002 08:15:10 -0000 1.4 @@ -15,3 +15,6 @@ - Will we implement all the mixer stuff? We should see what applications will need liboss, and see what they use--if they never use the mixer, or midi, we don't need it. + +- Add a oss_real_time(int delay_usec) function, since so many + audio-related packages will need it. |
|
From: Dave V. <va...@us...> - 2002-05-09 07:48:35
|
Update of /cvsroot/liboss/liboss/lib
In directory usw-pr-cvs1:/tmp/cvs-serv11401/lib
Modified Files:
liboss.c Makefile.am
Log Message:
Compiles, but does nothing.
Index: liboss.c
===================================================================
RCS file: /cvsroot/liboss/liboss/lib/liboss.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- liboss.c 8 May 2002 21:21:59 -0000 1.2
+++ liboss.c 9 May 2002 07:48:32 -0000 1.3
@@ -42,35 +42,55 @@
* With some preprocessor magic it could be the same file.
*/
-#include <string.h>
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <CoreAudio/CoreAudio.h>
+#include <sys/param.h>
#include <sys/stat.h>
+#include <sys/types.h>
#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
-#include "../include/soundcard.h"
-#undef ioctl
+#include <CoreAudio.framework/Headers/CoreAudio.h>
-#define GET_DEV(com) ((com) & 0xff)
+#include "soundcard.h"
+
+#undef ioctl
+#undef open
#define TO_OSSVOL(x) (((x) * 100 + 127) / 255)
#define FROM_OSSVOL(x) ((((x) > 100 ? 100 : (x)) * 255 + 50) / 100)
-static struct audiodevinfo *getdevinfo(int);
-
-static void setblocksize(int, struct audio_info *);
-
static int audio_ioctl(int, unsigned long, void *);
+static int audio_open(int flags);
static int mixer_ioctl(int, unsigned long, void *);
+
+/* Don't think we need this */
+#if 0
+static struct audiodevinfo *getdevinfo(int);
static int opaque_to_enum(struct audiodevinfo *di, audio_mixer_name_t *label, int opq);
static int enum_to_ord(struct audiodevinfo *di, int enm);
static int enum_to_mask(struct audiodevinfo *di, int enm);
+#endif
#define INTARG (*(int*)argp)
int
-_oss_ioctl(int fd, unsigned long com, void *argp)
+oss_open(const char *path, int flags, mode_t mode)
+{
+ static char buf[MAXPATHLEN];
+
+ if (realpath(path, buf) == NULL)
+ return open(path, flags, mode);
+
+ if (0 == strcmp("/dev/audio", buf)) {
+ return audio_open(flags);
+ } else {
+ /* FIXME: add mixer stuff */
+ return open(path, flags, mode);
+ }
+}
+
+int
+oss_ioctl(int fd, unsigned long com, void *argp)
{
if (IOCGROUP(com) == 'P')
return audio_ioctl(fd, com, argp);
@@ -81,119 +101,85 @@
}
static int
-audio_ioctl(int fd, unsigned long com, void *argp)
+audio_open(int flags)
{
+ /* FIXME: create sockets */
+ return 0;
+}
- struct audio_info tmpinfo;
- struct audio_offset tmpoffs;
- struct audio_buf_info bufinfo;
- struct count_info cntinfo;
- struct audio_encoding tmpenc;
- u_int u;
- int idat, idata;
- int retval;
+static int
+audio_ioctl(int fd, unsigned long com, void *argp)
+{
+ int retval = 0;
+ /* FIXME: implement */
switch (com) {
case SNDCTL_DSP_RESET:
- retval = ioctl(fd, AUDIO_FLUSH, 0);
+/* retval = ioctl(fd, AUDIO_FLUSH, 0);
if (retval < 0)
- return retval;
+ return retval; */
break;
case SNDCTL_DSP_SYNC:
- retval = ioctl(fd, AUDIO_DRAIN, 0);
+/* retval = ioctl(fd, AUDIO_DRAIN, 0);
if (retval < 0)
- return retval;
+ return retval; */
break;
case SNDCTL_DSP_POST:
/* This call is merely advisory, and may be a nop. */
+ /* Except that it is relevant for fragment implementations */
break;
case SNDCTL_DSP_SPEED:
- AUDIO_INITINFO(&tmpinfo);
- tmpinfo.play.sample_rate =
+/* tmpinfo.play.sample_rate =
tmpinfo.record.sample_rate = INTARG;
- (void) ioctl(fd, AUDIO_SETINFO, &tmpinfo);
+ (void) ioctl(fd, AUDIO_SETINFO, &tmpinfo); */
/* FALLTHRU */
case SOUND_PCM_READ_RATE:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
- INTARG = tmpinfo.play.sample_rate;
+ INTARG = tmpinfo.play.sample_rate; */
break;
case SNDCTL_DSP_STEREO:
- AUDIO_INITINFO(&tmpinfo);
- tmpinfo.play.channels =
+/* tmpinfo.play.channels =
tmpinfo.record.channels = INTARG ? 2 : 1;
(void) ioctl(fd, AUDIO_SETINFO, &tmpinfo);
retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
- INTARG = tmpinfo.play.channels - 1;
+ INTARG = tmpinfo.play.channels - 1; */
break;
case SNDCTL_DSP_GETBLKSIZE:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
setblocksize(fd, &tmpinfo);
- INTARG = tmpinfo.blocksize;
+ INTARG = tmpinfo.blocksize; */
break;
case SNDCTL_DSP_SETFMT:
- AUDIO_INITINFO(&tmpinfo);
- switch (INTARG) {
+ switch (INTARG) { /* FIXME: add 32-bit, _NE, etc; remove A_LAW? */
case AFMT_MU_LAW:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 8;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_ULAW;
break;
case AFMT_A_LAW:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 8;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_ALAW;
break;
case AFMT_U8:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 8;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_ULINEAR;
break;
case AFMT_S8:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 8;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_SLINEAR;
break;
case AFMT_S16_LE:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 16;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_SLINEAR_LE;
break;
case AFMT_S16_BE:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 16;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_SLINEAR_BE;
break;
case AFMT_U16_LE:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 16;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_ULINEAR_LE;
break;
case AFMT_U16_BE:
- tmpinfo.play.precision =
- tmpinfo.record.precision = 16;
- tmpinfo.play.encoding =
- tmpinfo.record.encoding = AUDIO_ENCODING_ULINEAR_BE;
break;
default:
return EINVAL;
}
- (void) ioctl(fd, AUDIO_SETINFO, &tmpinfo);
+/* (void) ioctl(fd, AUDIO_SETINFO, &tmpinfo); */
/* FALLTHRU */
case SOUND_PCM_READ_BITS:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
switch (tmpinfo.play.encoding) {
@@ -231,26 +217,25 @@
idat = AFMT_IMA_ADPCM;
break;
}
- INTARG = idat;
+ INTARG = idat; */
break;
case SNDCTL_DSP_CHANNELS:
- AUDIO_INITINFO(&tmpinfo);
- tmpinfo.play.channels =
+/* tmpinfo.play.channels =
tmpinfo.record.channels = INTARG;
- (void) ioctl(fd, AUDIO_SETINFO, &tmpinfo);
+ (void) ioctl(fd, AUDIO_SETINFO, &tmpinfo); */
/* FALLTHRU */
case SOUND_PCM_READ_CHANNELS:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
- INTARG = tmpinfo.play.channels;
+ INTARG = tmpinfo.play.channels; */
break;
case SOUND_PCM_WRITE_FILTER:
case SOUND_PCM_READ_FILTER:
errno = EINVAL;
return -1; /* XXX unimplemented */
case SNDCTL_DSP_SUBDIVIDE:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
setblocksize(fd, &tmpinfo);
@@ -263,17 +248,17 @@
retval = ioctl(fd, AUDIO_SETINFO, &tmpinfo);
if (retval < 0)
return retval;
- INTARG = tmpinfo.play.buffer_size / tmpinfo.blocksize;
+ INTARG = tmpinfo.play.buffer_size / tmpinfo.blocksize; */
break;
case SNDCTL_DSP_SETFRAGMENT:
- AUDIO_INITINFO(&tmpinfo);
+/* AUDIO_INITINFO(&tmpinfo);
idat = INTARG;
if ((idat & 0xffff) < 4 || (idat & 0xffff) > 17)
return EINVAL;
tmpinfo.blocksize = 1 << (idat & 0xffff);
tmpinfo.hiwat = ((unsigned)idat >> 16) & 0x7fff;
- if (tmpinfo.hiwat == 0) /* 0 means set to max */
- tmpinfo.hiwat = 65536;
+ if (tmpinfo.hiwat == 0) */ /* 0 means set to max */
+/* tmpinfo.hiwat = 65536;
(void) ioctl(fd, AUDIO_SETINFO, &tmpinfo);
retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
@@ -282,10 +267,10 @@
for(idat = 0; u > 1; idat++, u >>= 1)
;
idat |= (tmpinfo.hiwat & 0x7fff) << 16;
- INTARG = idat;
+ INTARG = idat; */
break;
case SNDCTL_DSP_GETFMTS:
- for(idat = 0, tmpenc.index = 0;
+/* for(idat = 0, tmpenc.index = 0;
ioctl(fd, AUDIO_GETENC, &tmpenc) == 0;
tmpenc.index++) {
switch(tmpenc.encoding) {
@@ -332,10 +317,10 @@
break;
}
}
- INTARG = idat;
+ INTARG = idat; */
break;
case SNDCTL_DSP_GETOSPACE:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
setblocksize(fd, &tmpinfo);
@@ -344,10 +329,10 @@
(tmpinfo.play.seek + tmpinfo.blocksize - 1)/tmpinfo.blocksize;
bufinfo.fragstotal = tmpinfo.hiwat;
bufinfo.bytes = tmpinfo.hiwat * tmpinfo.blocksize - tmpinfo.play.seek;
- *(struct audio_buf_info *)argp = bufinfo;
+ *(struct audio_buf_info *)argp = bufinfo; */
break;
case SNDCTL_DSP_GETISPACE:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
setblocksize(fd, &tmpinfo);
@@ -356,38 +341,38 @@
(tmpinfo.record.seek + tmpinfo.blocksize - 1)/tmpinfo.blocksize;
bufinfo.fragstotal = tmpinfo.hiwat;
bufinfo.bytes = tmpinfo.hiwat * tmpinfo.blocksize - tmpinfo.record.seek;
- *(struct audio_buf_info *)argp = bufinfo;
+ *(struct audio_buf_info *)argp = bufinfo; */
break;
case SNDCTL_DSP_NONBLOCK:
- idat = 1;
+/* idat = 1;
retval = ioctl(fd, FIONBIO, &idat);
if (retval < 0)
- return retval;
+ return retval; */
break;
case SNDCTL_DSP_GETCAPS:
- retval = ioctl(fd, AUDIO_GETPROPS, &idata);
+/* retval = ioctl(fd, AUDIO_GETPROPS, &idata);
if (retval < 0)
return retval;
- idat = DSP_CAP_TRIGGER; /* pretend we have trigger */
- if (idata & AUDIO_PROP_FULLDUPLEX)
+ idat = DSP_CAP_TRIGGER; */ /* pretend we have trigger */
+/* if (idata & AUDIO_PROP_FULLDUPLEX)
idat |= DSP_CAP_DUPLEX;
if (idata & AUDIO_PROP_MMAP)
idat |= DSP_CAP_MMAP;
- INTARG = idat;
+ INTARG = idat; */
break;
-#if 0
case SNDCTL_DSP_GETTRIGGER:
- retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
+/* This was #if 0'd out. Why? */
+/* retval = ioctl(fd, AUDIO_GETINFO, &tmpinfo);
if (retval < 0)
return retval;
idat = (tmpinfo.play.pause ? 0 : PCM_ENABLE_OUTPUT) |
(tmpinfo.record.pause ? 0 : PCM_ENABLE_INPUT);
retval = copyout(&idat, SCARG(uap, data), sizeof idat);
if (retval < 0)
- return retval;
+ return retval; */
break;
case SNDCTL_DSP_SETTRIGGER:
- AUDIO_INITINFO(&tmpinfo);
+/* AUDIO_INITINFO(&tmpinfo);
retval = copyin(SCARG(uap, data), &idat, sizeof idat);
if (retval < 0)
return retval;
@@ -396,32 +381,25 @@
(void) ioctl(fd, AUDIO_SETINFO, &tmpinfo);
retval = copyout(&idat, SCARG(uap, data), sizeof idat);
if (retval < 0)
- return retval;
+ return retval; */
break;
-#else
- case SNDCTL_DSP_GETTRIGGER:
- case SNDCTL_DSP_SETTRIGGER:
- /* XXX Do nothing for now. */
- INTARG = PCM_ENABLE_OUTPUT;
- break;
-#endif
case SNDCTL_DSP_GETIPTR:
- retval = ioctl(fd, AUDIO_GETIOFFS, &tmpoffs);
+/* retval = ioctl(fd, AUDIO_GETIOFFS, &tmpoffs);
if (retval < 0)
return retval;
cntinfo.bytes = tmpoffs.samples;
cntinfo.blocks = tmpoffs.deltablks;
cntinfo.ptr = tmpoffs.offset;
- *(struct count_info *)argp = cntinfo;
+ *(struct count_info *)argp = cntinfo; */
break;
case SNDCTL_DSP_GETOPTR:
- retval = ioctl(fd, AUDIO_GETOOFFS, &tmpoffs);
+/* retval = ioctl(fd, AUDIO_GETOOFFS, &tmpoffs);
if (retval < 0)
return retval;
cntinfo.bytes = tmpoffs.samples;
cntinfo.blocks = tmpoffs.deltablks;
cntinfo.ptr = tmpoffs.offset;
- *(struct count_info *)argp = cntinfo;
+ *(struct count_info *)argp = cntinfo; */
break;
case SNDCTL_DSP_MAPINBUF:
case SNDCTL_DSP_MAPOUTBUF:
@@ -438,6 +416,8 @@
return 0;
}
+/* I don't think we need any of this stuff */
+#if 0
/* If the NetBSD mixer device should have more than NETBSD_MAXDEVS devices
* some will not be available to Linux */
@@ -613,10 +593,16 @@
return di;
}
+#endif /* Probably not needed */
+
int
mixer_ioctl(int fd, unsigned long com, void *argp)
{
- struct audiodevinfo *di;
+ /* FIXME: implement */
+ errno = EINVAL;
+ return -1;
+
+/* struct audiodevinfo *di;
struct mixer_info *omi;
struct audio_device adev;
mixer_ctrl_t mc;
@@ -761,26 +747,5 @@
}
}
INTARG = idat;
- return 0;
-}
-
-/*
- * Check that the blocksize is a power of 2 as OSS wants.
- * If not, set it to be.
- */
-static void
-setblocksize(int fd, struct audio_info *info)
-{
- struct audio_info set;
- int s;
-
- if (info->blocksize & (info->blocksize-1)) {
- for(s = 32; s < info->blocksize; s <<= 1)
- ;
- AUDIO_INITINFO(&set);
- set.blocksize = s;
- ioctl(fd, AUDIO_SETINFO, &set);
- ioctl(fd, AUDIO_GETINFO, info);
- }
+ return 0; */
}
-
Index: Makefile.am
===================================================================
RCS file: /cvsroot/liboss/liboss/lib/Makefile.am,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- Makefile.am 3 May 2002 16:20:02 -0000 1.1.1.1
+++ Makefile.am 9 May 2002 07:48:32 -0000 1.2
@@ -2,7 +2,7 @@
## Process this file with automake to produce Makefile.in
##
-CFLAGS = @CFLAGS@
+CFLAGS = @CFLAGS@ -L../include
lib_LTLIBRARIES = liboss.la
|
|
From: Dave V. <va...@us...> - 2002-05-09 07:48:35
|
Update of /cvsroot/liboss/liboss/include
In directory usw-pr-cvs1:/tmp/cvs-serv11401/include
Modified Files:
soundcard.h
Log Message:
Compiles, but does nothing.
Index: soundcard.h
===================================================================
RCS file: /cvsroot/liboss/liboss/include/soundcard.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- soundcard.h 3 May 2002 16:20:01 -0000 1.1.1.1
+++ soundcard.h 9 May 2002 07:48:32 -0000 1.2
@@ -36,16 +36,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-/*
- * WARNING! WARNING!
- * This is an OSS (Linux) audio emulator.
- * Use the Native NetBSD API for developing new code, and this
- * only for compiling Linux programs.
- */
-
#ifndef _SOUNDCARD_H_
#define _SOUNDCARD_H_
+/* FIXME: what is this? */
#define SOUND_VERSION 0x030001
#define SNDCTL_DSP_RESET _IO ('P', 0)
@@ -288,17 +282,23 @@
int size;
} buffmem_desc;
+/* Make sure we don't override the headers by accident! */
+#include <fcntl.h>
+#include <sys/ioctl.h>
+
#if 0
/* This is what we'd like to have, but it causes prototype conflicts. */
#define ioctl _oss_ioctl
#else
-#define ioctl(x,y,z) _oss_ioctl(x,y,z)
+#define ioctl(x,y,z) oss_ioctl(x,y,z)
+#define open(x,y,z) oss_open(x,y,z)
#endif
#include <sys/cdefs.h>
__BEGIN_DECLS
-int _oss_ioctl __P((int fd, unsigned long com, void *argp));
+int oss_ioctl __P((int fd, unsigned long com, void *argp));
+int oss_open __P((const char *path, int flags, mode_t mode));
__END_DECLS
#endif /* !_SOUNDCARD_H_ */
|
|
From: Justin <th...@us...> - 2002-05-08 21:47:29
|
Update of /cvsroot/liboss/web In directory usw-pr-cvs1:/tmp/cvs-serv27446 Log Message: Status: Vendor Tag: v1 Release Tags: r1 No conflicts created by this import ***** Bogus filespec: - ***** Bogus filespec: Imported ***** Bogus filespec: sources |
|
From: Benjamin R. <ran...@us...> - 2002-05-08 21:36:17
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv23240 Modified Files: TODO Log Message: looks like someone made the TODO in a mac editor... CR's were all messed from terminal. =) Index: TODO =================================================================== RCS file: /cvsroot/liboss/liboss/TODO,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TODO 8 May 2002 20:25:01 -0000 1.2 +++ TODO 8 May 2002 21:36:15 -0000 1.3 @@ -1 +1,17 @@ -- Create sockets to emulate "opening" /dev/audio. Create libosscat, analogous to artscat or esdcat, such that "libosscat foo" is equivalent to "cat foo > /dev/audio" on Linux. - Handle format conversion using AudioConverter (see /Developer/Examples/CoreAudio/Services/DefaultOutputUnit). Respond to format ioctl's. Should we add support for other conversions, eg: mu-law? (not too hard to do). - Use fragments to minimize time mutexes are locked. Respond to fragment ioctl's. - Respond to flow-control ioctl's. - Will we implement all the mixer stuff? We should see what applications will need liboss, and see what they use--if they never use the mixer, or midi, we don't need it. \ No newline at end of file +- Create sockets to emulate "opening" /dev/audio. Create libosscat, + analogous to artscat or esdcat, such that "libosscat foo" is + equivalent to "cat foo > /dev/audio" on Linux. + +- Handle format conversion using AudioConverter (see + /Developer/Examples/CoreAudio/Services/DefaultOutputUnit). Respond + to format ioctl's. Should we add support for other conversions, + eg: mu-law? (not too hard to do). + +- Use fragments to minimize time mutexes are locked. Respond to + fragment ioctl's. + +- Respond to flow-control ioctl's. + +- Will we implement all the mixer stuff? We should see what + applications will need liboss, and see what they use--if they + never use the mixer, or midi, we don't need it. |
|
From: Justin <th...@us...> - 2002-05-08 21:30:22
|
Update of /cvsroot/liboss/liboss/lib In directory usw-pr-cvs1:/tmp/cvs-serv17594 Modified Files: liboss.c Log Message: Same fix Feanor just added to configure Index: liboss.c =================================================================== RCS file: /cvsroot/liboss/liboss/lib/liboss.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- liboss.c 3 May 2002 16:20:02 -0000 1.1.1.1 +++ liboss.c 8 May 2002 21:21:59 -0000 1.2 @@ -45,7 +45,7 @@ #include <string.h> #include <sys/types.h> #include <sys/ioctl.h> -#include <CoreAudio.framework/Headers/CoreAudio.h> +#include <CoreAudio/CoreAudio.h> #include <sys/stat.h> #include <errno.h> |
|
From: Alexander S. <mrv...@us...> - 2002-05-08 21:18:44
|
Update of /cvsroot/liboss/liboss
In directory usw-pr-cvs1:/tmp/cvs-serv15941
Modified Files:
configure.in
Log Message:
Cleanup
Index: configure.in
===================================================================
RCS file: /cvsroot/liboss/liboss/configure.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- configure.in 8 May 2002 20:59:28 -0000 1.2
+++ configure.in 8 May 2002 21:18:41 -0000 1.3
@@ -126,7 +126,7 @@
AC_CHECK_HEADERS(errno.h string.h \
sys/types.h sys/ioctl.h sys/stat.h \
- /System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h \
+ CoreAudio/CoreAudio.h \
machine/endian.h)
AC_SYS_LONG_FILE_NAMES
|
|
From: Justin <th...@us...> - 2002-05-08 21:08:02
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv5766 Removed Files: configure Log Message: Removed configure, forcing uses of autogen.sh for cvs use --- configure DELETED --- |
|
From: Justin <th...@us...> - 2002-05-08 21:06:09
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv9522 Removed Files: config.h.in Log Message: Removed a few more files to force the use of autogen.sh for cvs users --- config.h.in DELETED --- |
|
From: Justin <th...@us...> - 2002-05-08 21:04:07
|
Update of /cvsroot/liboss/liboss/lib In directory usw-pr-cvs1:/tmp/cvs-serv8355/lib Removed Files: Makefile.in Log Message: Removed a few more files to force the use of autogen.sh for cvs users --- Makefile.in DELETED --- |
|
From: Justin <th...@us...> - 2002-05-08 21:04:06
|
Update of /cvsroot/liboss/liboss/doc In directory usw-pr-cvs1:/tmp/cvs-serv8355/doc Removed Files: Makefile.in Log Message: Removed a few more files to force the use of autogen.sh for cvs users --- Makefile.in DELETED --- |
|
From: Justin <th...@us...> - 2002-05-08 21:04:06
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv8355 Removed Files: Makefile.in aclocal.m4 depcomp stamp-h.in Log Message: Removed a few more files to force the use of autogen.sh for cvs users --- Makefile.in DELETED --- --- aclocal.m4 DELETED --- --- depcomp DELETED --- --- stamp-h.in DELETED --- |
|
From: Justin <th...@us...> - 2002-05-08 20:59:31
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv5257 Modified Files: configure.in Log Message: minor fix the AM defs Index: configure.in =================================================================== RCS file: /cvsroot/liboss/liboss/configure.in,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- configure.in 3 May 2002 16:19:59 -0000 1.1.1.1 +++ configure.in 8 May 2002 20:59:28 -0000 1.2 @@ -100,7 +100,6 @@ AC_C_INLINE AC_TYPE_OFF_T AC_TYPE_SIZE_T -AM_TYPE_PTRDIFF_T dnl dnl debug cflags |
|
From: Dave V. <va...@us...> - 2002-05-08 20:25:04
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv17601 Modified Files: TODO Log Message: At least this is what I think is necessary, roughly in order. Seems to make sense? Index: TODO =================================================================== RCS file: /cvsroot/liboss/liboss/TODO,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- TODO 3 May 2002 16:20:01 -0000 1.1.1.1 +++ TODO 8 May 2002 20:25:01 -0000 1.2 @@ -0,0 +1 @@ +- Create sockets to emulate "opening" /dev/audio. Create libosscat, analogous to artscat or esdcat, such that "libosscat foo" is equivalent to "cat foo > /dev/audio" on Linux. - Handle format conversion using AudioConverter (see /Developer/Examples/CoreAudio/Services/DefaultOutputUnit). Respond to format ioctl's. Should we add support for other conversions, eg: mu-law? (not too hard to do). - Use fragments to minimize time mutexes are locked. Respond to fragment ioctl's. - Respond to flow-control ioctl's. - Will we implement all the mixer stuff? We should see what applications will need liboss, and see what they use--if they never use the mixer, or midi, we don't need it. \ No newline at end of file |
|
From: Justin <th...@us...> - 2002-05-07 22:07:22
|
Update of /cvsroot/liboss/liboss In directory usw-pr-cvs1:/tmp/cvs-serv12927 Modified Files: README Log Message: Testing the commit list Index: README =================================================================== RCS file: /cvsroot/liboss/liboss/README,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- README 7 May 2002 21:27:41 -0000 1.3 +++ README 7 May 2002 22:07:19 -0000 1.4 @@ -1,2 +1,2 @@ -libOSS 0.0.1 - This well be an OSS bridge to APPLE's coreaudio API for +libOSS 0.0.1 - This well be an OSS bridge to APPLE's CoreAudio API for Darwin PowerPC under Apple's OS X. |