C# Class Nanook.TheGhost.ProjectBackgroundAudio

Inheritance: ISettingsChange
Show file Open project: Nanook/TheGHOST

Public Methods

Method Description
CreateAudioFile ( string filename ) : AudioFile
CreateAudioFile ( string filename, int volume ) : AudioFile
CreatePreview ( bool finalise ) : void

Create the preview to disk

Export ( bool forceMono, int forceDownSample ) : void
HasMissingRawAudio ( ) : bool

Call to determin if source audio is still to be decoded, calling Import() will decode it.

Import ( ) : void

Add files to the AudioFiles list before calling import

ProjectBackgroundAudio ( Project project, DatWad datWad, DatItem datItem ) : System
RemoveFiles ( ) : void
ReplaceInWad ( ) : void
SetSafePreviewSettings ( ) : bool

Sets the internal preview start, length and fadelength to safe values (start + length is not longer than audiolength etc)

Private Methods

Method Description
AudioFileListChanged ( AudioFileList sender, AudioFileChangeType type, AudioFile from, AudioFile to, int index ) : void
ISettingsChange ( ) : void
setSafePreviewSettings ( int offset, int length, int fadeLength, int volume ) : bool

Ensures that all inputs are withing safe limits

Method Details

CreateAudioFile() public method

public CreateAudioFile ( string filename ) : AudioFile
filename string
return AudioFile

CreateAudioFile() public method

public CreateAudioFile ( string filename, int volume ) : AudioFile
filename string
volume int
return AudioFile

CreatePreview() public method

Create the preview to disk
public CreatePreview ( bool finalise ) : void
finalise bool Set to true if audio on disk has had the final volumes applied (therefore volumes should be 100%)
return void

Export() public method

public Export ( bool forceMono, int forceDownSample ) : void
forceMono bool
forceDownSample int
return void

HasMissingRawAudio() public method

Call to determin if source audio is still to be decoded, calling Import() will decode it.
public HasMissingRawAudio ( ) : bool
return bool

Import() public method

Add files to the AudioFiles list before calling import
public Import ( ) : void
return void

ProjectBackgroundAudio() public method

public ProjectBackgroundAudio ( Project project, DatWad datWad, DatItem datItem ) : System
project Project
datWad DatWad
datItem DatItem
return System

RemoveFiles() public method

public RemoveFiles ( ) : void
return void

ReplaceInWad() public method

public ReplaceInWad ( ) : void
return void

SetSafePreviewSettings() public method

Sets the internal preview start, length and fadelength to safe values (start + length is not longer than audiolength etc)
public SetSafePreviewSettings ( ) : bool
return bool