// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // The Audio View Model // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.ViewModels { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Caliburn.Micro; using HandBrake.Interop.Interop; using HandBrake.Interop.Interop.Interfaces.Model.Encoders; using HandBrake.Interop.Utilities; using HandBrakeWPF.EventArgs; using HandBrakeWPF.Model.Audio; using HandBrakeWPF.Properties; using HandBrakeWPF.Services.Interfaces; using HandBrakeWPF.Services.Presets.Model; using HandBrakeWPF.Services.Scan.Model; using HandBrakeWPF.Utilities; using HandBrakeWPF.ViewModels.Interfaces; using AudioEncoder = Services.Encode.Model.Models.AudioEncoder; using AudioTrack = Services.Encode.Model.Models.AudioTrack; using EncodeTask = Services.Encode.Model.EncodeTask; using OutputFormat = Services.Encode.Model.Models.OutputFormat; /// /// The Audio View Model /// public class AudioViewModel : ViewModelBase, IAudioViewModel { private readonly IWindowManager windowManager; private IEnumerable