Anonymous user
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 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(
# 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.
===Programming ISA DMA===
==Transfer modes==
ISA DMA can transfer in two modes: Single or Auto.
==Code==
|