Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
sound is intermittent
Old
jnawrocki
Member
 
Status: Offline
Posts: 32
Join Date: Jan 2010
Location: Toledo, OH
Default sound is intermittent - 02-22-2010, 02:41 PM

In my Alice world I have penguins singing short notes (.11 sec) when the penguin is clicked. Sometimes the notes play OK; other times the note doesn't play--it just makes a "pop" sound. Can anyone help.
The notes are .wav files.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-22-2010, 04:08 PM

Can you upload your world so we can see it? Maybe you made a mistake in your coding.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
sound is intermittent
Old
jnawrocki
Member
 
Status: Offline
Posts: 32
Join Date: Jan 2010
Location: Toledo, OH
Default sound is intermittent - 02-23-2010, 03:42 PM

Yes, I will upload. It is named PenguinSimonV3.a2w

Thanks
Jane

Last edited by jnawrocki; 01-27-2011 at 07:17 PM.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-23-2010, 04:27 PM

Ok I'm sorry but I can't find anything wrong with your program. There is absolutely no reason that those penguins should be waiting a second between notes. Everything method for the penguins making a noise happen happens around a 0.2 second duration, and there is no wait code after them and no wait code after the clicking method. There must be some other error I am not aware of, but by what I see the penguins should play their notes as soon as you click the next one.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 02-23-2010, 04:35 PM

As far as I remember, Alice has a queue for sound playing. Try waiting between notes.


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-23-2010, 04:47 PM

Why would they put in a queue? So, no matter what, you cannot play 2 sounds within the same second?


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 02-23-2010, 05:14 PM

It wasn't made to hurt you. Sound just wasn't a very supported feature, and sound mixing gets very complicated. A queue was the easiest way to do it.


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 02-23-2010, 05:16 PM

Quote:
Originally Posted by jnawrocki View Post
Yes, I will upload. It is named PenguinSimonV3.a2w

Thanks
Jane

I tried it and there is nothing wrong with it. I have to say change the code of "when clicked on" to "when pressed on"


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 02-23-2010, 05:20 PM

jediaction, have you tried clicking on the penguins faster? If you click on two penguins, the second one will not play until about 1 second after the first one finishes, which is weird.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 02-23-2010, 05:28 PM

Quote:
Originally Posted by Dameria View Post
jediaction, have you tried clicking on the penguins faster? If you click on two penguins, the second one will not play until about 1 second after the first one finishes, which is weird.

Yes i noticed that but i realized it is just the way the event is made and how long the sound is


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.