Anonymous user
Sound Blaster 16: Difference between revisions
Jump to navigation
Jump to search
Detecting DSP, read/write to the ports, code, playing audio
[unchecked revision] | [unchecked revision] |
No edit summary |
(Detecting DSP, read/write to the ports, code, playing audio) |
||
Line 56:
==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==
1.Detect DSP
2.Load sound data to memory
3.Program ISA DMA
4.Set output sample rate
5.Write DMA transfer type to DSP
6.Write data lenght to DSP(low byte/high byte)
==Code==
|