twn_audio: rework interface
This commit is contained in:
@ -36,11 +36,13 @@ union AudioContext {
|
||||
|
||||
|
||||
typedef struct AudioChannel {
|
||||
PlayAudioArgs args;
|
||||
AudioFileType file_type;
|
||||
union AudioContext context; /* interpreted by `file_type` value */
|
||||
const char *path;
|
||||
const char *name;
|
||||
bool repeat;
|
||||
float volume;
|
||||
float panning;
|
||||
} AudioChannel;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user