remove LPCNET_EXPORT

This commit is contained in:
Jean-Marc Valin 2023-06-22 03:41:30 -04:00
parent 3c9ada30ef
commit abf60c33f7
No known key found for this signature in database
GPG key ID: 531A52533318F00A
4 changed files with 47 additions and 60 deletions

View file

@ -45,24 +45,24 @@
#include "lpcnet.h"
LPCNET_EXPORT int lpcnet_encoder_get_size() {
int lpcnet_encoder_get_size() {
return sizeof(LPCNetEncState);
}
LPCNET_EXPORT int lpcnet_encoder_init(LPCNetEncState *st) {
int lpcnet_encoder_init(LPCNetEncState *st) {
memset(st, 0, sizeof(*st));
st->exc_mem = lin2ulaw(0.f);
return 0;
}
LPCNET_EXPORT LPCNetEncState *lpcnet_encoder_create() {
LPCNetEncState *lpcnet_encoder_create() {
LPCNetEncState *st;
st = malloc(lpcnet_encoder_get_size());
lpcnet_encoder_init(st);
return st;
}
LPCNET_EXPORT void lpcnet_encoder_destroy(LPCNetEncState *st) {
void lpcnet_encoder_destroy(LPCNetEncState *st) {
free(st);
}