--------- Co-authored-by: intelligence <intelligence@debian.local> Reviewed-on: #3
30 lines
575 B
C
30 lines
575 B
C
#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
|