- June 2016
- February 2016
- November 2015
- January 2015
- August 2014
- July 2014
- May 2014
- March 2014
- February 2014
- January 2014
- November 2013
- August 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- September 2012
- June 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- September 2011
- July 2011
- June 2011
- May 2011
- March 2011
- January 2011
- October 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- September 2009
- July 2009
- June 2009
- May 2009
- March 2009
- September 2008
- April 2008
- December 2007
- June 2007
- June 2005
- September 2004
- May 2002
- October 2001
- August 2001
[.WAV playing #1] [.WAV playing #2] [.WAV playing #3] [.WAV recording]
List of DSP commands for the Sound Blaster
Many people have requested a list of the commands for the DSP chip on the Sound Blaster, so here it is.
To download the text file (4k), click here.
Autodetecting the Sound Blaster settings
Source code to detect the base port, DMA channel and IRQ setting of the Sound Blaster family.
Note: This has been expanded to detect the 16bit DMA channel on SB16 and above.
Mixing sound samples through Sound Blaster DMA
Source code to mix wave files using the Sound Blaster's auto-init DMA facility. Four wave files are included.
Note: This won't work on the original Sound Blaster version 1.0 as it doesn't support auto-init DMA at all.
Playing Audio CDs through a CD-ROM player
Source code to play an audio CD using MSCDEX.
Playing MIDI music in the background
Source code to play MIDI music using either an FM sound card such as the AdLib and SoundBlaster cards or a General MIDI (GM) device, such as the Roland cards or the Gravis UltraSound using MegaEM.
Note: The routines have been updated to include a volume control.
Some people have complained that the MIDI's don't sound the same as they do in Windows. That is because I don't know the instrument definitions Windows uses.
If you think you can improve upong the instruments, you can use this tool. Be warned though: you need some good knowledge of how the sound card produces its sound.
To use the editor, just unzip the file into the same directory where you will use the routines. Don't forget to hit F2 to save your changes!
To download the editor (10k), click here.
Playing music through an FM sound card
Source code to play music using an FM sound cards such as the AdLib and SoundBlaster cards.
Note: If you use MicroSoft C, please read the section "Delay routine" above.
Playing a sampled sound through Sound Blaster DMA
Source code that plays a wave file through the Sound Blaster. If you don't need to mix multiple samples, try this.
Playing .WAV files through DMA
Pascal source code to load and play a .WAV sound file. This will play any standard 8/16 bit uncompressed .WAV files.
Note: This has been expanded to support other IRQ and DMA settings. A small error in the header definition prevented some waves from playing. Thanks to Ed Roberts for telling me.
To download (5k), click here.
Playing .WAV files through DMA
Source code to load and play a .WAV sound file. This will play standard 8 bit mono uncompressed .WAV files of any length and sample rate.
Recording .WAV files through DMA
Source code to record a .WAV sound file. This will record standard 11025Hz, mono, 8bit, uncompressed .WAV files.
Note: A small bug that caused problems when recording more than one wave file ofter another has been fixed. Thanks to Ed Roberts for telling me.