How would one go about playing sounds in markup
Specifically, I want to trigger audio from a focused state without passing an event to script. I understand that I can create a wav object, but how is the object sent to Player.audio.effect in markup
Thanks!

Playing sounds from markup
Poppa Mike
DevDiver
Priyank Gajera
what i have to write on the playlist And in the manifest i put it like if it was an image
Sorry if the answer is too obvious...
VictorArce
Paul Bradley
You can find answer in the thread: "Correct Time Code" at the end by Jeff Williams.
It looks like a bug in HDi simulator as it can play an effect sound without this setting.
Jonas.S
tattoo
Kennon2005
Mystagogue
Jo-Jo
summerwind
ImGivingUp
vb_ff
Audio is played by setting the style:display attribute to "auto". When it is "none", the sound will not play.
So you have something like:
object id="MenuSound" type="audio/x-wav" src="file:///dvddisc/ADV_OBJ/ding.wav" style:display="none"/>And then:
cue select="id('MenuSound')" begin="id('foo')[state:focused()]" dur ="2s" ><set style:display="auto"/>
</cue>