Hi all,  I have been hacking my way through building an app with offline maps, a database of markers and alerts as a marker comes near.  It is all working fine as I post an alert to the screen with all the relevant information using ToastMessageShow.
What I want to add as an option is a verbal alert such as "Fuel 100 metres ahead". I have been playing around with a sample app and have stored "100", "Metres" and "Ahead" into a soundpool thing and want to play them back sequentially, one after the other.
Question is Should I use "Wait for" or am I better storing an array of Sleep values for each of the sound files?
I am really new to this sort of programming, so don't really understand what I am waiting for with respect to SP.Play
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Thanks in advance,
Kev
			
			What I want to add as an option is a verbal alert such as "Fuel 100 metres ahead". I have been playing around with a sample app and have stored "100", "Metres" and "Ahead" into a soundpool thing and want to play them back sequentially, one after the other.
Question is Should I use "Wait for" or am I better storing an array of Sleep values for each of the sound files?
I am really new to this sort of programming, so don't really understand what I am waiting for with respect to SP.Play
			
				B4X:
			
		
		
		Sub Button8_Click
    PlayId5 = SP.Play(LoadId5,  1, 1, 1, 0, 1)
    Sleep(1000)
    PlayId6 = SP.Play(LoadId6,  1, 1, 1, 0, 1)
    Sleep(600)
    PlayId7 = SP.Play(LoadId7,  1, 1, 1, 0, 1)
End SubThanks in advance,
Kev
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		