Multiple sounds seem to have issues
#1
I created a new sound in the Script Builder while one was playing, and it stopped playing the old one. I then tried playing both at once (both mp3s) and the first would cut out right after the second started, while the second would play a bit scratchily for a few more seconds before going out.

When in the editor, this pops up in the output:

java.lang.NullPointerException
at a.a.b.a.a(Player.java:82)
at net.buildism.object.Sound$4.run(Sound.java:145)
at net.buildism.object.Sound.run(Sound.java:218)
at java.lang.Thread.run(Unknown source)
Reply
#2
I think the script immediately executed the first sound and play the second sound since it's the last sound you inputed...
[Image: card.png]
Reply
#3
What I mean is

sound1:play()

then wait 5 seconds

sound2:play()

won't work.
Reply
#4
() <----- I think the number is suppose to go in the parenthesis...
[Image: card.png]
Reply
#5
(05-18-2012, 08:00 PM)Latinxassassin Wrote: () <----- I think the number is suppose to go in the parenthesis...

A number never goes in play().
Reply
#6
(05-18-2012, 08:01 PM)Franco30557 Wrote: A number never goes in play().

Then it seems the Java language is illogical...
[Image: card.png]
Reply
#7
(05-18-2012, 08:02 PM)Latinxassassin Wrote:
(05-18-2012, 08:01 PM)Franco30557 Wrote: A number never goes in play().

Then it seems the Java language is illogical...

You mean Lua...
Reply
#8
(05-18-2012, 08:04 PM)Franco30557 Wrote: You mean Lua...

Oh yeah, I thought Java was a program like Lua...
[Image: card.png]
Reply
#9
(05-18-2012, 08:07 PM)Latinxassassin Wrote:
(05-18-2012, 08:04 PM)Franco30557 Wrote: You mean Lua...

Oh yeah, I thought Java was a program like Lua...

What...?
Reply
#10
(05-18-2012, 08:07 PM)Latinxassassin Wrote:
(05-18-2012, 08:04 PM)Franco30557 Wrote: You mean Lua...

Oh yeah, I thought Java was a program like Lua...

Last time I checked, Java and Lua were 2 different languages.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)