Sound Blaster 16: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Line 76: Line 76:


==Playing sound==
==Playing sound==
# Detect DSP
# Reset DSP
# Load sound data to memory
# Load sound data to memory
# Turn speaker on
# Program ISA DMA
# Program ISA DMA to transfer
# Set output sample rate(0x40/frequency)
# Set time constant
# Write DMA transfer type to DSP(command)
# Set output sample rate
# Write DMA transfer type to DSP
# Write type of sound data
# Write data lenght to DSP(Low byte/High byte)
# Write data lenght to DSP(Low byte/High byte)

===Programming DMA===
{| {{wikitable}}
! Port
! Description
|-
| 0xC4 || Address
|-
| 0xC6 || Count
|-
| 0x8B || Page
|-
| 0xD4 || Single mask
|-
| 0xD6 || Transfer mode
|-
| 0xD8 || Clear pointer
|-
|}


==Code==
==Code==