Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
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. |