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

Classes

struct  drmp3_audio_decoder

Macros

#define DR_MP3_FLOAT_OUTPUT
#define DR_MP3_IMPLEMENTATION
#define DRMP3_DATA_CHUNK_SIZE   DRMP3_MIN_DATA_CHUNK_SIZE*40
#define DR_MP3_MAX_SEEK_POINTS   500

Functions

static int ad_info_dr_mp3 (void *sf, struct adinfo *nfo)
static voidad_open_dr_mp3 (const char *filename, struct adinfo *nfo)
static int ad_close_dr_mp3 (void *sf)
static int64_t ad_seek_dr_mp3 (void *sf, int64_t pos)
static ssize_t ad_read_dr_mp3 (void *sf, float *d, size_t len)
static int ad_get_bitrate_dr_mp3 (void *sf)
static int ad_eval_dr_mp3 (const char *f)
const ad_pluginadp_get_dr_mp3 ()

Variables

static const ad_plugin ad_dr_mp3

Macro Definition Documentation

◆ DR_MP3_FLOAT_OUTPUT

#define DR_MP3_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

◆ DR_MP3_IMPLEMENTATION

#define DR_MP3_IMPLEMENTATION

◆ DR_MP3_MAX_SEEK_POINTS

#define DR_MP3_MAX_SEEK_POINTS   500

◆ DRMP3_DATA_CHUNK_SIZE

#define DRMP3_DATA_CHUNK_SIZE   DRMP3_MIN_DATA_CHUNK_SIZE*40

Function Documentation

◆ ad_close_dr_mp3()

int ad_close_dr_mp3 ( void * sf)
static

◆ ad_eval_dr_mp3()

int ad_eval_dr_mp3 ( const char * f)
static

◆ ad_get_bitrate_dr_mp3()

int ad_get_bitrate_dr_mp3 ( void * sf)
static

◆ ad_info_dr_mp3()

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

◆ ad_open_dr_mp3()

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

◆ ad_read_dr_mp3()

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

◆ ad_seek_dr_mp3()

int64_t ad_seek_dr_mp3 ( void * sf,
int64_t pos )
static

◆ adp_get_dr_mp3()

const ad_plugin * adp_get_dr_mp3 ( )

Variable Documentation

◆ ad_dr_mp3

const ad_plugin ad_dr_mp3
static
Initial value:
= {
}
static int64_t ad_seek_dr_mp3(void *sf, int64_t pos)
Definition ad_dr_mp3.c:89
static void * ad_open_dr_mp3(const char *filename, struct adinfo *nfo)
Definition ad_dr_mp3.c:62
static int ad_info_dr_mp3(void *sf, struct adinfo *nfo)
Definition ad_dr_mp3.c:46
static int ad_eval_dr_mp3(const char *f)
Definition ad_dr_mp3.c:109
static int ad_close_dr_mp3(void *sf)
Definition ad_dr_mp3.c:77
static int ad_get_bitrate_dr_mp3(void *sf)
Definition ad_dr_mp3.c:103
static ssize_t ad_read_dr_mp3(void *sf, float *d, size_t len)
Definition ad_dr_mp3.c:96