Skip to content

Commit

Permalink
Adjusted documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lizzyd710 authored and Bogi79 committed Jun 1, 2022
1 parent f9ff967 commit 3e5a881
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions src/services/AudioMixer.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,30 +121,30 @@ public:
void play(const SoundtrackID &id, const Coordinate3D &position);

/**
* @brief Plays a Soundtrack given its ID and applies effect to it
* @brief Plays a Soundtrack given its ID and applies reverb to it
* @param id the SoundtrackID
* @param reverb_properties properties of standard reverb
*/
void play(const SoundtrackID &id, const StandardReverbProperties &reverb_properties);

/**
* @brief Plays a Soundtrack given its ID and applies effect to it
* @brief Plays a Soundtrack given its ID and applies echo to it
* @param id the SoundtrackID
* @param echo_properties properties of echo
*/
void play(const SoundtrackID &id, const EchoProperties &echo_properties);

/**
* @brief Plays a Soundtrack from a trigger and applies effect to it
* @brief Plays a Soundtrack from a trigger and applies reverb to it
* @param trigger the AudioTrigger
* @param reverb_properties properties of standard reverb
*/
void play(const AudioTrigger &trigger, const StandardReverbProperties &reverb_properties);

/**
* @brief Plays a Soundtrack from a trigger and applies effect to it
* @brief Plays a Soundtrack from a trigger and applies echo to it
* @param trigger the AudioTrigger
* @param echo_properties properties of standard reverb
* @param echo_properties properties of echo
*/
void play(const AudioTrigger &trigger, const EchoProperties &echo_properties);

Expand All @@ -157,15 +157,15 @@ public:
void play(const AudioTrigger &trigger, const Coordinate3D &position);

/**
* @brief Plays a 3D Soundtrack given its ID and applies effect to it
* @brief Plays a 3D Soundtrack given its ID and applies reverb to it
* @param id the SoundtrackID
* @param position the Coordinate3D position of the sound
* @param reverb_properties properties of standard reverb
*/
void play(const SoundtrackID &id, const Coordinate3D &position, const StandardReverbProperties &reverb_properties);

/**
* @brief Plays a 3D Soundtrack given its ID and applies effect to it
* @brief Plays a 3D Soundtrack given its ID and applies echo to it
* @param id the SoundtrackID
* @param position the Coordinate3D position of the sound
* @param echo_properties properties of echo
Expand All @@ -174,24 +174,25 @@ public:
void play(const SoundtrackID &id, const Coordinate3D &position, const EchoProperties &echo_properties);

/**
* @brief Plays a 3D Soundtrack from a trigger and applies effect to it
* @brief Plays a 3D Soundtrack from a trigger and applies reverb to it
* @param trigger the AudioTrigger
* @param position the Coordinate3D position of the sound
* @param reverb_properties properties of standard reverb
*/
void play(const AudioTrigger &trigger, const Coordinate3D &position, const StandardReverbProperties &reverb_properties);

/**
* @brief Plays a 3D Soundtrack from a trigger and applies effect to it
* @brief Plays a 3D Soundtrack from a trigger and applies echo to it
* @param trigger the AudioTrigger
* @param position the Coordinate3D position of the sound
* @param echo_properties properties of echo
*/
void play(const AudioTrigger &trigger, const Coordinate3D &position, const EchoProperties &echo_properties);

/**
* @brief stops all sounds
* @param isMuted is muted
* @brief toggles the mute option for sounds
* @param isMuted true to mute all sounds, false to unmute
* @throws UnimplementedError Currently throws UnimplementedError on function call
*/
void setMuted(bool isMuted);

Expand All @@ -207,6 +208,8 @@ public:

/**
* @pre GameClock must be initialized
* @throws ConfigurationError if there is a problem opening the audio config file
* @throws AudioError if OpenAL context cannot be initialized or an OpenAL error occurs
*/
AudioMixer();
~AudioMixer();
Expand Down Expand Up @@ -265,20 +268,23 @@ private:
/**
* @brief Plays the Soundtrack
* @param soundtrack the Soundtrack
* @throws AudioError if track is invalid or its source is uninitialized
*/
void playSoundtrack(SoundtrackUPtr &soundtrack);

/**
* @brief Plays the Soundtrack with reverb
* @param soundtrack the Soundtrack
* @param reverb_properties of reverb effect
* @throws AudioError if track is invalid, its source is uninitialized, or reverb effect could not be applied
*/
void playSoundtrackWithReverb(SoundtrackUPtr &soundtrack, const StandardReverbProperties &reverb_properties);

/**
* @brief Plays the Soundtrack with echo
* @param soundtrack the Soundtrack
* @param echo_properties of echo effect
* @throws AudioError if track is invalid, its source is uninitialized, or echo effect could not be applied
*/
void playSoundtrackWithEcho(SoundtrackUPtr &soundtrack, const EchoProperties &echo_properties);

Expand Down

0 comments on commit 3e5a881

Please sign in to comment.