QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Music: help

This is a discussion on Music: help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i noticed that when i use music in lua if the music lay() is below the "while true do" it ...

Reply
 
LinkBack Thread Tools
Old 03-15-2006, 03:52 PM   #1

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default Music: help

i noticed that when i use music in lua if the musiclay() is below the "while true do" it like...flickers err...doesn't play all the way through. how can i make it so that i can play music during for instance key presses.

if u don't feel like/cant explain jus post a sample code that does it and i'll teach meself
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-15-2006, 04:48 PM   #2

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

thats because you are repeating the play music over and over and over and over....

only do it once.

if Controls.read():cross() then --if you push X...
music:play() --play the music
while Controls.read():cross() do end --while you are pressing X, do nothing
end --end the if

This will see if you pressed X, then play the sound, and freeze the program until you release X
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-15-2006, 04:49 PM   #3

Tha Sigerator
 
Xodiac21's Avatar
 
Join Date: Jul 2005
Location: New Orleans, LA
Posts: 4,047
Trader Feedback: 0
Default

thx but is there a way to play it in the bg for a senario that involves button presses?

edit: i think i understand..i'll start fooling around with my code and see
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -

Check Out My Myspace HERE
Comment My Qj Wiki
Xodiac21 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
music

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 12:21 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us