Audio input

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
obiwac
Member
Member
Posts: 149
Joined: Fri Jan 27, 2017 12:15 pm
Libera.chat IRC: obiwac
Location: Belgium

Audio input

Post by obiwac »

Hello!

Does anyone know how I can get audio input from the mic jack in my os?

Thanks in advance!
User avatar
Ch4ozz
Member
Member
Posts: 170
Joined: Mon Jul 18, 2016 2:46 pm
Libera.chat IRC: esi

Re: Audio input

Post by Ch4ozz »

AC97 or Intel HD Audio works fine.
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Audio input

Post by SpyderTL »

Unfortunately, there is no universal interface that will allow you to read or playback audio data. (Except maybe the PC speaker, but you don't want to go there...)

You will need to determine what audio hardware is available, and then write a driver for some of the more common ones, like SoundBlaster, ICH AC97, and Intel HD Audio.

I will go ahead and warn you, and you can look back through my forum posts and on the Wiki for more information, but the ICH AC97 path is very confusing, because "AC97" doesn't define memory addresses or I/O port registers... It just defines what mixer features an audio device has. "ICH AC97" on the other hand, does define memory addresses and I/O port registers, as do SoundBlaster and Intel HD Audio.

Hopefully, that all makes sense.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
User avatar
obiwac
Member
Member
Posts: 149
Joined: Fri Jan 27, 2017 12:15 pm
Libera.chat IRC: obiwac
Location: Belgium

Re: Audio input

Post by obiwac »

Ok thanks!
User avatar
obiwac
Member
Member
Posts: 149
Joined: Fri Jan 27, 2017 12:15 pm
Libera.chat IRC: obiwac
Location: Belgium

Re: Audio input

Post by obiwac »

Isn't there some kind of grub real mode thing that I can do like with the graphics modes?
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Audio input

Post by SpyderTL »

obiwac wrote:Isn't there some kind of grub real mode thing that I can do like with the graphics modes?
Not really.

I think there are some MS-DOS drivers that you could install, and which would let you call INT xxh instructions to do some audio stuff, but that probably doesn't help you at all.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
User avatar
obiwac
Member
Member
Posts: 149
Joined: Fri Jan 27, 2017 12:15 pm
Libera.chat IRC: obiwac
Location: Belgium

Re: Audio input

Post by obiwac »

Too bad. Thanks anyways!
Post Reply