|
SDL3pp
A slim C++ wrapper for SDL3
|
An opaque object that represents a grouping of tracks. More...
Public Member Functions | |
| constexpr | Group (GroupRaw resource) noexcept |
| Constructs from raw Group. | |
| constexpr | Group (const Group &other)=delete |
| Copy constructor. | |
| constexpr | Group (Group &&other) noexcept |
| Move constructor. | |
| constexpr | Group (const GroupRef &other)=delete |
| constexpr | Group (GroupRef &&other)=delete |
| Group (MixerRef mixer) | |
| Create a mixing group. | |
| ~Group () | |
| Destructor. | |
| constexpr Group & | operator= (Group &&other) noexcept |
| Assignment operator. | |
| Group & | operator= (const Group &other)=delete |
| Assignment operator. | |
| void | Destroy () |
| Destroy a mixing group. | |
| PropertiesRef | GetProperties () |
| Get the properties associated with a group. | |
| MixerRef | GetMixer () |
| Get the Mixer that owns a Group. | |
| void | SetPostMixCallback (GroupMixCallback cb, void *userdata) |
| Set a callback that fires when a mixer group has completed mixing. | |
| constexpr | ResourceBase (RawPointer resource) |
| Constructs from resource pointer. | |
| constexpr | ResourceBase (std::nullptr_t=nullptr) |
| Constructs null/invalid. | |
| Public Member Functions inherited from SDL::ResourceBase< GroupRaw > | |
| constexpr | ResourceBase (RawPointer resource) |
| Constructs from resource pointer. | |
| constexpr | operator bool () const |
| Converts to bool. | |
| constexpr auto | operator<=> (const ResourceBase &other) const=default |
| Comparison. | |
| constexpr RawConstPointer | operator-> () const noexcept |
| member access to underlying resource pointer. | |
| constexpr RawPointer | get () const noexcept |
| Retrieves underlying resource pointer. | |
| constexpr RawPointer | release () noexcept |
| Retrieves underlying resource pointer and clear this. | |
Additional Inherited Members | |
| Public Types inherited from SDL::ResourceBase< GroupRaw > | |
| using | RawPointer |
| The underlying raw pointer type. | |
| using | RawConstPointer |
| The underlying const raw pointer type. | |
An opaque object that represents a grouping of tracks.
SDL_mixer offers callbacks at various stages of the mixing pipeline to allow apps to view and manipulate data as it is transformed. Sometimes it is useful to hook in at a point where several tracks–but not all tracks– have been mixed. For example, when a game is in some options menu, perhaps adjusting game audio but not UI sounds could be useful.
SDL_mixer allows you to assign several tracks to a group, and receive a callback when that group has finished mixing, with a buffer of just that group's mixed audio, before it mixes into the final output.
|
inlineexplicitconstexprnoexcept |