It is currently Sat Nov 18, 2017 1:38 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Oct 29, 2015 3:06 pm 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1454
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?

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
PostPosted: Thu Oct 29, 2015 3:36 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5822
Location: Canada
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.


Top
 Profile  
 
PostPosted: Fri Oct 30, 2015 2:13 am 
Offline
User avatar

Joined: Sat Sep 07, 2013 2:59 pm
Posts: 1454
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.

_________________
Available now: My game "City Trouble".
Website: https://megacatstudios.com/products/city-trouble
Trailer: https://youtu.be/IYXpP59qSxA
Gameplay: https://youtu.be/Eee0yurkIW4
German Retro Gamer article: http://i67.tinypic.com/345o108.jpg


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group