(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-17-24 10:15 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Writing an emulated music player in Java
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
neotransotaku
Posts: 1824/1860
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.
Eliwood
Posts: 2/2
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.
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.002 seconds; used 345.47 kB (max 374.05 kB)