C# Class Handbrake.Controls.AudioPanel

The AudioPanel Control
Inheritance: System.Windows.Forms.UserControl
Show file Open project: golgol7777/HandBrakeWinSource

Public Methods

Method Description
AudioPanel ( ) : System

Initializes a new instance of the AudioPanel class.

LoadTracks ( List tracks ) : void

Load an arraylist of AudioTrack items into the list.

RequiresM4V ( ) : bool

Checks if the settings used required the .m4v (rather than .mp4) extension

SetContainer ( string path ) : void

Set the File Container. This funciton is used to limit the available options for each file container.

SetTrackListAfterTitleChange ( Title selectedTitle, Preset preset ) : void

Set the Track list dropdown from the parsed title captured during the scan

Private Methods

Method Description
AddAudioTrack_Click ( object sender, EventArgs e ) : void

The Add Audio Track button event handler

AudioList_movedown_Click ( object sender, EventArgs e ) : void

The audio list move down menu item

AudioList_moveup_Click ( object sender, EventArgs e ) : void

The Audio List Move Up menu item

AudioList_remove_Click ( object sender, EventArgs e ) : void

The audio list remove menu item

AutomaticTrackSelection ( ) : void

Attempt to automatically select the correct audio tracks based on the users settings.

Btn_remove_track_click ( object sender, EventArgs e ) : void

Remove an Audio Track

ClearAudioList ( ) : void

Clear the audio list

ControlChanged ( object sender, EventArgs e ) : void

one of the controls has changed. Event handler

GetCompatiblePassthru ( AudioTrack track ) : AudioEncoder

Get a compatible passthru, or default to aac.

IsIncompatiblePassthru ( AudioTrack track ) : bool

For a given Audio Track, is the chosen Passthru option supported

Mnu_clear_all_click ( object sender, EventArgs e ) : void

Clear all audio tracks

MoveTo ( bool top ) : void
MoveTrack ( bool up ) : void

Move an audio track up or down the audio list

RemoveTrack ( ) : void

Remove an audio track from the list

SetBitrate ( int currentValue ) : void

Set the bitrate dropdown

SetMixDown ( string currentMixdown ) : void

Set the mixdown dropdown

TrackExists ( Audio sourceTrack ) : bool

Check if a track already exists

audioList_MoveToBottom_Click ( object sender, EventArgs e ) : void

Move to Bottom

audioList_MoveToTop_Click ( object sender, EventArgs e ) : void

Move to Top

audioList_SelectionChanged ( object sender, EventArgs e ) : void

The Audio List selected index changed event handler

btn_AdvancedAudio_Click ( object sender, EventArgs e ) : void
mnu_AddAll_Click ( object sender, EventArgs e ) : void

Add all the Audio Tracks that are not currently on the Lust

Method Details

AudioPanel() public method

Initializes a new instance of the AudioPanel class.
public AudioPanel ( ) : System
return System

LoadTracks() public method

Load an arraylist of AudioTrack items into the list.
public LoadTracks ( List tracks ) : void
tracks List List of audio tracks
return void

RequiresM4V() public method

Checks if the settings used required the .m4v (rather than .mp4) extension
public RequiresM4V ( ) : bool
return bool

SetContainer() public method

Set the File Container. This funciton is used to limit the available options for each file container.
public SetContainer ( string path ) : void
path string /// the file path ///
return void

SetTrackListAfterTitleChange() public method

Set the Track list dropdown from the parsed title captured during the scan
public SetTrackListAfterTitleChange ( Title selectedTitle, Preset preset ) : void
selectedTitle Title The selected title
preset Preset A preset
return void