Play recorded sounds: Difference between revisions

m
Line 18:
=={{header|68000 Assembly}}==
{{works with|Sega Genesis}}
This snippet of code will stream an unsigned 8-bit PCM sample to the [[wp:Yamaha_YM2612|Yamaha 2612's]] [[wp:Digital-to-analog_converter|DAC]]. Unfortunately, the data needs to be continuously streamed, meaning that the game essentially comes to a halt while this is happening. However, a clever game designer can hide this fact quite easily by only using voice samples at key moments where the player expects a brief pause in the action. Simultaneously playing other sounds doesn't seem to be possible using this method.
 
<lang 68000devpac>dac_data equ $2A
1,489

edits