Music loops (5)

1 Name: Anonymous : 2009-08-04 11:58 ID:M8aX0KiA [Del]

Hi, I thought about first coding it and then telling you people about it, but I think it'd be a time I could never get back if you decided not to go the way I'm suggesting.

The problem:

The music loops aren't looping correctly. Most of the songs don't loop at the beginning of themselves, but rather somewhere in it. As VNDS is right now it is impossible to get a correct music loop.

The solution:

Break every song into a "intro" mp3, with the original filename, let's say "yatta.mp3", and another part called "loop", which will actually loop forever, this time named "originalname-mp3loop.mp3", as in that yatta loop will be called "yattaloop.mp3"

It is fairly easy to implement that into the sound engine or the ASLib itself. I could probably do it in one day.

I'm just saying it here because if there's a better solution to fix the loops, I don't want to have spent so long coding it.

2 Name: Anonymous : 2009-08-04 12:28 ID:rqFJVSJR [Del]

sounds like I would have to fix all the novel files along with it.

no thanks.

3 Name: Anonymous : 2009-08-05 02:38 ID:M8aX0KiA [Del]

Yeah, that's exactly the problem. The only other solution should be adding an extra info into every novel which would tell when each music should loop, then use FILE_SEEK() in a clever way to skip the beginning of every song when looping, which would actually be pretty risky when dealing with unknown file headers

4 Name: Anonymous : 2009-08-06 05:16 ID:2plIyFsW [Del]

wouldn't it be possible to automatize it then? if file.loop.mp3 is present, use looping. if not, loop the original file only. that way it'd have the new functionality without breaking the old novels.

though i wonder how would such loops work. i dunno if the ds can just rewind the file to the correct place instantly without any noticable skipping/pauses, and mp3 is a format that can't be used to effectively loop music by using 2 files anyway, since it adds silence on the beginning and end of the file every time you save. you'd notice a sudden skip during each loop.

that's why people use ogg to loop in commercial games these days.

5 Name: Anonymous : 2009-08-06 12:49 ID:M8aX0KiA [Del]

>>4 wouldn't it be possible to automatize it then? if file.loop.mp3 is present, use looping. if not, loop the original file only. that way it'd have the new functionality without breaking the old novels.

Yes, that's what I meant since the beginning, I'm sorry I didn't make it clearer.

There is no "song seeking" within the ASLib. The thing about the new.loop.mp3 files would be exactly just a flag variable that could be reset every time it was told to play a new song.

I found the place in the source that tells the song to be played again when it ends. All you have to do is play the normal mp3 the first time, setting the flag variable and then play the loop mp3 from the second time on.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification:
Image: