home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Dream 59
/
CDDream59.ISO
/
Amiga
/
Emulation
/
SPCRecord.lha
/
SPCRecordV0.90
/
SPCRecord.doc
< prev
next >
Wrap
Text File
|
1998-12-11
|
5KB
|
180 lines
(C) 1998 by Gaelan Griffin, FREEWARE
Read below for more information on the other copyright holders and the
distribution:
/*
* Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
*
* (c) Copyright 1996, 1997, 1998 Gary Henderson (gary@daniver.demon.co.uk) and
* Jerremy Koot (jkoot@euronet.nl)
*
* Super FX C emulator code
* (c) Copyright 1997, 1998 Lestat (lstat@hotmail.com) and
* Gary Henderson.
* Super FX assembler emulator code (c) Copyright 1998 zsKnight and _Demo_.
*
* DSP1 emulator code (c) Copyright 1998 Lestat and Gary Henderson.
* DOS port code contains the works of other authors. See headers in
* individual files.
*
* Permission to use, copy, modify and distribute Snes9x in both binary and
* source form, for non-commercial purposes, is hereby granted without fee,
* providing that this license information and copyright notice appear with
* all copies and any derived work.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event shall the authors be held liable for any damages
* arising from the use of this software.
*
* Snes9x is freeware for PERSONAL USE only. Commercial users should
* seek permission of the copyright holders first. Commercial use includes
* charging money for Snes9x or software derived from Snes9x.
*
* The copyright holders request that bug fixes and improvements to the code
* should be forwarded to them so everyone can benefit from the modifications
* in future versions.
*
* Super NES and Super Nintendo Entertainment System are trademarks of
* Nintendo Co., Limited and its subsidiary companies.
*/
Introduction:
This is an SPC-700 emulator for your Amiga. The SPC-700 is the sound
co-processor in the Super Nintendo.
It is called SPCRecord because it can only output to a disk file. It
cannot play anything in realtime (yet.)
This is based on the SNES9x sources so it's compatability is very high,
unlike my other emulator. I originally wrote this to debug the sound
in the Amiga PPC ports of SNES9x, but since it works so well, I will
continue to develop it as a stand alone SPC-700 emulator.
Requirements:
Some program that can play raw sound samples
Some RAM (I don't know exactly how much, but it should be less than 512k)
Some SPC files. You can get these from various websites. You might
try www.chez.com/raist/spc700/
Installation:
Copy the file SPCRecord anywhere you want to. You probably want it
somewhere in your path so copy it to C: or RAM:
Usage:
At the CLI type
SPCRecord <infile.spc> <outfile.raw> <milliseconds>
Infile is the SPC file to emulate
Outfile is the file of raw sound data that will be created
Miliseconds is the number of milliseconds of data to record.
1000 milliseconds = 1 second
The raw output data will be 16-bit mono, big endian, at 22050 khz unless
you specify some options:
F=FREQ/K/N - Frequency. Ignored for now. Frequency is fixed at 22050 khz.
E=EIGHT/S - Output data will be 8-bit.
S=STEREO/S - Output data will be interleaved stereo: left, then right.
B=BUFF/K/N - Buffer size. Default is 65536 bytes.
DE=NOECHO/S - Disable echo. Can make it sound a bit clearer.
DC=NOCACHE/S - Disable sample caching. Slower, but slightly better quality
DM=NOMVOL/S - Disable master volume. Slightly different output.
So to make a 10 second long 16-bit mono file you might type:
SPCRecord infile.spc outfile.raw 10000
To make a 1 second long 16-bit stereo file:
SPCRecord infile.spc outfile.raw 1000 S
To make a 5 second long 8-bit stereo file:
SPCRecord infile.spc outfile.raw 5000 E S
To make a 30 second long 8-bit mono file:
SPCRecord infile.spc outfile.raw 30000 E
To make a 2 second long 16-bit mono file with no echo:
SPCRecord infile.spc outfile.raw 2000 DE
To play the output file, you must use some other program.
I recommend Play16.
Usage: Play16 outfile raw
Add these options:
bits 16 - if file is 16-bit
tracks 2 - if file is stereo
So to play a file with the default output you would type:
Play16 outfile raw bits 16
To play a 16-bit stereo file:
Play16 outfile raw bits 16 tracks 2
To play an 8-bit stereo file:
Play16 outfile raw tracks 2
To play an 8-bit mono file:
Play16 outfile raw
Future:
- Better documentation
- User defined frequencies
- Output to other file formats besides raw
- More speed
- A realtime PPC version
- A realtime 680x0 version for highend processors
Contact:
Please report all bugs immediately!
If you have any SPC-700 questions, comments, or whatever then drop me
a line at:
Gaelan Griffin / chinoclast@softhome.net
Also be sure to visit the website at http://www.chez.com/raist/spc700/