[XP] Pre-loading/caching Audio?

Started by ThatsBad, March 22, 2014, 10:28:44 am

Previous topic - Next topic

ThatsBad

March 22, 2014, 10:28:44 am Last Edit: March 22, 2014, 10:37:32 am by ThatsBad
Hi,

Is such thing possible? I want to eliminate some performance issues due to highly compressed ogg files.
I tried FModEx(as an audio module replacement), it works perfectly but denies to work correctly with .mid files(Turbo pitch?).

Oh and if its possible, I'm only looking to preload the BGM folder.

ForeverZer0

Not without a custom made library to replace playing using the RMXP player. Easiest thing to do would be convert the OGG to MP3, since the player supports streaming MP3, that would fix your issue.  Only drawback is that oftentimes MP3s tend to be a little bigger than OGG.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

ThatsBad

Quote from: ForeverZer0 on March 22, 2014, 12:12:45 pm
Not without a custom made library to replace playing using the RMXP player. Easiest thing to do would be convert the OGG to MP3, since the player supports streaming MP3, that would fix your issue.  Only drawback is that oftentimes MP3s tend to be a little bigger than OGG.


Yeah, thats what Im trying to avoid. Its about a 50mb difference vs mp3s.
Thanks for the reply anyways :)

Zexion

The way i'm planning on solving it is by super-compressing the game when it's complete. I started reading up on it, and it seems do-able, but I have yet to learn if it will work.

ForeverZer0

Quote from: ThatsBad on March 22, 2014, 12:21:28 pm
Yeah, thats what Im trying to avoid. Its about a 50mb difference vs mp3s.
Thanks for the reply anyways :)


You could likely use some different tools to adjust the compression settings to reduce that difference in file size, but yeah, typically OGG is going to be smaller...
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

ThatsBad

Quote from: ForeverZer0 on March 22, 2014, 12:39:21 pm
Quote from: ThatsBad on March 22, 2014, 12:21:28 pm
Yeah, thats what Im trying to avoid. Its about a 50mb difference vs mp3s.
Thanks for the reply anyways :)


You could likely use some different tools to adjust the compression settings to reduce that difference in file size, but yeah, typically OGG is going to be smaller...


I guess Audacity works fine here.
I'm also looking at the FModEx script but I can't seem to fix the .mid problem at all.

Blizzard

I don't think the compression ratio on OGGs affects this, but only the length does. The main problem is that MP3s actually ARE cached in some way so they are played almost instantaneously, but OGGs are not so they take a moment to load. From experience I can say that the initial delay in OGGs is almost not noticeable when the contained tracks are no longer than 2 minutes. I basically edited all audio in my game to be 2 minutes or less and it worked out great for me.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

ForeverZer0

Quote from: Blizzard on March 22, 2014, 02:10:44 pm
I don't think the compression ratio on OGGs affects this...


I was speaking of the settings to apply to the MP3s to make them smaller.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Blizzard

I was referring to this, though. :)

Quote from: ThatsBad on March 22, 2014, 10:28:44 am
I want to eliminate some performance issues due to highly compressed ogg files.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

MetalZelda

Quote from: Blizzard on March 22, 2014, 02:10:44 pm
I don't think the compression ratio on OGGs affects this, but only the length does. The main problem is that MP3s actually ARE cached in some way so they are played almost instantaneously, but OGGs are not so they take a moment to load. From experience I can say that the initial delay in OGGs is almost not noticeable when the contained tracks are no longer than 2 minutes. I basically edited all audio in my game to be 2 minutes or less and it worked out great for me.


True, OGG that are no longer than 2 minutes don't have a huge delay to load. I tested with a 5 minutes ogg file and the game just freeze as it loads the ogg properly. Mid would be great, but some Audio chip don't decode mid sound properly (with different sound).
So MP3 is the most recommanded format to use with RPG XP. You can use OGG as well, but not recommanded for tracks that are longer than 2 minutes. Great for Music Effect.

Zexion

If it helps, I'm planning on releasing two versions of my game. A midi version (all songs are midi files) and a high quality audio version (all songs are mp3). The reason being that most people won't mind downloading a huge file if the quality is good and they have a good connection, but some have slower connections and don't mind sacrificing game audio for a smaller file size. It also gives whoever is having problems with the midi version a chance to use the mp3 version if they have problems with midi. Other than t

ThatsBad

March 23, 2014, 01:10:22 pm #11 Last Edit: March 23, 2014, 01:12:11 pm by ThatsBad
Alright, I converted 2 minutes plus songs to mp3 and its better now. Though that midi performance still annoys me :P