DCPM samples with FamiTone
Page 1 of 1

Author:  DRW [ Thu Oct 29, 2015 3:06 pm ]
Post subject:  DCPM samples with FamiTone

I got my game to work with FamiTone. It plays some example music and sound effects.

Now I wanted to try digital samples.

I have the after_the_rain.dmc binary file that includes some sample sounds. I know that I have to call FamiToneSamplePlay with a certain number in the A register that stands for the desired sample sound.

But what do I have to do with the samples themselves? It's a binary file, so I guess I'll have to .incbin it somewhere in RODATA. But then what? How does FamiTone know where to look for the sample?

Author:  rainwarrior [ Thu Oct 29, 2015 3:36 pm ]
Post subject:  Re: DCPM samples with FamiTone

The DMC file is made by the text2data utility. Put the samples in your music FTM before exporting, and they'll end up in there, I think?

Then just include the DMC file at FT_DPCM_OFF like in the example.

Author:  DRW [ Fri Oct 30, 2015 2:13 am ]
Post subject:  Re: DCPM samples with FamiTone

Oh, right. Thanks.

When I look at that value FT_DPCM_OFF, I always think it has something to do with disabling the DPCM channel instead of it being an offset value.

But it works now.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group