Subject: Re: audio{record|play}: why audioctl device?
To: Lennart Augustsson <lennart@augustsson.net>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-userlevel
Date: 01/24/2002 23:31:54
Lennart Augustsson wrote:
> Do you really (normally) need both of them?

Yes, the code uses the audioctl device to setup audio properties like number of channels, volume. the 'audio' device is only used for i/o.
 
> You can only open the audio device if it isn't already open.  So if you're
> already playing something and need to change some parameter you're
> stuck without audioctl.  This doesn't happen very often, and, in fact,
> audioctl was introduced much later than audio&sound&mixer.  It was
> mostly introduced to be sun compatible.

I do not want to remove audioctl device. I just think that
for audioplay/audiorecord, it's poitless to use it. We can use
the opened 'audio' device for ioctls as well as the i/o.

Jaromir  
-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=  Those who would give up liberty for a little temporary safety deserve  =-
-=  neither liberty nor safety, and will lose both.  -- Benjamin Franklin  =-