Board.KolibriOS.org

Official KolibriOS board
It is currently Sat Dec 07, 2019 1:35 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: sound question
PostPosted: Mon Oct 28, 2013 3:32 pm 
Offline

Joined: Tue Feb 05, 2008 11:06 am
Posts: 83
sound question.
Hi all.
I have a question. How ac97snd generates sound? Througt mpu port? I think rather not, (it offers only 1 byte data width ). I saw sources, but I can't find this. So if not throght mpu port, so how? Other words witch system function suport audio codec. Internal speaker :D :?:
Thanks for answer.


Top
   
 Post subject: Re: sound question
PostPosted: Mon Oct 28, 2013 4:20 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
There is a sound system called 'infinity.obj'.
This service works with the driver 'sound.obj' (Well, the current sound.obj is not a real driver, instead it's a service which detect available pci sound cards, and loads the actual driver)

Image

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: sound question
PostPosted: Tue Oct 29, 2013 11:50 am 
Offline

Joined: Tue Feb 05, 2008 11:06 am
Posts: 83
So for if I want write a sound app I must use driver, not system function (interrupt).
Thanks a lot.


Top
   
 Post subject: Re: sound question
PostPosted: Tue Oct 29, 2013 12:07 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
You'll need to use system functions 68, 16 and 68, 17 to load and work with infinity.obj

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: sound question
PostPosted: Tue Oct 29, 2013 11:08 pm 
Offline
User avatar

Joined: Fri Jun 27, 2008 3:22 pm
Posts: 988
New game landing can be used as an example of asm application that outputs sound.


Top
   
 Post subject: Re: sound question
PostPosted: Tue Nov 05, 2013 10:35 am 
Offline

Joined: Tue Feb 05, 2008 11:06 am
Posts: 83
Thanks all for help.


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

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 3 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® Forum Software © phpBB Limited