|
| constexpr | GroupRef (GroupRaw resource) noexcept |
| | Constructs from raw Group. More...
|
| |
| constexpr | GroupRef (const Group &resource) noexcept |
| | Constructs from Group. More...
|
| |
| constexpr | GroupRef (Group &&resource) noexcept |
| | Constructs from Group. More...
|
| |
|
constexpr | GroupRef (const GroupRef &other) noexcept |
| | Copy constructor.
|
| |
|
constexpr | GroupRef (GroupRef &&other) noexcept |
| | Move constructor.
|
| |
|
| ~GroupRef () |
| | Destructor.
|
| |
|
GroupRef & | operator= (const GroupRef &other) noexcept |
| | Assignment operator.
|
| |
|
constexpr | operator GroupRaw () const noexcept |
| | Converts to GroupRaw.
|
| |
|
constexpr | Group (std::nullptr_t=nullptr) noexcept |
| | Default ctor.
|
| |
| constexpr | Group (GroupRaw resource) noexcept |
| | Constructs from raw Group. More...
|
| |
|
constexpr | Group (const Group &other) noexcept=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. More...
|
| |
|
constexpr | Group (std::nullptr_t=nullptr) noexcept |
| | Default ctor.
|
| |
| constexpr | Group (GroupRaw resource) noexcept |
| | Constructs from raw Group. More...
|
| |
|
constexpr | Group (const Group &other) noexcept=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. More...
|
| |
|
| ~Group () |
| | Destructor.
|
| |
|
constexpr Group & | operator= (Group &&other) noexcept |
| | Assignment operator.
|
| |
|
Group & | operator= (const Group &other)=delete |
| | Assignment operator.
|
| |
|
constexpr GroupRaw | get () const noexcept |
| | Retrieves underlying GroupRaw.
|
| |
|
constexpr GroupRaw | release () noexcept |
| | Retrieves underlying GroupRaw and clear this.
|
| |
|
constexpr auto | operator<=> (const Group &other) const noexcept=default |
| | Comparison.
|
| |
|
constexpr | operator bool () const noexcept |
| | Converts to bool.
|
| |
| void | Destroy () |
| | Destroy a mixing group. More...
|
| |
| PropertiesRef | GetProperties () |
| | Get the properties associated with a group. More...
|
| |
| MixerRef | GetMixer () |
| | Get the Mixer that owns a Group. More...
|
| |
| void | SetPostMixCallback (GroupMixCallback cb, void *userdata) |
| | Set a callback that fires when a mixer group has completed mixing. More...
|
| |
This does not take ownership!
Tracks are assigned to a mixing group (or if unassigned, they live in a mixer's internal default group). All tracks in a group are mixed together and the app can access this mixed data before it is mixed with all other groups to produce the final output.
This can be a useful feature, but is completely optional; apps can ignore mixing groups entirely and still have a full experience with SDL_mixer.
After creating a group, assign tracks to it with Track.SetGroup(). Use Group.SetPostMixCallback() to access the group's mixed data.
A mixing group can be destroyed with Group.Destroy() when no longer needed. Destroying the mixer will also destroy all its still-existing mixing groups.
- Parameters
-
| mixer | the mixer on which to create a mixing group. |
- Postcondition
- a newly-created mixing group on success.
- Exceptions
-
- Thread safety:
- It is safe to call this function from any thread.
- Since
- This function is available since SDL_mixer 3.0.0.
- See also
- Group.Destroy
-
Track.SetGroup
-
Group.SetPostMixCallback