Пример #1
0
 public EncodeWithFilters(VideoFilter videoFilter, AudioFilter audioFilter, bool overrideBitrate, uint customBitrate)
 {
     _videoFilter     = videoFilter;
     _audioFilter     = audioFilter;
     _overrideBitrate = overrideBitrate;
     _customBitrate   = customBitrate;
 }
Пример #2
0
 public Demodulator AudioFilter(AudioFilter filter)
 {
     _radio.Check(_api.SetAudioFilterParams(_radio.GetHandle(), _ddc2.Channel(), filter.CutOffLow,
                                            filter.CutOffHigh,
                                            filter.DeEmphasis));
     return(this);
 }
Пример #3
0
            private void load(AudioManager audio)
            {
                tickSample    = audio.Samples.Get(@"UI/dialog-dangerous-tick");
                confirmSample = audio.Samples.Get(@"UI/dialog-dangerous-select");

                AddInternal(lowPassFilter = new AudioFilter(audio.SampleMixer));
            }
Пример #4
0
        private void load(SessionStatics sessionStatics, AudioManager audio)
        {
            muteWarningShownOnce    = sessionStatics.GetBindable <bool>(Static.MutedAudioNotificationShownOnce);
            batteryWarningShownOnce = sessionStatics.GetBindable <bool>(Static.LowBatteryNotificationShownOnce);

            InternalChildren = new Drawable[]
            {
                (content = new LogoTrackingContainer
                {
                    Anchor = Anchor.Centre,
                    Origin = Anchor.Centre,
                    RelativeSizeAxes = Axes.Both,
                }).WithChildren(new Drawable[]
                {
                    MetadataInfo = new BeatmapMetadataDisplay(Beatmap.Value, Mods, content.LogoFacade)
                    {
                        Alpha  = 0,
                        Anchor = Anchor.Centre,
                        Origin = Anchor.Centre,
                    },
                    PlayerSettings = new FillFlowContainer <PlayerSettingsGroup>
                    {
                        Anchor       = Anchor.TopRight,
                        Origin       = Anchor.TopRight,
                        AutoSizeAxes = Axes.Both,
                        Direction    = FillDirection.Vertical,
                        Spacing      = new Vector2(0, 20),
                        Margin       = new MarginPadding(25),
                        Children     = new PlayerSettingsGroup[]
                        {
                            VisualSettings = new VisualSettings(),
                            new InputSettings()
                        }
                    },
                    idleTracker = new IdleTracker(750),
                }),
                lowPassFilter  = new AudioFilter(audio.TrackMixer),
                highPassFilter = new AudioFilter(audio.TrackMixer, BQFType.HighPass)
            };

            if (Beatmap.Value.BeatmapInfo.EpilepsyWarning)
            {
                AddInternal(epilepsyWarning = new EpilepsyWarning
                {
                    Anchor = Anchor.Centre,
                    Origin = Anchor.Centre,
                });
            }
        }
Пример #5
0
 private void load(OsuColour colours, AudioManager audio)
 {
     Children = new Drawable[]
     {
         new Box
         {
             Colour           = colours.GreySeaFoamDark,
             RelativeSizeAxes = Axes.Both,
         },
         new Container
         {
             RelativeSizeAxes = Axes.Both,
             Child            = new GridContainer
             {
                 RelativeSizeAxes = Axes.Both,
                 RowDimensions    = new[]
                 {
                     new Dimension(GridSizeMode.AutoSize),
                 },
                 Content = new[]
                 {
                     new Drawable[]
                     {
                         new Container
                         {
                             RelativeSizeAxes = Axes.X,
                             AutoSizeAxes     = Axes.Y,
                             Children         = new Drawable[]
                             {
                                 new OsuSpriteText
                                 {
                                     Anchor  = Anchor.Centre,
                                     Origin  = Anchor.Centre,
                                     Text    = "Manage collections",
                                     Font    = OsuFont.GetFont(size: 30),
                                     Padding = new MarginPadding {
                                         Vertical = 10
                                     },
                                 },
                                 new IconButton
                                 {
                                     Anchor = Anchor.CentreRight,
                                     Origin = Anchor.CentreRight,
                                     Icon   = FontAwesome.Solid.Times,
                                     Colour = colours.GreySeaFoamDarker,
                                     Scale  = new Vector2(0.8f),
                                     X      = -10,
                                     Action = () => State.Value = Visibility.Hidden
                                 }
                             }
                         }
                     },
                     new Drawable[]
                     {
                         new Container
                         {
                             RelativeSizeAxes = Axes.Both,
                             Children         = new Drawable[]
                             {
                                 new Box
                                 {
                                     RelativeSizeAxes = Axes.Both,
                                     Colour           = colours.GreySeaFoamDarker
                                 },
                                 new DrawableCollectionList
                                 {
                                     RelativeSizeAxes = Axes.Both,
                                     Items            = { BindTarget = collectionManager?.Collections ?? new BindableList <BeatmapCollection>() }
                                 }
                             }
                         }
                     },
                 }
             }
         },
         lowPassFilter = new AudioFilter(audio.TrackMixer)
     };
 }
Пример #6
0
 public static string GetFilterArguments(AudioFilter filter) => GetFilterArguments(filter, "a");
Пример #7
0
 private void load(AudioManager audio)
 {
     AddInternal(lowPassFilter = new AudioFilter(audio.TrackMixer));
 }
Пример #8
0
 private void load(AudioManager audio)
 {
     lowPassFilter = new AudioFilter(audio.TrackMixer);
 }
Пример #9
0
 public bool TryAudioFilter(AudioFilter filter)
 {
     return(_api.SetAudioFilterParams(_radio.GetHandle(), _ddc2.Channel(), filter.CutOffLow, filter.CutOffHigh,
                                      filter.DeEmphasis));
 }
Пример #10
0
 public void Awake()
 {
     m_AudioFilter = new AudioFilter(0);
     m_nPriority   = 256;
 }