Inside3D!
     

Kurok mp3 help

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Programming
View previous topic :: View next topic  
Author Message
Mexicouger



Joined: 01 May 2010
Posts: 129

PostPosted: Fri Jun 11, 2010 9:35 pm    Post subject: Kurok mp3 help Reply with quote

Well, Kurok plays music while in-game, But when I try to put a custom song in, it will play the song. But once it's over, The game freezes. Is there anywhere I can go in the engine and Fix this?

I really want it to play my own custom music.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
calvincolins



Joined: 28 Jun 2010
Posts: 3

PostPosted: Fri Jul 02, 2010 7:31 am    Post subject: Reply with quote

Hey the game need tuning with it connection. and it freeze when you put any external song that mean the game not tune with your songs.
_________________
cheap holiday to spain
Back to top
View user's profile Send private message Send e-mail
Team Xlink



Joined: 25 Jun 2009
Posts: 320

PostPosted: Sun Jul 11, 2010 6:21 pm    Post subject: Reply with quote

Baker's, psp engine fix's this:

http://forums.inside3d.com/viewtopic.php?t=1941&postdays=0&postorder=asc&start=45

Revision 9
_________________
Anonymous wrote:
if it works, it works. if it doesn't, HAHAHA!
Back to top
View user's profile Send private message
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Sun Jul 11, 2010 10:50 pm    Post subject: Reply with quote

The mp3 player in Kurok and any Kurok derived engine does crash at the end of the song.

MDave avoided the problem by having the QuakeC restart the music one second before the mp3 music was over.

This meant he hardcoded the mp3 times per map name in the QuakeC and did a stuffcmd of "cd play <whatever>" when the time check indicated it was one second before the end.

Just extra information.

I'm not entirely satisfied with my MP3 music fix and some people like Downsider said it still crashed.

You can see my mp3 player "fix " by using WinMerge on "KurokQuake6" and "KurokQuake9" in the thread Xlink referred to and looking at the differences in psp\mp3.c -- which effectively just restarts the music at end of file. This is a workaround rather than a good fix in my opinion.
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...
Back to top
View user's profile Send private message
Mexicouger



Joined: 01 May 2010
Posts: 129

PostPosted: Mon Jul 12, 2010 12:06 am    Post subject: Reply with quote

Kurok doesn't read cdaudio OR mp3.c. I just tried compiling with Bakers "workaround", and It Said make: Nothing to be made for all meaning It isn't read.
_________________
Gosh... debby ryan Is hot. I swear I will mary her...

My project Prime for psp:

http://www.moddb.com/games/primepsp1

We have a website, But are getting a new one.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Mon Jul 12, 2010 12:20 am    Post subject: Reply with quote

Mexicouger wrote:
Kurok doesn't read cdaudio OR mp3.c.


It uses mp3.c

Code:
# Object files used only under hardware mp3.
MP3HARDWARE_MP3LIB_ONLY_OBJS = \
   $(OBJ_DIR)/psp/cd.o \
   $(OBJ_DIR)/psp/mp3.o  // <----------------------------------- HERE
MP3HARDWARE_MP3LIB_ONLY_FLAGS = -DPSP_MP3HARDWARE_MP3LIB


Reference file: http://bladebattles.com/kurok/SVN/psp/Makefile
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...
Back to top
View user's profile Send private message
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Mon Jul 12, 2010 1:11 am    Post subject: Reply with quote

You might want to delete the psp/normal folder that contains all the intermediate files if you just copied my mp3.c file into your engine directory. Or clean. Either way. I'm not 100% how the compiler checks what files to rebuild but if you just copied my file over the date isn't newer so that could be why you didn't see mp3.c compiling.

[btw: I'm not saying that mp3.c is necessarily the only file I changed for the workaround. I can't remember as it has been a few months.]
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...
Back to top
View user's profile Send private message
Team Xlink



Joined: 25 Jun 2009
Posts: 320

PostPosted: Mon Jul 12, 2010 4:50 pm    Post subject: Reply with quote

Yeah, do the clean thing.

make clean -f mexicouger

It deletes all the compiled files and recompiles it all from scratch,
_________________
Anonymous wrote:
if it works, it works. if it doesn't, HAHAHA!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group