Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: jedione on June 12, 2017, 09:14:55 PM

Title: Re: .video_flags = Vid.NoAudio; help [Solved]!
Post by: jedione on June 12, 2017, 09:14:55 PM
it seems that when using,

Code: [Select]
local cart = fe.add_artwork( "video", 28, 108, 125, 112);
cart.video_flags = Vid.NoAudio;
cart.preserve_aspect_ratio = true;

it works as intended, no vid noise,,  but after launching a game and exiting,  you can here the video playing
till you move to new selection, up ,down-then it go's quiet again.

any one have a fix for this? 
Title: Re: .video_flags = Vid.NoAudio; help
Post by: liquid8d on June 12, 2017, 10:11:25 PM
Haven't confirmed this, but when are you setting that flag, just when the layout is loaded? It could be a bug, but perhaps you need to or can set it again when returning from the game?
Title: Re: .video_flags = Vid.NoAudio; help
Post by: verion on June 13, 2017, 01:14:51 AM
It's a bug - the same is with NEVATO theme, confirmed with Mac and Win 10.
I forgot to file that bug  :-[

When I exit the game and get back to AM - the sound is back on (was muted before) - but only for that one game, if I move up or down to another game on the list - the sound is muted again.

Here are the steps to recreate bug with NEVATO (and probably with any other theme with muted vid sound)
http://forum.attractmode.org/index.php?topic=370.msg7455#msg7455
Title: Re: .video_flags = Vid.NoAudio; help
Post by: jedione on June 13, 2017, 06:48:50 AM
guess ill have to live with it for now...thanks for the conformation.
Title: Re: .video_flags = Vid.NoAudio; help
Post by: qqplayer on June 13, 2017, 07:20:28 AM
This worked for me.

Code: [Select]
local video_snap = fe.add_artwork("video_snap", flx*0, fly*0 flw, flh);
 
 ::videoSound <- Vid.NoAudio;
 video_snap.video_flags = videoSound;
Title: Re: .video_flags = Vid.NoAudio; help [Solved]!
Post by: jedione on June 13, 2017, 12:20:40 PM
will try it tonight when i get home from work,,,thank you

Update: It Works.......thanks brother...
Title: Re: .video_flags = Vid.NoAudio; help [Solved]!
Post by: verion on June 14, 2017, 04:39:05 AM
@qqplayer

cool... thanks. another one to add to to-do list for NEVATO update :D