Author Topic: Re: .video_flags = Vid.NoAudio; help [Solved]!  (Read 62 times)

jedione

  • Sr. Member
  • ****
  • Posts: 250
  • punktoe
    • View Profile
Re: .video_flags = Vid.NoAudio; help [Solved]!
« 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? 
« Last Edit: June 13, 2017, 06:49:04 PM by jedione »
help a friend....

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
    • View Profile
Re: .video_flags = Vid.NoAudio; help
« Reply #1 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?

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 702
    • View Profile
    • new projects
Re: .video_flags = Vid.NoAudio; help
« Reply #2 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
« Last Edit: June 13, 2017, 01:18:03 AM by verion »

jedione

  • Sr. Member
  • ****
  • Posts: 250
  • punktoe
    • View Profile
Re: .video_flags = Vid.NoAudio; help
« Reply #3 on: June 13, 2017, 06:48:50 AM »
guess ill have to live with it for now...thanks for the conformation.
help a friend....

qqplayer

  • Sr. Member
  • ****
  • Posts: 100
    • View Profile
Re: .video_flags = Vid.NoAudio; help
« Reply #4 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;

jedione

  • Sr. Member
  • ****
  • Posts: 250
  • punktoe
    • View Profile
Re: .video_flags = Vid.NoAudio; help [Solved]!
« Reply #5 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...
« Last Edit: June 13, 2017, 06:48:11 PM by jedione »
help a friend....

verion

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 702
    • View Profile
    • new projects
Re: .video_flags = Vid.NoAudio; help [Solved]!
« Reply #6 on: June 14, 2017, 04:39:05 AM »
@qqplayer

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