GithubHelp home page GithubHelp logo

APU square issue about fceux HOT 6 CLOSED

tasemulators avatar tasemulators commented on June 17, 2024
APU square issue

from fceux.

Comments (6)

dragon2snow avatar dragon2snow commented on June 17, 2024

try cpu ram fill ff

from fceux.

bbbradsmith avatar bbbradsmith commented on June 17, 2024

That doesn't appear to affect it, @dragon2snow.

from fceux.

dragon2snow avatar dragon2snow commented on June 17, 2024

oh,

from fceux.

eugene-s-nesdev avatar eugene-s-nesdev commented on June 17, 2024

FCEUX 2.2.2 (with no RAM init option) and even FCEUltra 0.98.12 (Aug-28-2004) has this bug:
R.C. Pro-Am II (U) [FCEUX].zip

from fceux.

 avatar commented on June 17, 2024

http://wiki.nesdev.com/w/index.php/APU_Sweep
If i understand correctly, when sweep unit is muting the channel, the current period should remain unchanged. Removing curfreq[P]=0; fixes this without causing square-channel related issues to a few common titles i have tested.

diff --git a/src/sound.cpp b/src/sound.cpp
index 7390cce8..7acd4273 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -443,7 +443,7 @@ static void FrameSoundStuff(int V)
       if((mod+curfreq[P])&0x800)
       {
        sweepon[P]=0;
-       curfreq[P]=0;
+       //curfreq[P]=0;
       }
       else
       {

from fceux.

g0me3 avatar g0me3 commented on June 17, 2024

looks legit, let's try it and reopen the issue if someone prove this is wrong...

from fceux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.