It is currently Sat Aug 18, 2018 11:35 am

All times are UTC - 7 hours

Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Sweep Unit Problem
PostPosted: Mon Jan 31, 2005 5:14 am 
User avatar

Joined: Tue Dec 21, 2004 8:35 pm
Posts: 600
Location: Argentina
i have a problem with sweep unit i have noticed it in Super Mario Bros.

Im Currently emulating only square1 and square2 and it seems smario uses as music for level 1 (those level that are not underground) square 1 and 2, but for level 2 (those level that are underground) use only square 2, but still uses square1 for the "jumping" effect, all this of course concerned to sweep unit.

Well, my problem is that in "underground" levels, when i jump it seems the sweep unit (sqr1) correctly change the freq. but at the end of the jump sound (when it must finish) its still changing the freq. It seems smario dont disable the sweep unit when the jump finish. I know its my emulator problem and not rom problem.

What could it be? :roll:


 Post subject:
PostPosted: Mon Jan 31, 2005 9:51 am 
Site Admin
User avatar

Joined: Mon Sep 20, 2004 6:04 am
Posts: 3541
Location: Indianapolis
I don't know what the jump sound uses to stop, but if it's not by direct volume control then it could be disabled by the volume envelope, length counter, or $4015.

Could be that it's supposed to keep sweeping, just that it'd normally be silenced by that point.

 Post subject:
PostPosted: Sat Mar 19, 2005 11:30 am 
If the jump sound in SMB continues even after the jump should stop, check your implementation of auto-silencing on the frequency slide unit. Remember, whenever the frequency slide direction for the sound channel is set to 0 (upward), the sound output should be halted if the next frequency slide delta would move the 11-bit frequency value above $7FF. This part of Brad Taylor's documentation must be implemented to avoid hanging sounds in SMB.

Also, when a sound channel is shut down via setting the corresponding bit low in $4015, the length counter for that sound channel must be set to zero. If this is not done, it will also result in hanging notes in SMB.

- Josh

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: Gilbert and 3 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