OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 8:54 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Audio input
PostPosted: Wed Apr 19, 2017 10:57 am 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2017 12:15 pm
Posts: 149
Location: Belgium
Hello!

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

Thanks in advance!

_________________
AQUA OS: https://obiwac.wordpress.com/aqua-os/


Top
 Profile  
 
 Post subject: Re: Audio input
PostPosted: Wed Apr 19, 2017 11:18 am 
Offline
Member
Member
User avatar

Joined: Mon Jul 18, 2016 2:46 pm
Posts: 170
AC97 or Intel HD Audio works fine.


Top
 Profile  
 
 Post subject: Re: Audio input
PostPosted: Wed Apr 19, 2017 2:51 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
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


Top
 Profile  
 
 Post subject: Re: Audio input
PostPosted: Thu Apr 20, 2017 9:42 am 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2017 12:15 pm
Posts: 149
Location: Belgium
Ok thanks!

_________________
AQUA OS: https://obiwac.wordpress.com/aqua-os/


Top
 Profile  
 
 Post subject: Re: Audio input
PostPosted: Thu Apr 20, 2017 10:19 am 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2017 12:15 pm
Posts: 149
Location: Belgium
Isn't there some kind of grub real mode thing that I can do like with the graphics modes?

_________________
AQUA OS: https://obiwac.wordpress.com/aqua-os/


Top
 Profile  
 
 Post subject: Re: Audio input
PostPosted: Thu Apr 20, 2017 12:27 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
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


Top
 Profile  
 
 Post subject: Re: Audio input
PostPosted: Sat Apr 22, 2017 6:08 am 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2017 12:15 pm
Posts: 149
Location: Belgium
Too bad. Thanks anyways!

_________________
AQUA OS: https://obiwac.wordpress.com/aqua-os/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: bookman and 107 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group