aboutsummaryrefslogtreecommitdiff
path: root/audio/gnome-media/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-09-18 06:49:37 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-09-18 06:49:37 +0000
commit9c0caae1c20155b432bb0feb074a8fd9cc1c12bc (patch)
tree534d0190982c831de589344c3003940ec6f2d6b1 /audio/gnome-media/files
parent27d17afba2c21f490ea8472d7aa37495e02e3ed8 (diff)
downloadports-9c0caae1c20155b432bb0feb074a8fd9cc1c12bc.tar.gz
ports-9c0caae1c20155b432bb0feb074a8fd9cc1c12bc.zip
Notes
Diffstat (limited to 'audio/gnome-media/files')
-rw-r--r--audio/gnome-media/files/patch-gmix_gmix.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/audio/gnome-media/files/patch-gmix_gmix.c b/audio/gnome-media/files/patch-gmix_gmix.c
deleted file mode 100644
index d306c14e282d..000000000000
--- a/audio/gnome-media/files/patch-gmix_gmix.c
+++ /dev/null
@@ -1,42 +0,0 @@
---- gmix/gmix.c.orig Sun Mar 16 16:09:01 2003
-+++ gmix/gmix.c Sun Mar 16 16:13:09 2003
-@@ -591,6 +591,11 @@
- /* Masks for the channel data - OSS blows compared to ALSA */
- int recmask, recsrc, stereodee;
-
-+ /* FreeBSD device name detection */
-+ FILE *sndstat;
-+ char line[256];
-+ char *devname, *p;
-+
- /*
- * create new device configureation
- */
-@@ -659,7 +665,26 @@
- }
- #else
- new_device->card_name = g_strdup_printf ("OSS-%d-%d", num + 1, num + 1);
-- g_snprintf (new_device->info.name, 31, "Card %d", num+1);
-+ /* get soundcard name from /dev/sndstat on FreeBSD */
-+ sndstat = fopen("/dev/sndstat", "r");
-+ if (!sndstat)
-+ g_snprintf (new_device->info.name, 31, "Card %d", num+1);
-+ else {
-+ while (fgets (line, 255, sndstat)) {
-+ if (!strncmp (line, "pcm", 3) && (atoi (&line[3]) == num))
-+ {
-+ devname = line;
-+ while (*devname++ != '<')
-+ ;
-+ p = devname;
-+ while (*p != '>')
-+ p++;
-+ *p = '\0';
-+ g_snprintf (new_device->info.name, 31, devname);
-+ }
-+ }
-+ fclose(sndstat);
-+ }
- #endif
- /*
- * several bitmasks describing the mixer