diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2020-07-14 17:42:49 +0100 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2023-12-16 18:49:42 +0000 |
commit | 3090dc060f29865ed41614f61c32eadefe063fcd (patch) | |
tree | e9a0a0ccecf372ebae2e133d5dd9bb959c99870d | |
parent | d8a294c9bb35ab9e6fbbd58c6b7e998fe2271ae2 (diff) |
Revert "snd_codec: Use better type for snd_codec_create mode"virgl-spice
This reverts commit 35be203f42c899175a697c282007990543a1977e.
-rw-r--r-- | common/snd_codec.c | 8 | ||||
-rw-r--r-- | common/snd_codec.h | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/common/snd_codec.c b/common/snd_codec.c index 5f5abcb..b649e5d 100644 --- a/common/snd_codec.c +++ b/common/snd_codec.c @@ -41,7 +41,7 @@ typedef struct SndCodecInternal { - SpiceAudioDataMode mode; + int mode; int frequency; #if HAVE_OPUS @@ -168,8 +168,7 @@ bool snd_codec_is_capable(SpiceAudioDataMode mode, int frequency) snd_codec_destroy is the obvious partner of snd_codec_create. */ -SndCodecResult -snd_codec_create(SndCodec *codec, SpiceAudioDataMode mode, int frequency, int purpose) +SndCodecResult snd_codec_create(SndCodec *codec, int mode, int frequency, int purpose) { SndCodecResult rc = SND_CODEC_UNAVAILABLE; SndCodecInternal **c = codec; @@ -263,8 +262,7 @@ snd_codec_encode(SndCodec codec, uint8_t *in_ptr, int in_size, uint8_t *out_ptr, Returns: SND_CODEC_OK if all went well */ -SndCodecResult -snd_codec_decode(SndCodec codec, uint8_t *in_ptr, int in_size, uint8_t *out_ptr, int *out_size) +SndCodecResult snd_codec_decode(SndCodec codec, uint8_t *in_ptr, int in_size, uint8_t *out_ptr, int *out_size) { #if HAVE_OPUS SndCodecInternal *c = codec; diff --git a/common/snd_codec.h b/common/snd_codec.h index eee91cd..3dbac93 100644 --- a/common/snd_codec.h +++ b/common/snd_codec.h @@ -53,8 +53,7 @@ typedef struct SndCodecInternal * SndCodec; bool snd_codec_is_capable(SpiceAudioDataMode mode, int frequency); -SndCodecResult snd_codec_create(SndCodec *codec, - SpiceAudioDataMode mode, int frequency, int purpose); +SndCodecResult snd_codec_create(SndCodec *codec, int mode, int frequency, int purpose); void snd_codec_destroy(SndCodec *codec); int snd_codec_frame_size(SndCodec codec); |