Date: Fri, 08 Sep 2006 21:52:48 +0900 (JST) From: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp> To: Alexander@Leidinger.net Cc: freebsd-hackers@FreeBSD.org, ed@fxq.nl, multimedia@FreeBSD.org, kazuhito@ph.noda.tus.ac.jp Subject: Re: *****SPAM***** Re: Oddity in snd_uaudio(4) driver? Message-ID: <20060908.215248.846936370.kazuhito@ph.noda.tus.ac.jp> In-Reply-To: <20060907142744.aazrsemxkwcok40w@webmail.leidinger.net> References: <20060907113820.GO22564@hoeg.nl> <20060907142744.aazrsemxkwcok40w@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, > Quoting Ed Schouten <ed@fxq.nl> (from Thu, 7 Sep 2006 13:38:20 +0200): > > > > If we would rewrite this code to something more basic, let's say we > > rename 'speed' to 'x' and the UA_SAMP_ macros to some predefined > > variables: > > > > | if (x >= 10 && x <= 20) { > > | ... > > | } else if (x < 10) { > > | ... > > | } else if (x < 20) { > > | ... > > | } > > In this example, UA_SAMP_ macros are exchanged to some constants. But UA_SAMP_ macros don't have any predefined constants. uaudio.c is a general driver for USB audio devices. Each USB audio device has peculiar sampling rates. They are different from those of another device. UA_SAMP_macros give the peculiar sampling rates. They can't be exchanged to some constants. From: Alexander Leidinger <Alexander@Leidinger.net> Subject: Re: Oddity in snd_uaudio(4) driver? Date: Thu, 07 Sep 2006 14:27:44 +0200 > I assume the last part is a > typo in the uaudio code and should be a '>' instead of a '<': That's right. Sincerely yours Kazuhito HONDA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060908.215248.846936370.kazuhito>