Author Topic: Option to mute audio output from video selectively  (Read 6186 times)

DietCoke

  • Full Member
  • ***
  • Posts: 25
    • View Profile
Option to mute audio output from video selectively
« 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

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Option to mute audio output from video selectively
« Reply #1 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;

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Option to mute audio output from video selectively
« Reply #2 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..
People want life easy..then complain about it

DietCoke

  • Full Member
  • ***
  • Posts: 25
    • View Profile
Re: Option to mute audio output from video selectively
« Reply #3 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!