|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Sound - Adlib/SB/PC Speaker
Writing an audio file to /dev/dsp || /dev/audio is the professional way to do it under linux. Device files is how you access drivers->hardware on any UNIX. If you want to see how a soundblaster driver works, look in the linux source under linux/drivers/sound/sb_*.c (particularly sb_audio.c). Look at audio.c to see the implementation of the /dev/audio character device. As far as the PC-speaker goes, i've never thought about it, and I am not aware of a /dev/ device associated with it, although i am sure there is one. You always seemed like a guy that didn't mind bare-metal programming, so if you are interested, find the IO range of the hardware and write your own character device for it. (you know how to use inp()/outp() right?) In fact, if anyone wanted a good introduction to writing device drivers under linux, that would be an almost ideal project, as the hardware isn't too complicated and you could mostly focus on learning how linux drivers work. Just get yourself a copy of "Linux Device Drivers" from O'Reilly first, as it is the new definitive guide. Real-time sound? no, in fact, i don't think i follow... explain? >From: Lionel Pinkhard <lionelp@worldonline.co.za> >Reply-To: gameprogrammer@gameprogrammer.com >To: gameprogrammer@gameprogrammer.com >Subject: Sound - Adlib/SB/PC Speaker >Date: Thu, 03 Jan 1980 02:25:47 +0000 (UTC) > >Hey guys, > >Can somebody tell me how does Linux sound work? I'm especially interrested >in the PC Speaker, since that's what I know the LEAST about, I know that >with the other two, it's possible to write a sound file to /dev/audio, or >/dev/dsp, but is there a more 'professional' way of doing this? Actually, >I'm talking about real-time sound, and not sound from a file, you guys >know what I mean? > >Well, hope somebody can help!!! > >Lionel > >================================================================= >The GameProgrammer.Com mailing list is for the open discussion >of any topic related to the art, science, and business of >programming games. This list is especially tolerant of beginners. >We were all beginners once > >To SUBSCRIBE or UNSUBSCRIBE please visit: >http://gameprogrammer.com/mailinglist.html > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ================================================================= The GameProgrammer.Com mailing list is for the open discussion of any topic related to the art, science, and business of programming games. This list is especially tolerant of beginners. We were all beginners once To SUBSCRIBE or UNSUBSCRIBE please visit: http://gameprogrammer.com/mailinglist.html
|
|