Playing a sample directly using DSP (without DMA)

Anyone knows how is it done?


Comments

  • thats the easiest way to program the SB.

    you need 3 procedures:



    init_dsp

    write_dsp

    read_dsp



    to send your DSP a Kommando you only have to do this:



    write_dsp(commando)



    commandos:

    $10 - direct soundoutput 8bit (unpacked data)

    $20 - direct soundinput 8bit (unpacked data)

    $d1 - switch on speaker

    $d3 - switch off speaker

    $e1 - get DSP-version (2 bytes)

    ... there are much more!



    if you have to make a sound-output you

    write_dsp(databyte);



    or if you have to make a sound-input you

    read_dsp(databyte);



    if you are interested in these procedures, mail me.


















Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories