Sound Blaster 16: Difference between revisions

m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
 
(2 intermediate revisions by 2 users not shown)
Line 80:
 
===Programming DMA===
You can get more info about [[programming DMA] on page [http://homepages.cae.wisc.edu/~brodskye/sb16doc/sb16doc.html] here.
 
Programming 8 bit transfers throught channel 1 (channel number is 1):
Line 150:
 
==Code==
<sourcesyntaxhighlight lang="asm">
%macro OUTB 2
mov dx, %1
Line 196:
 
;now transfer start - don't forget to handle irq
</syntaxhighlight>
</source>
 
==QEMU support==
Line 214:
## Add any sound card to the VM
## In virt-manager's Edit -> Preferences menu check the "Enable XML editing" box.
## Open VM's hardware and after selecting the sound card, click on the XML tab and replace its contents with:<sourcesyntaxhighlight lang="xml"><sound model="sb16"/></sourcesyntaxhighlight>
# Run the OS using QEMU's <code>-curses</code> option or use QEMU's <code>-kernel</code> and <code>-nographic</code> (serial console): in this case, there will be no "freeze", but there still be some flickering in the audio.