Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: DietCoke on August 14, 2015, 11:45:00 PM

Title: Option to mute audio output from video selectively
Post by: DietCoke on August 14, 2015, 11:45:00 PM
I have sound coming from:

local snap = fe.add_artwork( "snap", 0, 661, 400, 300 );
snap.pinch_y = 0;
snap.rotation = 0;
snap.preserve_aspect_ratio = true;

They are the game preview videos from emumovies.

I have sound coming from:

fe.add_image( "example.mp4", 0, 0, 1920, 1080);

How do I shut off the audio that comes from:  fe.add_artwork( "snap", 0, 661, 400, 300 );?

TL;Dr :  I want sound from example.mp4, but I don't want sound with the emumovies videos and would like to mute it
Title: Re: Option to mute audio output from video selectively
Post by: omegaman on August 15, 2015, 05:11:18 AM
Dikecoke-

Try this, added the attribute to the last line.   

local snap = fe.add_artwork( "snap", 0, 661, 400, 300 );
snap.pinch_y = 0;
snap.rotation = 0;
snap.preserve_aspect_ratio = true;
snap.video_flags = Vid.NoAudio;
Title: Re: Option to mute audio output from video selectively
Post by: akafox on August 15, 2015, 07:27:40 AM
If it's just the movie snaps you are wanting to turn off That option is in the sound menu. Press TAB from main screen then go to the sound option..then choose movie sound and make it zero. I'm just guessing here..though you may be wanting something else..
Title: Re: Option to mute audio output from video selectively
Post by: DietCoke on August 23, 2015, 07:30:13 PM
Thanks guys - sorry for the late reply.  The fix turned out to be omegaman's suggestion.  That way I kept the music from the background video but was able to mute the video from the snaps.  Thanks so much to both of you!