(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-03-24 09:29 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Writing an emulated music player in Java New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Eliwood
Newcomer


 





Since: 12-17-06

Last post: 6347 days
Last view: 6322 days
Posted on 12-17-06 05:46 AM Link | Quote
I'm currently working on a game-related project in Java (which you will soon see), and something I've gotten a lot of requests for from team members and others is the ability to playback emulated music files such as SPC, GSF, NSF and the like.

Currently, there are no Java music players that support such formats, and the number of emulators from which I could even glean any information number less than 5 or so. That leaves me with the option of porting over some code from the C++ side of things, probably from an emulator.

So I have three questions and assume for now that I were only interested in SPC files.

1) If I were doing this, what would be the best place to start?
2) What would the porting process be like?
3) I am using FMODex as the sound library for the project. Is it possible that I could shortcut and somehow develop a SPC plugin (and a cross-platform solution at that) for FMODex?

I'm a well-versed programmer, but not very well-versed in this particular area of emulation, so any tips on how to make this happen would be greatly appreciated.

Thanks.
neotransotaku

Sledge Brother
Liberated from school...until MLK day








Since: 11-17-05
From: In Hearst Field Annex...

Last post: 6286 days
Last view: 6283 days
Posted on 12-17-06 05:37 PM Link | Quote
1) Understanding what the code does -- in order to adapt C/C++ code, you need to understand the organization of the code and what code is done where and how it is done.

2) From there, you need to make a Java version of the design. For example, C permits passing things by reference. You can to something analogous by passing an object that contains the actual data you want to reference. Certain shortcuts in C are not possible in Java so you will also need to account for those.

3) It is possible for Java to run C code, but it is a pain to set up the interface. However, porting that library into Java could also be a daunting task. So, I think it is your best interest to hook Java into using that library instead of porting it to C.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - Writing an emulated music player in Java |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.018 seconds; used 354.60 kB (max 413.56 kB)