Thread: array problem
View Single Post
  #9  
Old 03-10-2014, 09:20 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Since you're not going to cycle through the songs you could use a standard list and a for loop:
Code:
#Preload all songs
songList = [ viz.addAudio(filename) for filename in songs ]

for song in songList:
	
	song.play()
	#Wait for song to end
	yield viztask.waitMediaEnd(song)
Reply With Quote