rename *_pair to *_item, as it's the convention used before
This commit is contained in:
parent
b280243d30
commit
34cf504b2b
@ -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) {
|
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)
|
if (!pair)
|
||||||
play_audio_ex(path, channel, get_default_audio_args());
|
play_audio_ex(path, channel, get_default_audio_args());
|
||||||
else
|
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) {
|
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 */
|
/* create a channel if it doesn't exist */
|
||||||
if (!pair) {
|
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) {
|
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)
|
if (!pair)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ struct audio_channel {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct audio_channel_pair {
|
struct audio_channel_item {
|
||||||
char *key;
|
char *key;
|
||||||
struct audio_channel value;
|
struct audio_channel value;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user