Sound Blaster 16: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
No edit summary
No edit summary
Line 54:
Until you write to the DSP write port, check the DSP write port is 0x00. Until reading the DSP read port, check the DSP status for 0x80.
 
===Detecting DSP===
Detecting DSP is really easy. You must send to DSP reset port 1, wait 3 microseconds, send to DSP reset 0 and read DSP read port. If in it is 0xAA, DSP exist.
 
==Playing sound==
Line 59 ⟶ 61:
# Load sound data to memory
# Program ISA DMA
# Set output sample rate(command,0x41/Low highbyte/High byte(0x56 foreg 22050 hz), low byte(0x56/0x22 for 22050 hz))
# Write DMA transfer type to DSP
# Write data lenght to DSP(low byte/high byte)
 
===Detecting DSP===
Detecting DSP is really easy. You must send to DSP reset port 1, wait 3 microseconds, send to DSP reset 0 and read DSP read port. If in it is 0xAA, DSP exist.
 
===Loading sound data===
Load sound data to some page who is less then 64KB.
 
===Programming ISA DMA===
 
==Transfer modes==
===Output sample rate===
ISA DMA can transfer in two modes: Single or Auto.
Send command, high byte and low byte. Eg for 22050 hz 0x41/0x56/0x22
 
==Code==
Anonymous user