diff options
author | wm4 <wm4@nowhere> | 2014-07-20 20:42:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-20 20:42:03 +0200 |
commit | 9736f3309acf387e42aef847f594463e3351bbc2 (patch) | |
tree | ff3feecdb9dbbec909ed18c681e8a3047277a6d6 /audio/decode/dec_audio.h | |
parent | e982b5b287d1a178bea444c6d0f81a877db2d0c9 (diff) | |
download | mpv-9736f3309acf387e42aef847f594463e3351bbc2.tar.bz2 mpv-9736f3309acf387e42aef847f594463e3351bbc2.tar.xz |
audio: use symbolic constants instead of magic integers
Similar to commit 26468743.
Diffstat (limited to 'audio/decode/dec_audio.h')
-rw-r--r-- | audio/decode/dec_audio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/decode/dec_audio.h b/audio/decode/dec_audio.h index 9108f6f035..27c2040947 100644 --- a/audio/decode/dec_audio.h +++ b/audio/decode/dec_audio.h @@ -51,6 +51,13 @@ struct dec_audio { void *priv; }; +enum { + AD_OK = 0, + AD_ERR = -1, + AD_NEW_FMT = -2, + AD_ASYNC_PLAY_DONE = -3, +}; + struct mp_decoder_list *audio_decoder_list(void); int audio_init_best_codec(struct dec_audio *d_audio, char *audio_decoders); int audio_decode(struct dec_audio *d_audio, struct mp_audio_buffer *outbuf, |