audio_set() -> audio_set_parameter(), with string based convention
This commit is contained in:
@ -15,13 +15,8 @@ TWN_API void audio_play(const char *path,
|
||||
float volume, /* default: 1.0f, range: 0.0f to 1.0f */
|
||||
float panning); /* default: 0.0f, range: -1.0 to 1.0f */
|
||||
|
||||
typedef enum {
|
||||
AUDIO_PARAM_REPEAT,
|
||||
AUDIO_PARAM_VOLUME,
|
||||
AUDIO_PARAM_PANNING,
|
||||
} AudioParam;
|
||||
|
||||
TWN_API void audio_set(const char *channel, AudioParam param, float value);
|
||||
/* possible parameter options: "volume", "panning", "repeat" */
|
||||
TWN_API void audio_set_parameter(const char *channel, const char *parameter, float value);
|
||||
|
||||
/* TODO */
|
||||
// TWN_API bool audio_ended(const char *channel);
|
||||
|
Reference in New Issue
Block a user