opengl moment #1
@ -57,7 +57,7 @@ static int64_t get_audio_data(const char *path, unsigned char **data) {
|
||||
|
||||
|
||||
void play_audio(const char *path, const char *channel) {
|
||||
const struct audio_channel_pair *pair = shgetp_null(ctx.audio_channels, channel);
|
||||
const struct audio_channel_item *pair = shgetp_null(ctx.audio_channels, channel);
|
||||
if (!pair)
|
||||
play_audio_ex(path, channel, get_default_audio_args());
|
||||
else
|
||||
@ -166,7 +166,7 @@ static void repeat_audio(struct audio_channel *channel) {
|
||||
|
||||
|
||||
void play_audio_ex(const char *path, const char *channel, t_play_audio_args args) {
|
||||
struct audio_channel_pair *pair = shgetp_null(ctx.audio_channels, channel);
|
||||
struct audio_channel_item *pair = shgetp_null(ctx.audio_channels, channel);
|
||||
|
||||
/* create a channel if it doesn't exist */
|
||||
if (!pair) {
|
||||
@ -191,7 +191,7 @@ void play_audio_ex(const char *path, const char *channel, t_play_audio_args args
|
||||
|
||||
|
||||
t_play_audio_args *get_audio_args(const char *channel) {
|
||||
struct audio_channel_pair *pair = shgetp_null(ctx.audio_channels, channel);
|
||||
struct audio_channel_item *pair = shgetp_null(ctx.audio_channels, channel);
|
||||
if (!pair)
|
||||
return NULL;
|
||||
|
||||
|
@ -44,7 +44,7 @@ struct audio_channel {
|
||||
};
|
||||
|
||||
|
||||
struct audio_channel_pair {
|
||||
struct audio_channel_item {
|
||||
char *key;
|
||||
struct audio_channel value;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user