Replace the AUDIO class for RMXP!
#1
Most all of us use .mp3 format, if not .wav or .midi for music (rarely .wav). Some of us would like to use the .ogg audio format for music too, but unlike other audio formats, .Ogg Vorbis music is not streaming like .MP3 format. This means the entire audio file has to be loaded before the music begins to play. This causes an unfortunate 'pause' before the music begins to play.

And while music generally loops when played, there is a script by a Japanese scripter named Cogwheel that allows .MP3 music to be looped in certain points. This means that the music can restart where you set it to restart... just like a professional RPG game. (>HERE<) is that Cogwheel MP3 script.

What I am asking for (and I am thinking public release :wink ) is a combination .dll / RMXP script that replaces the Audio class so it can loop streaming .ogg music... let alone allow you to loop the supported music files (.ogg, .mp3, etc.) just like the cogwheel system above.

Definitely a C++ coder's job. I never ask for anything small, do I?
Reply }
#2
Would it be possible to add some fun methods, like pause as well?
Reply }
#3
Someone did with another Dll/RGSS dual system. The map music paused when going into scene battle. Then the music resumed from where it left off after exiting the battlesystem. It was solely dependent on both the .dll and script combination. But it didn't include .ogg format. And didn't have the cool looping system that Cogwheel created.

So, if a rewritten AUDIO class that could perform streaming .Ogg files and have a working point-to-point loop system, that would be great.
Reply }
#4
That would be really interesting, I think.
I just hope I'd be able to use it if someone could make this XD (I couldn't really get Cogwheels script... ^^')
Reply }
#5
Le Bumpe!

And while I don't have experience at coding my own audio dll.... (If I did, I wouldn't ask Tongue sticking out ) ... someone I talked to in chat recommended that anyone interested should look into OpenAL (Open Source Audio Library).
Reply }
#6
Well, you could also use a wmplayer.ocx to perform those tasks, including the pause feature. Since I don't know anything about programming in C (C++) for Windows, I can't tell you more about it... but the Win32API should allow you to code it somehow...
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#7
I have seen most of the features already available to great extent usingthe Win32API.dll, however they do not handle Ogg Vorbis files. That's why a different .dll would be needed for .Oggs.
Reply }
#8
No longer necessary. With a change performed to cogwheel's MP3 Loop Performance system, I can have streaming and looped .ogg forbis music. No editing of the actual .ogg file needed, and it's streamed. The only problem is a minor 0.5 (or less) break in the music when it cycles back to the start of the loop.

.wma isn't that bad either, is a free format, and doesn't have that gap problem.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#9
DerVVulfman Wrote:.wma isn't that bad either, is a free format, and doesn't have that gap problem.

Hu, really? oo
I didn't test that one so far (even though I use it quite often XD) If that's true, then said script just turned out to be better again XD If there'd be a better way to find out/adjust the exact miliseconds, then I think it'd be perfect °-^
So thank's for mentioning that I guess, I'll definately try it.
Friendship is born at that moment when one person says to another: "What! You, too? Thought I was the only one." (C.S. Lewis)
For the time you're laughing, there's nothing wrong in the world. (Colin Mochrie)

If it's funny, make sure people laugh. If it's not funny, make it funny (unless it's actually really serious). (silvercheers)

Please don't spell my name "Yamina-chan". It's all small. Thank you =D
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   [RMXP] Showing skill gained by leveling up on battle result FrQise 12 12,664 05-07-2021, 02:05 PM
Last Post: FrQise
   RMXP SKill animations too bright (overlaying the battle screen) Starmage 4 10,169 06-13-2016, 03:41 AM
Last Post: Starmage
   [RMXP]Game Over and Atoa Battle Status mishaps firestalker 8 10,953 08-07-2014, 01:59 AM
Last Post: firestalker
   How to get class name from Scripts.rxdata? MechanicalPen 2 6,708 08-13-2013, 05:50 PM
Last Post: MechanicalPen
Star Multilanguage script petition for RMXP Iqus 11 19,269 01-07-2013, 10:50 AM
Last Post: Narzew
   Modifying Actor ID to Class ID for Advanced Individual Battle Commands Script NewHope 1 4,637 07-11-2012, 11:37 PM
Last Post: NewHope
   [RMXP] Actor Cloning dagarath 2 9,178 03-08-2011, 07:18 AM
Last Post: dagarath
   Receive UDP packets with RMXP Charlie Fleed 1 4,543 02-23-2010, 01:44 AM
Last Post: Charlie Fleed
   Audio Problem Yin 13 20,742 05-01-2009, 05:11 AM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)