mixer.c (116388) | mixer.c (124830) |
---|---|
1/* 2 * This is an example of a mixer program for Linux 3 * 4 * updated 1/1/93 to add stereo, level query, broken 5 * devmask kludge - cmetz@thor.tjhsst.edu 6 * 7 * (C) Craig Metz and Hannu Savolainen 1993. 8 * 9 * You may do anything you wish with this program. 10 * 11 * ditto for my modifications (John-Mark Gurney, 1997) 12 */ 13 14#include <sys/cdefs.h> | 1/* 2 * This is an example of a mixer program for Linux 3 * 4 * updated 1/1/93 to add stereo, level query, broken 5 * devmask kludge - cmetz@thor.tjhsst.edu 6 * 7 * (C) Craig Metz and Hannu Savolainen 1993. 8 * 9 * You may do anything you wish with this program. 10 * 11 * ditto for my modifications (John-Mark Gurney, 1997) 12 */ 13 14#include <sys/cdefs.h> |
15__FBSDID("$FreeBSD: head/usr.sbin/mixer/mixer.c 116388 2003-06-15 08:46:04Z grog $"); | 15__FBSDID("$FreeBSD: head/usr.sbin/mixer/mixer.c 124830 2004-01-22 07:23:36Z grehan $"); |
16 17#include <err.h> 18#include <fcntl.h> 19#include <stdio.h> 20#include <string.h> 21#include <stdlib.h> 22#include <unistd.h> 23#include <sys/soundcard.h> --- 64 unchanged lines hidden (view full) --- 88main(int argc, char *argv[]) 89{ 90 int foo, bar, baz, dev; 91 int devmask = 0, recmask = 0, recsrc = 0, orecsrc; 92 int dusage = 0, drecsrc = 0, shortflag = 0; 93 int l = 0, r = 0, t = 0; 94 char lstr[5], rstr[5]; 95 int n = 0, lrel = 0, rrel = 0; | 16 17#include <err.h> 18#include <fcntl.h> 19#include <stdio.h> 20#include <string.h> 21#include <stdlib.h> 22#include <unistd.h> 23#include <sys/soundcard.h> --- 64 unchanged lines hidden (view full) --- 88main(int argc, char *argv[]) 89{ 90 int foo, bar, baz, dev; 91 int devmask = 0, recmask = 0, recsrc = 0, orecsrc; 92 int dusage = 0, drecsrc = 0, shortflag = 0; 93 int l = 0, r = 0, t = 0; 94 char lstr[5], rstr[5]; 95 int n = 0, lrel = 0, rrel = 0; |
96 char ch; | 96 int ch; |
97 98 char *name; 99 100 name = strdup("/dev/mixer"); 101 102 if (!strcmp(argv[0], "mixer2")) 103 name = strdup("/dev/mixer1"); 104 else if (!strcmp(argv[0], "mixer3")) --- 183 unchanged lines hidden --- | 97 98 char *name; 99 100 name = strdup("/dev/mixer"); 101 102 if (!strcmp(argv[0], "mixer2")) 103 name = strdup("/dev/mixer1"); 104 else if (!strcmp(argv[0], "mixer3")) --- 183 unchanged lines hidden --- |