C# Class TuneBlaster_.GameAudio

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

Public Properties

Property 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

Public Methods

Method 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 method

Starts the thread for base melody modification.
public ChangeBase ( ) : void
return void

ChangeBells() public method

Starts the thread for bell melody modification.
public ChangeBells ( ) : void
return void

ChangeDrums() public method

Starts the thread for piano melody modification.
public ChangeDrums ( ) : void
return void

ChangeHarp() public method

Starts the thread for harp melody modification.
public ChangeHarp ( ) : void
return void

ChangeMelody() public method

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

ChangePiano() public method

Starts the thread for piano melody modification.
public ChangePiano ( ) : void
return void

ChangeStrings() public method

Starts the thread for string melody modification.
public ChangeStrings ( ) : void
return void

ChangeSynth() public method

Starts the thread for synth melody modification.
public ChangeSynth ( ) : void
return void

GameAudio() public method

public GameAudio ( ) : System
return System

Initialise() public method

Plays the initial melody.
public Initialise ( ) : void
return void

InstrChanger() public method

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

ModifyBase() public method

Modifies the initial melody.
public ModifyBase ( ) : void
return void

ModifyBells() public method

Modifies the bell melody.
public ModifyBells ( ) : void
return void

ModifyDrums() public method

Modifies the drum loop.
public ModifyDrums ( ) : void
return void

ModifyHarp() public method

Modifies the harp melody.
public ModifyHarp ( ) : void
return void

ModifyPiano() public method

Modifies the piano melody.
public ModifyPiano ( ) : void
return void

ModifyStrings() public method

Modifies the string melody.
public ModifyStrings ( ) : void
return void

ModifySynth() public method

Modifies the synth melody.
public ModifySynth ( ) : void
return void

ResumeThreads() public method

Resume any threads currently suspended
public ResumeThreads ( ) : void
return void

SuspendThreads() public method

Suspend any threads currently executing
public SuspendThreads ( ) : void
return void

UpdateAudio() public method

Updates the audio in the game.
public UpdateAudio ( ) : void
return void

disposeBallCues() public method

Dispose of all the ball noise cues in memory
public disposeBallCues ( ) : void
return void

disposeBaseCues() public method

Dispose of all the base melody cues in memory
public disposeBaseCues ( ) : void
return void

disposeBellCues() public method

Dispose of all the bell cues in memory
public disposeBellCues ( ) : void
return void

disposeDrumCues() public method

Dispose of all the drum cues in memory
public disposeDrumCues ( ) : void
return void

disposeHarpCues() public method

Dispose of all the harp cues in memory
public disposeHarpCues ( ) : void
return void

disposePianoCues() public method

Dispose of all the piano cues in memory
public disposePianoCues ( ) : void
return void

disposeSpecialCues() public method

Dispose of all the special mode cues in memory
public disposeSpecialCues ( ) : void
return void

disposeStringCues() public method

Dispose of all the string cues in memory
public disposeStringCues ( ) : void
return void

disposeSynthCues() public method

Dispose of all the synth cues in memory
public disposeSynthCues ( ) : void
return void

pauseAllCues() public method

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

resetBallCues() public method

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

resetBaseCues() public method

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

resetBellCues() public method

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

resetDrumCues() public method

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

resetHarpCues() public method

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

resetPianoCues() public method

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

resetSpecialCues() public method

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

resetStringCues() public method

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

resetSynthCues() public method

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

resumeAllCues() public method

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

setPosition() public method

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

Property Details

Alter public property

public Thread Alter
return Thread

Base public property

public Thread Base
return Thread

Drums public property

public Thread Drums
return Thread

Harps public property

public Thread Harps
return Thread

Strings public property

public Thread Strings
return Thread

Synth public property

public Thread Synth
return Thread

ballColour public property

public Image.value ballColour
return Image.value

baseCue1 public property

public Cue,Microsoft.Xna.Framework.Audio baseCue1
return Microsoft.Xna.Framework.Audio.Cue

bellCue1 public property

public Cue,Microsoft.Xna.Framework.Audio bellCue1
return Microsoft.Xna.Framework.Audio.Cue

emitter public property

public AudioEmitter,Microsoft.Xna.Framework.Audio emitter
return Microsoft.Xna.Framework.Audio.AudioEmitter

listener public property

public AudioListener,Microsoft.Xna.Framework.Audio listener
return Microsoft.Xna.Framework.Audio.AudioListener

pianoCue1 public property

public Cue,Microsoft.Xna.Framework.Audio pianoCue1
return Microsoft.Xna.Framework.Audio.Cue

searchCue public property

public Cue,Microsoft.Xna.Framework.Audio searchCue
return Microsoft.Xna.Framework.Audio.Cue

stringCue1 public property

public Cue,Microsoft.Xna.Framework.Audio stringCue1
return Microsoft.Xna.Framework.Audio.Cue