Namespace: dmSound
Language: C++
Type: Defold C++
File: sound.h
Source: engine/sound/src/dmsdk/sound/sound.h
Include: dmsdk/sound/sound.h
Functions for controlling the engine sound mixer from native extensions.
Type: FUNCTION Query group mute state
Parameters
group (dmhash_t) - hash of the mixer group (e.g. hash("master"))Returns
muted (bool) - true if the mixer group is mutedType: ENUM
Members
RESULT_OKRESULT_PARTIAL_DATARESULT_OUT_OF_SOURCESRESULT_EFFECT_NOT_FOUNDRESULT_OUT_OF_INSTANCESRESULT_RESOURCE_LEAKRESULT_OUT_OF_BUFFERSRESULT_INVALID_PROPERTYRESULT_UNKNOWN_SOUND_TYPERESULT_INVALID_STREAM_DATARESULT_OUT_OF_MEMORYRESULT_UNSUPPORTEDRESULT_DEVICE_NOT_FOUNDRESULT_OUT_OF_GROUPSRESULT_NO_SUCH_GROUPRESULT_NOTHING_TO_PLAYRESULT_INIT_ERRORRESULT_FINI_ERRORRESULT_NO_DATARESULT_END_OF_STREAMRESULT_DEVICE_LOSTRESULT_UNKNOWN_ERRORType: FUNCTION Temporarily mute or restore an individual mixer group.
Parameters
group (dmhash_t) - hash of the mixer group (e.g. hash("master"))mute (bool) - true to mute, false to restore audioReturns
result (Result) - RESULT_OK on successType: FUNCTION Convenience toggle for SetGroupMute.
Parameters
group (dmhash_t) - hash of the mixer group (e.g. hash("master"))Returns
result (Result) - RESULT_OK on success