Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (290)
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 4121 times)
0 Members and 1 Guest are viewing this topic.
Offline Eliwood

Junior Member




Stencyl


« Posted 2006-10-24 08: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 23: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 Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #2 - Posted 2006-10-27 17: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!
Play the free demo of Revenge of the Titans!
Offline Alexian

Senior Newbie





« Reply #3 - Posted 2006-10-29 18: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 18: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 04: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 Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #6 - Posted 2006-12-07 10: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 22: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (64 views)
2013-05-17 21:29:12

alaslipknot (73 views)
2013-05-16 21:24:48

gouessej (104 views)
2013-05-16 00:53:38

gouessej (101 views)
2013-05-16 00:17:58

theagentd (111 views)
2013-05-15 15:01:13

theagentd (101 views)
2013-05-15 15:00:54

StreetDoggy (146 views)
2013-05-14 15:56:26

kutucuk (169 views)
2013-05-12 17:10:36

kutucuk (168 views)
2013-05-12 15:36:09

UnluckyDevil (177 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.111 seconds with 20 queries.