Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Playing SPC files?  (Read 4593 times)
0 Members and 1 Guest are viewing this topic.
Offline Eliwood

Junior Member




Stencyl


« Posted 2006-10-24 06:37:22 »

Is there any Java code out there that's lets me play back SPC files or other "emulated" sound files?

(SPC files are music files for Super Nintendo games)

If there isn't, how would go about doing it? Would I basically have to emulate the hardware to achieve this?

Offline Martin Strand

Junior Member





« Reply #1 - Posted 2006-10-24 21:54:47 »

Quote
Would I basically have to emulate the hardware to achieve this?
Yes, that's what an SPC player is - an SPC 700 emulator. There are several open source players but none that I know of has been written in Java.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #2 - Posted 2006-10-27 15:02:42 »

As far as I know (I'm not familiar with SPC files), files like these are basically sequences of register updates of the sound hardware.
This means you will need to emulate the SNES' sound chip(s), but nothing more.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Alexian

Senior Newbie





« Reply #3 - Posted 2006-10-29 17:21:38 »

I know there is a plugin for WinAMP to play SPC files, is it possibile to use that in Java? It's a simple dll, maybe somehow... It should be nice to play SPC musics in Java... Wink
Offline Eliwood

Junior Member




Stencyl


« Reply #4 - Posted 2006-10-29 17:29:13 »

I know there is a plugin for WinAMP to play SPC files, is it possibile to use that in Java? It's a simple dll, maybe somehow... It should be nice to play SPC musics in Java... Wink

I was wondering about that myself. I know that non-Java programs can actually hook up to WinAMP and play any files that WinAMP does, but I don't know how that works or if that would work at all in Java.

As for the plugins, this is a meta-plugin which enables playback of all video game sound formats.

http://www.chipamp.org

Offline Eliwood

Junior Member




Stencyl


« Reply #5 - Posted 2006-12-07 03:00:50 »

I really want to give this a stab (not just for my project but to have the first really well documented music player for this format in Java), but seeing that I have very little knowledge about emulator implementation besides the very basics, I have 3 choices.

1) Find an existing C++ solution and port it over.
2) Find a working Java SNES emulator and adapt the sound module.
3) Create some bindings to a DLL. But this means that the plugin/DLL would have to be available on all platforms, and that's not likely. :/

Are there any working Java SNES emulators in existence? I've only found one, and it's no longer updated nor is the download available.

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #6 - Posted 2006-12-07 09:48:22 »

afaik, there are no publically available java based snes emulators.
I'd go for your first option. Just find an existing open source C based SNES emulator, and port over only the emulation of the sound hw, which is probably not that difficult.

Offline Eliwood

Junior Member




Stencyl


« Reply #7 - Posted 2007-01-17 21:03:55 »

While I haven't done this yet (too many things have higher priority in the project), I was directed to this as the best place to draw the source from.

http://www.slack.net/~ant/libs/audio.html#Game_Music_Emu

So if anybody is interested in tackling this for fun, that's the source for all emulated music formats done in a nicely plug-in like way.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (28 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (73 views)
2014-09-10 06:39:09

Tekkerue (37 views)
2014-09-09 02:24:56

mitcheeb (57 views)
2014-09-08 06:06:29

BurntPizza (44 views)
2014-09-07 01:13:42

Longarmx (27 views)
2014-09-07 01:12:14

Longarmx (34 views)
2014-09-07 01:11:22

Longarmx (34 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!