diff options
Diffstat (limited to 'modules/g7221')
-rw-r--r-- | modules/g7221/decode.c | 3 | ||||
-rw-r--r-- | modules/g7221/encode.c | 2 | ||||
-rw-r--r-- | modules/g7221/g7221.h | 5 |
3 files changed, 6 insertions, 4 deletions
diff --git a/modules/g7221/decode.c b/modules/g7221/decode.c index 0f7155f..298a8ae 100644 --- a/modules/g7221/decode.c +++ b/modules/g7221/decode.c @@ -48,7 +48,8 @@ int g7221_decode_update(struct audec_state **adsp, const struct aucodec *ac, } -int g7221_decode(struct audec_state *ads, int16_t *sampv, size_t *sampc, +int g7221_decode(struct audec_state *ads, + int fmt, void *sampv, size_t *sampc, const uint8_t *buf, size_t len) { size_t framec; diff --git a/modules/g7221/encode.c b/modules/g7221/encode.c index 8345f5f..8dec82f 100644 --- a/modules/g7221/encode.c +++ b/modules/g7221/encode.c @@ -50,7 +50,7 @@ int g7221_encode_update(struct auenc_state **aesp, const struct aucodec *ac, int g7221_encode(struct auenc_state *aes, uint8_t *buf, size_t *len, - const int16_t *sampv, size_t sampc) + int fmt, const void *sampv, size_t sampc) { size_t framec; diff --git a/modules/g7221/g7221.h b/modules/g7221/g7221.h index 635fc01..2c16d4c 100644 --- a/modules/g7221/g7221.h +++ b/modules/g7221/g7221.h @@ -13,13 +13,14 @@ struct g7221_aucodec { int g7221_encode_update(struct auenc_state **aesp, const struct aucodec *ac, struct auenc_param *prm, const char *fmtp); int g7221_encode(struct auenc_state *aes, uint8_t *buf, size_t *len, - const int16_t *sampv, size_t sampc); + int fmt, const void *sampv, size_t sampc); /* Decode */ int g7221_decode_update(struct audec_state **adsp, const struct aucodec *ac, const char *fmtp); -int g7221_decode(struct audec_state *ads, int16_t *sampv, size_t *sampc, +int g7221_decode(struct audec_state *ads, + int fmt, void *sampv, size_t *sampc, const uint8_t *buf, size_t len); |