feat:mp3 (#3)
--------- Co-authored-by: intelligence <intelligence@debian.local> Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
1 parent
32e7f32e0a
commit
64b9d704fb
25 files changed
+488
-98
No files matched your search
+29
@@ -0,0 +1,29 @@
|
||||
#ifndef TRANSUI_MP3_H
|
||||
#define TRANSUI_MP3_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum {
|
||||
TRANSUI_MP3_OK = 0,
|
||||
TRANSUI_MP3_INVALID_INPUT = 1,
|
||||
TRANSUI_MP3_ENCODER_ERROR = 2,
|
||||
TRANSUI_MP3_OUT_OF_MEMORY = 3,
|
||||
};
|
||||
|
||||
int transui_mp3_encode_mono_16k_32kbps(const uint8_t *pcm_le,
|
||||
size_t pcm_byte_count,
|
||||
uint8_t **output,
|
||||
size_t *output_size);
|
||||
|
||||
void transui_mp3_free(void *memory);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user