Mercurial > audlegacy-plugins
changeset 1385:f3c57bbb54d0
Check all known places for "sndstat" info.
author | Christian Birchinger <joker@netswarm.net> |
---|---|
date | Fri, 27 Jul 2007 04:53:35 +0200 |
parents | 1a16893ac05f |
children | b8dd67ad7b86 |
files | src/OSS/configure.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/OSS/configure.c Fri Jul 27 04:01:50 2007 +0200 +++ b/src/OSS/configure.c Fri Jul 27 04:53:35 2007 +0200 @@ -131,7 +131,9 @@ menu = gtk_menu_new(); - if ((file = fopen("/dev/sndstat", "r"))) { + if ((file = fopen("/dev/sndstat", "r")) || + (file = fopen("/proc/asound/sndstat", "r")) || + (file = fopen("/proc/asound/oss/sndstat", "r"))) { while (fgets(buffer, 255, file)) { if (found && buffer[0] == '\n') break;