|  | 
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  3D sound problem? 
			
			hi I have used 3D sound attached in one of my node and I want play sound when I press specific key. it`s done but while i hold down the key. the sound does not play sequentially and it plays with a little interval and its not good for me. has any body idea ? | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
| 
			
			So you want to play a looping sound when a key is pressed? If so, look at the following: Code: import viz
viz.go()
ball = viz.add('ball.wrl',pos = [0,2,8])
sound = ball.playsound('boing!.wav', viz.PAUSE)
#play and pause looping sound with keypresses
vizact.onkeydown('1',sound.play,viz.LOOP)
vizact.onkeydown('2',sound.pause) | 
|  | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Sound Looping Problem | JMOwens | Vizard | 4 | 09-29-2010 09:42 PM | 
| On click Sound Play Problems | Robbos | Vizard | 1 | 02-28-2008 02:02 PM | 
| sound problem | shahargur | Vizard | 1 | 08-16-2007 02:04 PM | 
| problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 10:36 AM | 
| sound problem | alaa | Vizard | 7 | 09-02-2005 01:13 PM |