It is currently Wed Oct 17, 2018 8:48 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue Sep 18, 2018 11:24 pm 
Offline
User avatar

Joined: Tue Jun 24, 2008 8:38 pm
Posts: 2004
Location: Fukuoka, Japan
Just tested and it fix the part were songs start with some channel disabled. Great! I had a feeling it was something like that, just didn't know much about APU to know if was only those 2 lines (LDA #$0F , STA $4015). Bugs list is getting lower, thanks!

Only sfx left then. My guess is something from your current code will fix my current issue, just need to analyse and check why the code is different in mine (where did I get that sample 2 months ago ^^;;;). And why in your with my data the song seems to continue somehow.


Top
 Profile  
 
PostPosted: Tue Sep 25, 2018 10:12 pm 
Offline
User avatar

Joined: Tue Jun 24, 2008 8:38 pm
Posts: 2004
Location: Fukuoka, Japan
Sorry for the double post. This is just a follow-up since I found the cause with glutock regarding my "issue".

This is more or less one since this is the current behavior of both drivers combined. When playing SFX, a check is done regarding if music or SFX is louder. Based on the level, the one the highest wins. In one of my case, this had an undesired effect and had to adapt the code to my own needs.

I don't have any issue anymore. Thanks glutock for the support!


Top
 Profile  
 
PostPosted: Tue Sep 25, 2018 10:17 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 6887
Location: Canada
Ah, I've never liked that particular behaviour of Famitone.

There was a thread about this a while ago, if you're interested in the argument:
https://forums.nesdev.com/viewtopic.php?f=6&t=14876


Top
 Profile  
 
PostPosted: Tue Sep 25, 2018 11:53 pm 
Offline
User avatar

Joined: Tue Jun 24, 2008 8:38 pm
Posts: 2004
Location: Fukuoka, Japan
I checked the title and I wouldn't have known that it was related to my issue (I thought it was a bug in my code at first). I will check that thread to see what was discussed, thanks!


Top
 Profile  
 
PostPosted: Thu Sep 27, 2018 2:24 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 2304
Location: DIGDUG
Not sure if this is my error or Shiru's.

the famitracker driver, to determine PAL mode, expects X to be #1 at init for PAL mode, and !1 for NTSC.

Shiru's example code (I think) uses blarg's code to determine system, and pushes the high bit to the NTSC mode variable. So #$80 for NTSC and #$00 for PAL.

I'll have to double check these details. But I was having trouble getting my ninja game to play PAL notes in PAL mode.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Thu Sep 27, 2018 2:29 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 6887
Location: Canada
X=1 for INIT is an NSF convention to let the player no what mode it's in. (NSF emulators are not required to have a PPU, so there's really no way for it to test the system internally.) Famitracker relies on it because it's primarily designed to make NSF files.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 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