Posted Oct 21, 2006 at 01:13PM by Alaric S. Listed in: Homebrew Applications, Homebrew Development Tags: Lua Player, cools
Ó

Lua playercools has updated his Lua Player v0.20 Mod 2 to LuaPlayer v0.20 Mod 3 for LuaPlayer v0.20.

The big news about Lua Player v0.20 Mod 3 is its MP3 and Ogg support. Meanwhile, the overclocking functions were removed because it could be potentially dangerous if the function is not used correctly.

The Ogg and the Mp3.EndOfStream() functions are a little bit buggy but cools tested it with 2.71 TIFF and he says it does work. It may also work with 2.71 SE-A, but cools is not sure about that.

"I dont want to see hundreds of mp3 players released because of this. If yours has something the others dont, then consider releasing it, otherwise DON'T. This should be used primarily for background music in Lua games," says cools.

Lua Player v0.20 Mod 3 new functions:

MP3
Most Mp3 functions are self explanatory.
Mp3.init(channel) --Select an audio channel for Mp3 playback (like 0, 1, 2, etc.)
Mp3.load()
Mp3.stop()
Mp3.pause()
Mp3.play()
Mp3.getTime() --returns how long the mp3 has been playing in a string

Mp3.EndOfStream() --returns "true" or "false" (with quotes). You can use it like this:
if Mp3.EndOfStream() == "true" then songend() end
--Note Mp3.EndOfStream() may get Lowser to act funny, another way to do this
is to compare the file time (from ID3) and Mp3.getTime() it should produce the
same results.

Ogg
Most Ogg functions are self explanatory.
Ogg.init(channel) --Select an audio channel for Ogg playback (like 0, 1, 2, etc.)
Ogg.load()
Ogg.stop() --If you set the Ogg to stop at the end of stream, dont use this when exiting

Ex 1:
if Ogg.EndOfStream() == "true" then
Ogg.stop()
end

Ex 2:
if Controls.read():start() then
Ogg.stop()
end
^Use ONE or the other DONT use both!^

Ogg.pause()
Ogg.play()

Ogg.EndOfStream() --returns "true" or "false" (with quotes). You can use it like this:
if Ogg.EndOfStream() == "false" then whatever end
This function at times will act weird... Experiment with is a little

Ogg.getSec()
Ogg.getMin()
Ogg.getHour()

Please read the readme files for this app before installing it.

Download: [Lua Player v0.20 Mod 3 with MP3 and Ogg support]
Discuss: [Forum Release Thread]


Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:


11 Comments


Sort by:
   by cool (Unregistered) - 2006-10-21
 » cool

nice

   by cools (Unregistered) - 2006-10-21
 » OOPS!

Ogg and MP3 functions are not buggy anymore i got it all fixed. And you only have the link to the source! Ogg.init(channel) and Mp3.init(channel) were removed!

Looks like there is some editing needed to be done!

   by pspgamer81 - 2006-10-21
 » Sweet

Expect a new release of PSP Dance Dance soon

   by pspgamer81 - 2006-10-21
 » Sweet

Expect a new release of PSP Dance Dance soon

   by aries2k (Unregistered) - 2006-10-21
 » Nice!

way to go. I think we´ll be seeing alot more background music in games-

   by dude (Unregistered) - 2006-10-21
 » finally mp3 support

thx cools!!!

   by cools (Unregistered) - 2006-10-21
 » still waiting...

Well they havent fixed the link yet... Oh well just check the forum thread for the 1.5 and 1.00_2.XX eboots.

   by joreofiorio35 (Unregistered) - 2006-10-21

i loev u man

No seriously, this is awesome. I have come back from the dead. I am definately going to start working on JMANIA again. I think I'm going to do a whole code rewrite. I've been with the Sonic community for a while now. I'm still staying, but I'm thinking of coming back to the psp community too.

   by Advertising -
   by alatnet1 - 2006-10-21
 » YATA!!!

ARIGATO!!!!
Finaly! MP3!!!
Now i can have my mmo have support for mp3 that is in the music folder of the psp!

   by rowanmcau (Unregistered) - 2006-10-21
 » sweet

has any one tryed on 2.71se and how big can the files be

   by cools (Unregistered) - 2006-10-21
 » File Size

Im thinking about 15 meg. With out lowser you can get ~20 meg. Those are just some estimates. (It depends on the amount of ram left in the memory)

System.getFreeMemory() should return the amount of free mem. Take the number it gives you and divide it by 1,048,576 to get the amount of free mem. As a benchmark Monopoly gets around 7 meg or so.



Featured Content
QJ.NET Blog Network RSS Feeds
MyQJ Feed / PDA
MyQJ RSS / PDA
Blog of Blogs Feed / PDA
QJ.NET RSS / PDA
Gaming Consoles Feed / PDA
Nintendo DS RSS / PDA
PlayStation 3 RSS / PDA
PSP Updates RSS / PDA
Wii RSS / PDA
Xbox 360 RSS / PDA
PC Gaming Feed / PDA
Age of Conan RSS / PDA
Games for Windows RSS / PDA
MMORPG RSS / PDA
Tabula Rasa RSS / PDA
World of Warcraft RSS / PDA
Science Feed / PDA
Science RSS / PDA
Technology Feed / PDA
Apple RSS / PDA
Gadgets RSS / PDA
iPhone RSS / PDA
Mobile RSS / PDA
Photography RSS / PDA
Tech RSS / PDA
Add QJ.NET
Add to My Yahoo!
Google Reader Subscribe with Bloglines
Add  to your Kinja digest Subscribe in NewsGator Online
Subscribe with Pluck RSS reader Add 'www.qj.net' to Newsburst from CNET News.com
Subscribe with SearchFox RSS del.icio.us www.qj.net
Add to Technorati Favorite! Add to My AOL
furl! it Stumble for Treehugger!

 Username: 
 Password:
Forgot password
New user registration



Poll
Which is the greatest handheld of all time?
Categories

Emulators
Titles
Archives