ADPCM format specs? Examples?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

ADPCM format specs? Examples?

Post by Kojima »

I wish to make a wav/ogg to ps2 adpcm windows tool but I'm not sure about the format. (There are so many adpcm varients)

Is it just raw audio data? Is there any tool I can use to see the data visually?(Not a wave form, something like a hex editor, but in english. I hate Hex.)
Kojima
Posts: 275
Joined: Mon Jun 26, 2006 3:49 am

Post by Kojima »

btw I'd appreciate (But understand if you can't be arsed :) ) if someone could fill in the blanks to this psudeo code so I can understand it.

Code: Select all


function WriteHeader(stream)
      writeint stream,adpcm_header 
      //etc
end function

function WriteRaw(stream)
    for&#40;int i = 0 ; i<Sample_Length ; i++ &#41;
    &#123;
            WriteInt/Short Stream,SampleRaw&#91;i&#93;
    &#125;
end function

stream = Writefile&#40;"MySample.adpcm"&#41;
writeheader&#40;stream&#41;
writeRaw&#40;stream&#41;

Thanks if you can help. I plan to release the tool for everyone to use.
Post Reply