CoriEngine
Loading...
Searching...
No Matches
Cori::Audio Namespace Reference

Everything connected to audio is in this namespace. More...

Classes

class  Mixer
 Mixer is responsible for mixing all the sounds, it is a global object and there can only be one Mixer. More...
struct  PlayParams
 Parameters to be used when playing sound, you can mix your audio playback however you want with these. More...
class  Sound
 Sound asset to be played on a Track. More...
class  Track
 You use Track to play and mix Sound objects. More...

Concepts

concept  IsSoundWithParams

Typedefs

using TrackID = uint16_t
using SoundID = uint32_t
using TrackStopCallbackFn = std::function<void()>
using SoundWithParams = std::pair<std::shared_ptr<Sound>, PlayParams>

Detailed Description

Everything connected to audio is in this namespace.

Typedef Documentation

◆ SoundID

using Cori::Audio::SoundID = uint32_t

Definition at line 6 of file IDDefs.hpp.

◆ SoundWithParams

using Cori::Audio::SoundWithParams = std::pair<std::shared_ptr<Sound>, PlayParams>

Definition at line 11 of file Track.hpp.

◆ TrackID

using Cori::Audio::TrackID = uint16_t

Definition at line 5 of file IDDefs.hpp.

◆ TrackStopCallbackFn

using Cori::Audio::TrackStopCallbackFn = std::function<void()>

Definition at line 10 of file Track.hpp.