C# Class CrewChiefV3.AudioPlayer

Show file Open project: mrbelowski/r3e_crewchief_v3 Class Usage Examples

Public Properties

Property Type Description
allMessageNames List
availableDriverNames List
disablePearlsOfWisdom System.Boolean
dtmPitWindowClosedBackground String
dtmPitWindowOpenBackground String
folderAcknowlegeDisableKeepQuiet String
folderAcknowlegeEnableKeepQuiet String
folderAcknowlegeOK String
folderDeltasDisabled String
folderDeltasEnabled String
folderDidntUnderstand String
folderDisableSpotter String
folderEnableSpotter String
folderNo String
folderNoData String
folderYes String
initialised System.Boolean
minimumSoundPackVersion float
mute System.Boolean
pauseBetweenMessages float
soundFilesPath String
useAlternateBeeps System.Boolean

Public Methods

Method Description
AudioPlayer ( CrewChief crewChief ) : System
cacheDriverName ( String driverName ) : void
cacheDriverNames ( List driverNames ) : void
closeChannel ( ) : void
disableKeepQuietMode ( ) : void
enableKeepQuietMode ( ) : void
getSoundPackVersion ( DirectoryInfo soundDirectory ) : float
initialise ( ) : void
isChannelOpen ( ) : System.Boolean
playClipImmediately ( QueuedMessage queuedMessage, System.Boolean useShortBeep ) : void
playClipImmediately ( QueuedMessage queuedMessage, System.Boolean keepChannelOpen, System.Boolean useShortBeep ) : void
playEndSpeakingBeep ( ) : void
playShortStartSpeakingBeep ( ) : void
playStartListeningBeep ( ) : void
playStartSpeakingBeep ( ) : void
purgeQueues ( ) : void
queueClip ( QueuedMessage queuedMessage ) : void
queueClip ( QueuedMessage queuedMessage, PearlsOfWisdom pearlType, double pearlMessageProbability ) : void
removeImmediateClip ( String eventName ) : System.Boolean
removeQueuedClip ( String eventName ) : System.Boolean
repeatLastMessage ( ) : void
setBackgroundSound ( String backgroundSoundName ) : void
startMonitor ( ) : void
stopMonitor ( ) : void
suspendPearlsOfWisdom ( ) : void

Private Methods

Method Description
backgroundPlayer_MediaEnded ( object sender, EventArgs e ) : void
checkPearlOfWisdomValid ( PearlsOfWisdom newPearlType ) : System.Boolean
clipIsPearlOfWisdom ( String eventName ) : System.Boolean
closeRadioInternalChannel ( ) : void
getBackgroundVolume ( ) : float
hasPearlJustBeenPlayed ( ) : System.Boolean
holdOpenChannel ( System.Boolean useShortBeep ) : void
initialiseBackgroundPlayer ( ) : void
monitorQueue ( ) : void
monitorQueueNoImmediateMessages ( ) : void
openAndCacheClip ( String eventName, String file ) : void
openChannel ( System.Boolean useShortBeep ) : void
openRadioChannelInternal ( ) : void
playQueueContents ( OrderedDictionary queueToPlay, System.Boolean isImmediateMessages ) : void
playSounds ( List eventNames, System.Boolean isImmediateMessages, System.Boolean &wasInterrupted ) : List
queueHasDueMessages ( OrderedDictionary queueToCheck, System.Boolean isImmediateMessages ) : System.Boolean
stopBackgroundPlayer ( ) : void
writeMessagePlayedStats ( ) : void

Method Details

AudioPlayer() public method

public AudioPlayer ( CrewChief crewChief ) : System
crewChief CrewChief
return System

cacheDriverName() public method

public cacheDriverName ( String driverName ) : void
driverName String
return void

cacheDriverNames() public method

public cacheDriverNames ( List driverNames ) : void
driverNames List
return void

closeChannel() public method

public closeChannel ( ) : void
return void

disableKeepQuietMode() public method

public disableKeepQuietMode ( ) : void
return void

enableKeepQuietMode() public method

public enableKeepQuietMode ( ) : void
return void

getSoundPackVersion() public method

public getSoundPackVersion ( DirectoryInfo soundDirectory ) : float
soundDirectory System.IO.DirectoryInfo
return float

initialise() public method

public initialise ( ) : void
return void

isChannelOpen() public method

public isChannelOpen ( ) : System.Boolean
return System.Boolean

playClipImmediately() public method

public playClipImmediately ( QueuedMessage queuedMessage, System.Boolean useShortBeep ) : void
queuedMessage QueuedMessage
useShortBeep System.Boolean
return void

playClipImmediately() public method

public playClipImmediately ( QueuedMessage queuedMessage, System.Boolean keepChannelOpen, System.Boolean useShortBeep ) : void
queuedMessage QueuedMessage
keepChannelOpen System.Boolean
useShortBeep System.Boolean
return void

playEndSpeakingBeep() public method

public playEndSpeakingBeep ( ) : void
return void

playShortStartSpeakingBeep() public method

public playShortStartSpeakingBeep ( ) : void
return void

playStartListeningBeep() public method

public playStartListeningBeep ( ) : void
return void

playStartSpeakingBeep() public method

public playStartSpeakingBeep ( ) : void
return void

purgeQueues() public method

public purgeQueues ( ) : void
return void

queueClip() public method

public queueClip ( QueuedMessage queuedMessage ) : void
queuedMessage QueuedMessage
return void

queueClip() public method

public queueClip ( QueuedMessage queuedMessage, PearlsOfWisdom pearlType, double pearlMessageProbability ) : void
queuedMessage QueuedMessage
pearlType PearlsOfWisdom
pearlMessageProbability double
return void

removeImmediateClip() public method

public removeImmediateClip ( String eventName ) : System.Boolean
eventName String
return System.Boolean

removeQueuedClip() public method

public removeQueuedClip ( String eventName ) : System.Boolean
eventName String
return System.Boolean

repeatLastMessage() public method

public repeatLastMessage ( ) : void
return void

setBackgroundSound() public method

public setBackgroundSound ( String backgroundSoundName ) : void
backgroundSoundName String
return void

startMonitor() public method

public startMonitor ( ) : void
return void

stopMonitor() public method

public stopMonitor ( ) : void
return void

suspendPearlsOfWisdom() public method

public suspendPearlsOfWisdom ( ) : void
return void

Property Details

allMessageNames public static property

public static List allMessageNames
return List

availableDriverNames public static property

public static List availableDriverNames
return List

disablePearlsOfWisdom public property

public Boolean,System disablePearlsOfWisdom
return System.Boolean

dtmPitWindowClosedBackground public static property

public static String dtmPitWindowClosedBackground
return String

dtmPitWindowOpenBackground public static property

public static String dtmPitWindowOpenBackground
return String

folderAcknowlegeDisableKeepQuiet public static property

public static String folderAcknowlegeDisableKeepQuiet
return String

folderAcknowlegeEnableKeepQuiet public static property

public static String folderAcknowlegeEnableKeepQuiet
return String

folderAcknowlegeOK public static property

public static String folderAcknowlegeOK
return String

folderDeltasDisabled public static property

public static String folderDeltasDisabled
return String

folderDeltasEnabled public static property

public static String folderDeltasEnabled
return String

folderDidntUnderstand public static property

public static String folderDidntUnderstand
return String

folderDisableSpotter public static property

public static String folderDisableSpotter
return String

folderEnableSpotter public static property

public static String folderEnableSpotter
return String

folderNo public static property

public static String folderNo
return String

folderNoData public static property

public static String folderNoData
return String

folderYes public static property

public static String folderYes
return String

initialised public property

public Boolean,System initialised
return System.Boolean

minimumSoundPackVersion public static property

public static float minimumSoundPackVersion
return float

mute public property

public Boolean,System mute
return System.Boolean

pauseBetweenMessages public static property

public static float pauseBetweenMessages
return float

soundFilesPath public property

public String soundFilesPath
return String

useAlternateBeeps public static property

public static Boolean,System useAlternateBeeps
return System.Boolean