C# Class TuneBlaster_.GameAudio

The class that manages the audio within the game Author Dermot Kirby
Afficher le fichier Open project: kiniry-teaching/UCD Class Usage Examples

Méthodes publiques

Свойство Type Description
Alter Thread
Base Thread
Drums Thread
Harps Thread
Strings Thread
Synth Thread
ballColour Image.value
baseCue1 Microsoft.Xna.Framework.Audio.Cue
bellCue1 Microsoft.Xna.Framework.Audio.Cue
emitter Microsoft.Xna.Framework.Audio.AudioEmitter
listener Microsoft.Xna.Framework.Audio.AudioListener
pianoCue1 Microsoft.Xna.Framework.Audio.Cue
searchCue Microsoft.Xna.Framework.Audio.Cue
stringCue1 Microsoft.Xna.Framework.Audio.Cue

Méthodes publiques

Méthode Description
ChangeBase ( ) : void

Starts the thread for base melody modification.

ChangeBells ( ) : void

Starts the thread for bell melody modification.

ChangeDrums ( ) : void

Starts the thread for piano melody modification.

ChangeHarp ( ) : void

Starts the thread for harp melody modification.

ChangeMelody ( Object colour ) : void

Method that regulates the modification of the song.

ChangePiano ( ) : void

Starts the thread for piano melody modification.

ChangeStrings ( ) : void

Starts the thread for string melody modification.

ChangeSynth ( ) : void

Starts the thread for synth melody modification.

GameAudio ( ) : System
Initialise ( ) : void

Plays the initial melody.

InstrChanger ( Image colour ) : void

Starts the thread for instrument modification depending on the colour.

ModifyBase ( ) : void

Modifies the initial melody.

ModifyBells ( ) : void

Modifies the bell melody.

ModifyDrums ( ) : void

Modifies the drum loop.

ModifyHarp ( ) : void

Modifies the harp melody.

ModifyPiano ( ) : void

Modifies the piano melody.

ModifyStrings ( ) : void

Modifies the string melody.

ModifySynth ( ) : void

Modifies the synth melody.

ResumeThreads ( ) : void

Resume any threads currently suspended

SuspendThreads ( ) : void

Suspend any threads currently executing

UpdateAudio ( ) : void

Updates the audio in the game.

disposeBallCues ( ) : void

Dispose of all the ball noise cues in memory

disposeBaseCues ( ) : void

Dispose of all the base melody cues in memory

disposeBellCues ( ) : void

Dispose of all the bell cues in memory

disposeDrumCues ( ) : void

Dispose of all the drum cues in memory

disposeHarpCues ( ) : void

Dispose of all the harp cues in memory

disposePianoCues ( ) : void

Dispose of all the piano cues in memory

disposeSpecialCues ( ) : void

Dispose of all the special mode cues in memory

disposeStringCues ( ) : void

Dispose of all the string cues in memory

disposeSynthCues ( ) : void

Dispose of all the synth cues in memory

pauseAllCues ( ) : void

In the event of a special mode, pause all the currently playing cues.

resetBallCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetBaseCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetBellCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetDrumCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetHarpCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetPianoCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetSpecialCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetStringCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resetSynthCues ( ) : void

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.

resumeAllCues ( ) : void

When a special mode ends, resume the cues that were paused.

setPosition ( Vector3 pos ) : void

Sets the position of the ball that caused an explosion.

Method Details

ChangeBase() public méthode

Starts the thread for base melody modification.
public ChangeBase ( ) : void
Résultat void

ChangeBells() public méthode

Starts the thread for bell melody modification.
public ChangeBells ( ) : void
Résultat void

ChangeDrums() public méthode

Starts the thread for piano melody modification.
public ChangeDrums ( ) : void
Résultat void

ChangeHarp() public méthode

Starts the thread for harp melody modification.
public ChangeHarp ( ) : void
Résultat void

ChangeMelody() public méthode

Method that regulates the modification of the song.
public ChangeMelody ( Object colour ) : void
colour Object
Résultat void

ChangePiano() public méthode

Starts the thread for piano melody modification.
public ChangePiano ( ) : void
Résultat void

ChangeStrings() public méthode

Starts the thread for string melody modification.
public ChangeStrings ( ) : void
Résultat void

ChangeSynth() public méthode

Starts the thread for synth melody modification.
public ChangeSynth ( ) : void
Résultat void

GameAudio() public méthode

public GameAudio ( ) : System
Résultat System

Initialise() public méthode

Plays the initial melody.
public Initialise ( ) : void
Résultat void

InstrChanger() public méthode

Starts the thread for instrument modification depending on the colour.
public InstrChanger ( Image colour ) : void
colour Image
Résultat void

ModifyBase() public méthode

Modifies the initial melody.
public ModifyBase ( ) : void
Résultat void

ModifyBells() public méthode

Modifies the bell melody.
public ModifyBells ( ) : void
Résultat void

ModifyDrums() public méthode

Modifies the drum loop.
public ModifyDrums ( ) : void
Résultat void

ModifyHarp() public méthode

Modifies the harp melody.
public ModifyHarp ( ) : void
Résultat void

ModifyPiano() public méthode

Modifies the piano melody.
public ModifyPiano ( ) : void
Résultat void

ModifyStrings() public méthode

Modifies the string melody.
public ModifyStrings ( ) : void
Résultat void

ModifySynth() public méthode

Modifies the synth melody.
public ModifySynth ( ) : void
Résultat void

ResumeThreads() public méthode

Resume any threads currently suspended
public ResumeThreads ( ) : void
Résultat void

SuspendThreads() public méthode

Suspend any threads currently executing
public SuspendThreads ( ) : void
Résultat void

UpdateAudio() public méthode

Updates the audio in the game.
public UpdateAudio ( ) : void
Résultat void

disposeBallCues() public méthode

Dispose of all the ball noise cues in memory
public disposeBallCues ( ) : void
Résultat void

disposeBaseCues() public méthode

Dispose of all the base melody cues in memory
public disposeBaseCues ( ) : void
Résultat void

disposeBellCues() public méthode

Dispose of all the bell cues in memory
public disposeBellCues ( ) : void
Résultat void

disposeDrumCues() public méthode

Dispose of all the drum cues in memory
public disposeDrumCues ( ) : void
Résultat void

disposeHarpCues() public méthode

Dispose of all the harp cues in memory
public disposeHarpCues ( ) : void
Résultat void

disposePianoCues() public méthode

Dispose of all the piano cues in memory
public disposePianoCues ( ) : void
Résultat void

disposeSpecialCues() public méthode

Dispose of all the special mode cues in memory
public disposeSpecialCues ( ) : void
Résultat void

disposeStringCues() public méthode

Dispose of all the string cues in memory
public disposeStringCues ( ) : void
Résultat void

disposeSynthCues() public méthode

Dispose of all the synth cues in memory
public disposeSynthCues ( ) : void
Résultat void

pauseAllCues() public méthode

In the event of a special mode, pause all the currently playing cues.
public pauseAllCues ( ) : void
Résultat void

resetBallCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetBallCues ( ) : void
Résultat void

resetBaseCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetBaseCues ( ) : void
Résultat void

resetBellCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetBellCues ( ) : void
Résultat void

resetDrumCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetDrumCues ( ) : void
Résultat void

resetHarpCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetHarpCues ( ) : void
Résultat void

resetPianoCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetPianoCues ( ) : void
Résultat void

resetSpecialCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetSpecialCues ( ) : void
Résultat void

resetStringCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetStringCues ( ) : void
Résultat void

resetSynthCues() public méthode

Sets the cues equal to the specified files from the sound bank to make them ready to be played again.
public resetSynthCues ( ) : void
Résultat void

resumeAllCues() public méthode

When a special mode ends, resume the cues that were paused.
public resumeAllCues ( ) : void
Résultat void

setPosition() public méthode

Sets the position of the ball that caused an explosion.
public setPosition ( Vector3 pos ) : void
pos Vector3
Résultat void

Property Details

Alter public_oe property

public Thread Alter
Résultat Thread

Base public_oe property

public Thread Base
Résultat Thread

Drums public_oe property

public Thread Drums
Résultat Thread

Harps public_oe property

public Thread Harps
Résultat Thread

Strings public_oe property

public Thread Strings
Résultat Thread

Synth public_oe property

public Thread Synth
Résultat Thread

ballColour public_oe property

public Image.value ballColour
Résultat Image.value

baseCue1 public_oe property

public Cue,Microsoft.Xna.Framework.Audio baseCue1
Résultat Microsoft.Xna.Framework.Audio.Cue

bellCue1 public_oe property

public Cue,Microsoft.Xna.Framework.Audio bellCue1
Résultat Microsoft.Xna.Framework.Audio.Cue

emitter public_oe property

public AudioEmitter,Microsoft.Xna.Framework.Audio emitter
Résultat Microsoft.Xna.Framework.Audio.AudioEmitter

listener public_oe property

public AudioListener,Microsoft.Xna.Framework.Audio listener
Résultat Microsoft.Xna.Framework.Audio.AudioListener

pianoCue1 public_oe property

public Cue,Microsoft.Xna.Framework.Audio pianoCue1
Résultat Microsoft.Xna.Framework.Audio.Cue

searchCue public_oe property

public Cue,Microsoft.Xna.Framework.Audio searchCue
Résultat Microsoft.Xna.Framework.Audio.Cue

stringCue1 public_oe property

public Cue,Microsoft.Xna.Framework.Audio stringCue1
Résultat Microsoft.Xna.Framework.Audio.Cue