Mercurial > spc_convert
view readme.txt @ 0:e38dacceb958
initial import
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 21 Oct 2011 05:53:11 -0700 |
parents | |
children |
line wrap: on
line source
1 snes_spc 0.9.0: SNES SPC-700 APU Emulator2 -----------------------------------------3 This library includes a full SPC emulator and an S-DSP emulator that can4 be used on its own. Two S-DSP emulators are available: a highly accurate5 one for use in a SNES emulator, and a 3x faster one for use in an SPC6 music player or a resource-limited SNES emulator.8 * Can be used from C and C++ code9 * Full SPC-700 APU emulator with cycle accuracy in most cases10 * Loads, plays, and saves SPC music files11 * Can save and load exact full emulator state12 * DSP voice muting, surround sound disable, and song tempo adjustment13 * Uses 7% CPU average on 400 MHz Mac to play an SPC using fast DSP15 The accurate DSP emulator is based on past research by others and16 hundreds of hours of recent research by me. It passes over a hundred17 strenuous timing and behavior validation tests that were also run on the18 SNES. As far as I know, it's the first DSP emulator with cycle accuracy,19 properly emulating every DSP register and memory access at the exact SPC20 cycle it occurs at, whereas previous DSP emulators emulated these only21 to the nearest sample (which occurs every 32 clocks).23 Author : Shay Green <gblargg@gmail.com>24 Website: http://www.slack.net/~ant/25 Forum : http://groups.google.com/group/blargg-sound-libs26 License: GNU Lesser General Public License (LGPL)29 Getting Started30 ---------------31 Build a program consisting of demo/play_spc.c, demo/demo_util.c,32 demo/wave_writer.c, and all source files in snes_spc/. Put an SPC music33 file in the same directory and name it "test.spc". Running the program34 should generate the recording "out.wav".36 Read snes_spc.txt for more information. Post to the discussion forum for37 assistance.40 Files41 -----42 snes_spc.txt Documentation43 changes.txt Change log44 license.txt GNU LGPL license46 demo/47 play_spc.c Records SPC file to wave sound file48 benchmark.c Finds how fast emulator runs on your computer49 trim_spc.c Trims silence off beginning of an SPC file50 save_state.c Saves/loads exact emulator state to/from file51 comm.c Communicates with SPC how SNES would52 demo_util.h General utility functions used by demos53 demo_util.c54 wave_writer.h WAVE sound file writer used for demo output55 wave_writer.c57 fast_dsp/ Optional standalone fast DSP emulator58 SPC_DSP.h To use with full SPC emulator, move into59 SPC_DSP.cpp snes_spc/ and replace original files61 snes_spc/ Library sources62 blargg_config.h Configuration (modify as necessary)64 spc.h C interface to SPC emulator and sound filter65 spc.cpp67 SPC_Filter.h Optional filter to make sound more authentic68 SPC_Filter.cpp70 SNES_SPC.h Full SPC emulator71 SNES_SPC.cpp72 SNES_SPC_misc.cpp73 SNES_SPC_state.cpp74 SPC_CPU.h76 dsp.h C interface to DSP emulator77 dsp.cpp79 SPC_DSP.h Standalone accurate DSP emulator80 SPC_DSP.cpp81 blargg_common.h82 blargg_endian.h83 blargg_source.h85 --86 Shay Green <gblargg@gmail.com>