GithubHelp home page GithubHelp logo

molive-0 / snes-apu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emu-rs/snes-apu

0.0 0.0 0.0 290 KB

A Super Nintendo audio unit emulator.

License: BSD 2-Clause "Simplified" License

Rust 100.00%

snes-apu's Introduction

snes-apu Build Status Crates.io Crates.io

A Super Nintendo audio unit emulator.

Description

This is a highly-accurate emulator for the audio portion of the Super Nintendo.

Included is an example that can play SPC files:

cargo run --example spc_player test/ferris-nu.spc

Note that you may want to run the above example in release config, as the emulator can be quite slow in debug builds.

The audio unit is made up of a few major parts:

  • A CPU (SPC700 core), which is 100% cycle-accurate
  • A DSP, which is accurate to the nearest audio sample
  • 64kb RAM
  • 3 timers
  • And some extra glue here and there to tie it all together :)

Extras

Included in the test directory are a couple of test SPC files:

Other projects consuming this library:

  • snes-apu-dbg - a Qt-based graphical debugger used in development of this library

Attribution

Much of the core SMP code was baked from byuu's higan source code: http://byuu.org/emulation/higan/

Likewise, some of the DSP code (envelopes in particular) was deep-fried from blargg's snes_spc code: http://blargg.8bitalley.com/libs/audio.html#snes_spc

Without their awesome work, this project wouldn't exist!

License

This code is licensed under the BSD2 license (see LICENSE).

snes-apu's People

Contributors

yupferris avatar molive-0 avatar

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.