I'v started writing sound blaster routines to be added into my operating system and i was wondering what people thaught of this idea???
The reason i was doing this is i want to have a multimedea operating system so i thaught that it would be better to have all of the graphics and sound functions built into the kernel. :-*
SBlaster in my kernel???
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:SBlaster in my kernel???
keep in mind that SBlaster (at least the well-known SB/SB16/SBpro interface) is almost dead. People now tend to have SBlife or AC97 chips.
Thus the best way is probably to make things modular enough so that one can have only the code for its own soundcard present in memory.
It also depend on what you call "SBlaster". Being able to send/receive audio stream through the card certainly belongs to the system (it could be in the kernel, or in a module or in a system server depending on your architecture) but reading a WAV, MP3 or MID file and commanding the hardware accordingly certainly isn't.
Thus the best way is probably to make things modular enough so that one can have only the code for its own soundcard present in memory.
It also depend on what you call "SBlaster". Being able to send/receive audio stream through the card certainly belongs to the system (it could be in the kernel, or in a module or in a system server depending on your architecture) but reading a WAV, MP3 or MID file and commanding the hardware accordingly certainly isn't.
Re:SBlaster in my kernel???
Put into your kernel a general-purpose driver interface. It's a good idea to put in functions that interface to drivers no matter what kind of device they deal with. That way, you can add new devices (e.g. different types of sound card) without changing the interface, and without having to write special code in applications to deal with it.