Class responsible for managing audio clips.
More...
#include <audioclip.h>
Class responsible for managing audio clips.
◆ AudioClip()
| fireworks::audio::AudioClip::AudioClip |
( |
const std::string & |
filePath | ) |
|
Creates a audio clip to play in your application.
- Parameters
-
| filePath | The file path of the audio clip |
- Note
- currently only supports .WAV files
◆ ~AudioClip()
| fireworks::audio::AudioClip::~AudioClip |
( |
| ) |
|
◆ didPlayonce()
| bool fireworks::audio::AudioClip::didPlayonce |
( |
| ) |
const |
|
inline |
Tells whether if the audio clip did play at least once.
◆ getAudioFormat()
| std::uint32_t fireworks::audio::AudioClip::getAudioFormat |
( |
| ) |
const |
|
inline |
Gets the audio format of the audio clip.
- Note
- formats include 8-bit mono/stereo or 16-bit mono/stereo
◆ getBPS()
| std::uint32_t fireworks::audio::AudioClip::getBPS |
( |
| ) |
const |
|
inline |
Gets the bits per second of the audio clip.
◆ getBuffer()
| ALuint fireworks::audio::AudioClip::getBuffer |
( |
| ) |
const |
|
inline |
Gets the Buffer of the audio clip data.
◆ getClipSizeinKB()
| std::uint32_t fireworks::audio::AudioClip::getClipSizeinKB |
( |
| ) |
const |
|
inline |
Gets the the clip size in Kb.
◆ getSampleRate()
| std::uint32_t fireworks::audio::AudioClip::getSampleRate |
( |
| ) |
const |
|
inline |
Gets the sample rate of the audio clip.
◆ getSource()
| ALuint fireworks::audio::AudioClip::getSource |
( |
| ) |
const |
|
inline |
Gets the Source ID of the audio source that plays the clip.
◆ isLooping()
| bool fireworks::audio::AudioClip::isLooping |
( |
| ) |
|
|
inline |
Tells whether the audio clip is in looping state or not.
◆ isPaused()
| bool fireworks::audio::AudioClip::isPaused |
( |
| ) |
|
|
inline |
Tells whether the audio clip is paused or not.
◆ isPlaying()
| bool fireworks::audio::AudioClip::isPlaying |
( |
| ) |
|
|
inline |
Tells whether the audio clip is playing or not.
◆ isStopped()
| bool fireworks::audio::AudioClip::isStopped |
( |
| ) |
|
|
inline |
Tells whether the audio clip is stopped or not.
◆ Loop()
| void fireworks::audio::AudioClip::Loop |
( |
| ) |
|
Play the Source in Looping mode in any loop.
◆ Pause()
| void fireworks::audio::AudioClip::Pause |
( |
| ) |
|
◆ Play()
| void fireworks::audio::AudioClip::Play |
( |
| ) |
|
Play, Replay, or Resume a Source.
◆ PlayOnce()
| void fireworks::audio::AudioClip::PlayOnce |
( |
| ) |
|
Play the Source Once in any loop.
◆ PlayOnceOnly()
| void fireworks::audio::AudioClip::PlayOnceOnly |
( |
| ) |
|
Play the Source only Once in any loop.
◆ Replay()
| void fireworks::audio::AudioClip::Replay |
( |
| ) |
|
Rewind a Source (set playback position to beginning)
◆ Stop()
| void fireworks::audio::AudioClip::Stop |
( |
| ) |
|
◆ gain
| int fireworks::audio::AudioClip::gain |
Sets the gain of the audio source.
◆ pitch
| int fireworks::audio::AudioClip::pitch |
Sets the pitch of the audio source.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/audio/audioclip.h
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/audio/audioclip.cpp