Re: Modem sound input [was: When is sound recording going...]
Re: Modem sound input [was: When is sound recording going...]
- Subject: Re: Modem sound input [was: When is sound recording going...]
- From: Laurent Cerveau <email@hidden>
- Date: Wed, 14 Nov 2001 21:50:37 +0100
The setModemSound call from the audio side is an exact export of the
capabilities of the hardware : if the modem is on an exclusive input,
this will switch from the current input (which is not cool for an audio
app), if the hardware support mixing it will do it, if the harwdware
does not do modem it will return an error an dthen you'll need to check
the modem code in Darwin to see how they extract the data from the modem
and play them into the audio stack.
The main difference between X and 9 drivers is the following one : the
X driver present the hardware as is, and do not do any abstraction. The
purpose of the HAL is really to give access to the hardware as it is and
Apple drivers are first class citizens of the audio system. If you look
into the code you may find some very few places where the hardware is
not fully presented to the HAL but this is for a very precise reason :
hardware protection. For example if setting the hardware gain would
damage a speaker it would be limited.
If I remember well (I do not have any schematics here) the iBooks should
not give any modem sound because it is not a physical conenction in the
hardware, but I will ask confirmation from my CPU Software buddies
here :-).
Laurent
On Sunday, November 11, 2001, at 06:48 PM, Alberto Ricci wrote:
Great - I'll check it out. But will this let me get the audio from any
modem-equipped Mac? I supposed that it was impossible to get it, say,
on an iBook. Can you confirm or deny this?
Or will this simply let me do what I can currently do under Mac OS 9 by
selecting "Internal modem" as the input source for the built-in input
device?
Laurent Cerveau
Applications Division
Apple Computer Inc.
email@hidden