Audio playback using the sound RAM?

Discussion in 'Sega Saturn Programming and Development' started by XL2, Apr 3, 2018.

  1. XL2

    XL2 Rising Member

    Joined:
    Jul 20, 2017
    Messages:
    66
    Likes Received:
    149
    Hi!

    Using PCM data from the main RAM is super easy, but it wastes a lot of RAM and its hogs the B Bus and the main SH2, which is bad.
    I've been trying to use the audio RAM to playback audio, but I couldn't get it to work yet.
    Doing PCM playback from audio RAM using the SGL functions just produces weird audio, which is due I guess because the function tries to DMA the data to the audio RAM PCM buffers.
    Using the exact same audio on Low-work RAM doesn't have any issues.

    So I've tried to create tone banks and sequences using a Mac emulator (6800k CPU, Mac OS 7) and the Sega audio tools.
    I think I got the tone banks OK, but so far I couldn't figure out how to create sequences.
    My tone banks are really just holding PCM audio, so the sequences should be super simple.
    The Saturn sound simulator expects sound development hardware, which I don't have of course, so it keeps throwing errors at me when I try to create sequences.

    Anyone had luck with this?
    Or did anyone figure out all the needed data - tone banks and sequences - so that I could just write my own tools?
    Thanks!
     
  2. pwl

    pwl You don't need a reason to help someone

    Joined:
    Jul 4, 2014
    Messages:
    64
    Likes Received:
    28
    You can find a sequence to midi converter here https://github.com/mistydemeo/seq2mid/find/master?q=

    In it is a file telling you the layout of the sequence files, your best bet is probably to make a midi to sequence converter. I was planning to do this myself, but don't have time for Saturn programming right now.
     
    XL2 likes this.
  3. XL2

    XL2 Rising Member

    Joined:
    Jul 20, 2017
    Messages:
    66
    Likes Received:
    149
    Wow, amazing!
    Thanks a lot!
    I won't promise anything, but I will look it up.
    Having homebrew midi support without the old 68k Mac apps would be great!
     
    pwl likes this.
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page