LMMS
Loading...
Searching...
No Matches
ad_minimp3.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "ad_plugin.h"
#include "CarlaDefines.h"
#include "minimp3_ex.h"

Classes

struct  minimp3_audio_decoder

Macros

#define MINIMP3_FLOAT_OUTPUT
#define MINIMP3_IMPLEMENTATION

Functions

static void err_to_string (int err_code, char *buf)
static int ad_info_minimp3 (void *sf, struct adinfo *nfo)
static voidad_open_minimp3 (const char *filename, struct adinfo *nfo)
static int ad_close_minimp3 (void *sf)
static int64_t ad_seek_minimp3 (void *sf, int64_t pos)
static ssize_t ad_read_minimp3 (void *sf, float *d, size_t len)
static int ad_get_bitrate_minimp3 (void *sf)
static int ad_eval_minimp3 (const char *f)
const ad_pluginadp_get_minimp3 ()

Variables

static const ad_plugin ad_minimp3

Macro Definition Documentation

◆ MINIMP3_FLOAT_OUTPUT

#define MINIMP3_FLOAT_OUTPUT

Copyright (C) 2011-2013 Robin Gareus robin.nosp@m.@gar.nosp@m.eus.o.nosp@m.rg Copyright (C) 2014-2023 Filipe Coelho falkt.nosp@m.x@fa.nosp@m.lktx..nosp@m.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 2.1, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

◆ MINIMP3_IMPLEMENTATION

#define MINIMP3_IMPLEMENTATION

Function Documentation

◆ ad_close_minimp3()

int ad_close_minimp3 ( void * sf)
static

◆ ad_eval_minimp3()

int ad_eval_minimp3 ( const char * f)
static

◆ ad_get_bitrate_minimp3()

int ad_get_bitrate_minimp3 ( void * sf)
static

◆ ad_info_minimp3()

int ad_info_minimp3 ( void * sf,
struct adinfo * nfo )
static

◆ ad_open_minimp3()

void * ad_open_minimp3 ( const char * filename,
struct adinfo * nfo )
static

◆ ad_read_minimp3()

ssize_t ad_read_minimp3 ( void * sf,
float * d,
size_t len )
static

◆ ad_seek_minimp3()

int64_t ad_seek_minimp3 ( void * sf,
int64_t pos )
static

◆ adp_get_minimp3()

const ad_plugin * adp_get_minimp3 ( )

◆ err_to_string()

void err_to_string ( int err_code,
char * buf )
static

Variable Documentation

◆ ad_minimp3

const ad_plugin ad_minimp3
static
Initial value:
= {
}
static ssize_t ad_read_minimp3(void *sf, float *d, size_t len)
Definition ad_minimp3.c:125
static void * ad_open_minimp3(const char *filename, struct adinfo *nfo)
Definition ad_minimp3.c:90
static int ad_info_minimp3(void *sf, struct adinfo *nfo)
Definition ad_minimp3.c:74
static int ad_eval_minimp3(const char *f)
Definition ad_minimp3.c:138
static int ad_close_minimp3(void *sf)
Definition ad_minimp3.c:106
static int64_t ad_seek_minimp3(void *sf, int64_t pos)
Definition ad_minimp3.c:118
static int ad_get_bitrate_minimp3(void *sf)
Definition ad_minimp3.c:132