PDA

View Full Version : WARNING: Failed to set media volume (Unspecified error)


smith_toh
09-28-2011, 06:36 PM
hi all,
i use the following sample code:

sound = viz.addAudio('bach_air.mid')
sound.loop(viz.ON)
sound.volume(.5)
sound.setTime(3)
sound.setRate(2)
sound.play()


and it will show me this error:
WARNING: Failed to set media volume (Unspecified error)
Please help me.
Thank you so much.

Jeff
09-29-2011, 04:00 PM
This seems be to be an issue specific with the midi format. It should work if you convert the file to another format.

smith_toh
09-30-2011, 02:16 AM
hi Jeff,
but my project require only midi format.
Is there other way to adjust volume for midi file?
Thanks.