TonmaLe 05/08/2015 à 18:23
@Front : I have found the encoder you use for adpcm-B. Thanks to you and ValleyBell.
I encoded music and to test I decoded music. Seems to work but I can't do it in Neo Geo.
@freem : I use your z80 code in "adpcma_v3 / adpcma_v2" to read sound. I have 4 adpcmaA sound effect and one apdcmB music Inside my v rom as you can see below.
I read adpcmA with a simple command :
move.b #0x10,0x320000
But how can I play adpcmb ? The music file the NG play is very bad.
Do your z80 code (in adpcma) play adpcmb. I saw this commande : write to port B and ;ADPCM-B PB_CTRL: EQU $10, in your code and définitions.
; [ADPCM-A Samples]
samples_PCMA:
word 0x0000,0x04C2 ; Sample #1 (howard.pcma)
word 0x04C3,0x04D2 ; Sample #2 (bass2.pcma)
word 0x04D3,0x04F9 ; Sample #3 (snare.pcma)
word 0x04FA,0x0524 ; Sample #4 (openhh2.pcma)
; [ADPCM-B Samples]
samples_PCMB:
word 0x0525,0x0623 ; Sample #1 (actionpoint.bin, 44100Hz)
; [ADPCM-B Sample Rates]
rates_PCMB:
word 0xCB6A ; Sample #1 (actionpoint.bin, 44100Hz)