Displaying 3 results from an estimated 3 matches for "ao_oss_internal_t".
2001 Mar 16
3
Patches for NetBSD
...;/dev/sound/dsp");
+ state->dev = strdup("/dev/audio");
state->fd=open(state->dev,O_WRONLY);
if(state->fd < 0)
{
@@ -198,7 +198,7 @@
int plugin_get_latency(ao_internal_t *state)
{
int odelay = 0;
- ioctl(((ao_oss_internal_t *)state)->fd, SNDCTL_DSP_GETODELAY, &odelay);
+/* ioctl(((ao_oss_internal_t *)state)->fd, SNDCTL_DSP_GETODELAY, &odelay); */
return odelay;
}
$NetBSD: patch-ac,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
--- ../libao-0.6.0.orig/src/audio_out.c Fri Feb 23 17:31:46 2001
+++ src...
2000 Jul 31
0
NetBSD patches
...o/ao_oss.c 2000/07/30 03:12:05
@@ -32,6 +32,8 @@
#include <math.h>
#if defined(__OpenBSD__)
#include <soundcard.h>
+#elif defined(__NetBSD__)
+#include <soundcard.h>
#elif defined(__FreeBSD__)
#include <machine/soundcard.h>
#else
@@ -69,7 +71,11 @@ ao_oss_parse_options(ao_oss_internal_t *
}
if (state->dev == NULL)
+#ifdef __NetBSD__
+ state->dev = strdup("/dev/audio");
+#else
state->dev = strdup("/dev/dsp");
+#endif
}
/*
Index: vorbis-tools/libao/configure.in
====================================================...
2001 Feb 27
2
building under NetBSD and using /dev/audio
I am using NetBSD 1.5.1_ALPHA (i386). I have libao-0.6.0,
libvorbis-1.0beta4, libogg-1.0beta4 and vorbis-tools-1.0beta4.
My sound works. I am able to use a .ogg file by using ogg123 to create a
.wav file and playing it with splay. (splay uses /dev/audio.)
How can I modify ogg123 (or liba0) so I can use /dev/audio as the default
sound device?
Or maybe it would be better to add a new device (for