Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37044096
en ru br
Репозитории ALT
S:2.9.1-alt1.qa2
5.1: 2.8-alt4
4.1: 2.8-alt4
4.0: 2.8-alt4
3.0: 2.8-alt4
www.altlinux.org/Changes

Группа :: Звук
Пакет: aumix

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: aumix-2.7-mdk-devfs-compliant.patch
Скачать


--- aumix-2.7/src/common.c.pix	Thu Jul 13 13:33:30 2000
+++ aumix-2.7/src/common.c	Tue Sep  4 13:14:22 2001
@@ -30,7 +30,7 @@
 FILE           *OpenDefaultFile(char *mode);
 FILE           *setfile;
 char           *save_filename = NULL;	/* name of file for saved settings */
-char           *device_filename = "/dev/mixer";	/* name of mixer device file */
+char           *device_filename = "/dev/sound/mixer";	/* name of mixer device file */
 unsigned short  setfile_opened = FALSE, setfile_write_perm = FALSE, setfile_read_perm = FALSE;
 int             current_dev = 0, mixer_fd = -1, mutelevel[SOUND_MIXER_NRDEVICES], devmask = 0, recmask = 0, recsrc = 0, stereodevs = 0, mutestate = 0, interactive = FALSE;
 #ifdef USE_OWN_LABELS
@@ -123,6 +123,9 @@
 #endif				/* HAVE_NLS */
 
 	interactive = FALSE;
+
+	if (access(device_filename, F_OK) != 0)
+	  device_filename = "/dev/mixer";
 
 /* Get options from the command line.  Using numbers as options is deprecated,
    but we do it anyway because it makes sense for line1, line2 and line3.
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin