#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <wchar.h>
#include <errno.h>
Go to the source code of this file.
Classes | |
struct | drmp3 |
struct | drmp3_allocation_callbacks |
struct | drmp3_config |
struct | drmp3_seek_point |
struct | drmp3dec |
struct | drmp3dec_frame_info |
Typedefs | |
typedef drmp3_uint32 | drmp3_bool32 |
typedef drmp3_uint8 | drmp3_bool8 |
typedef signed short | drmp3_int16 |
typedef signed int | drmp3_int32 |
typedef signed long long | drmp3_int64 |
typedef signed char | drmp3_int8 |
typedef size_t(* | drmp3_read_proc) (void *pUserData, void *pBufferOut, size_t bytesToRead) |
typedef drmp3_int32 | drmp3_result |
typedef drmp3_bool32(* | drmp3_seek_proc) (void *pUserData, int offset, drmp3_seek_origin origin) |
typedef unsigned short | drmp3_uint16 |
typedef unsigned int | drmp3_uint32 |
typedef unsigned long long | drmp3_uint64 |
typedef unsigned char | drmp3_uint8 |
typedef drmp3_uint32 | drmp3_uintptr |
#define DRMP3_ACCESS_DENIED -6 |
Definition at line 174 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_ADDRESS_FAMILY_NOT_SUPPORTED -43 |
Definition at line 211 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_ALREADY_CONNECTED -46 |
Definition at line 214 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_ALREADY_EXISTS -8 |
Definition at line 176 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_ALREADY_IN_USE -23 |
Definition at line 191 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_API extern |
Definition at line 162 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_AT_END -53 |
Definition at line 221 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_BAD_ADDRESS -24 |
Definition at line 192 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_BAD_MESSAGE -31 |
Definition at line 199 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_BAD_PIPE -26 |
Definition at line 194 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_BAD_PROTOCOL -39 |
Definition at line 207 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_BAD_SEEK -25 |
Definition at line 193 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_BUSY -19 |
Definition at line 187 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_CANCELLED -51 |
Definition at line 219 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_CONNECTION_REFUSED -48 |
Definition at line 216 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_CONNECTION_RESET -45 |
Definition at line 213 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_DEADLOCK -27 |
Definition at line 195 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_DIRECTORY_NOT_EMPTY -16 |
Definition at line 184 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_DOES_NOT_EXIST -7 |
Definition at line 175 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_END_OF_FILE -17 |
Definition at line 185 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_ERROR -1 /* A generic error. */ |
Definition at line 169 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_FALSE 0 |
Definition at line 135 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_IN_PROGRESS -50 |
Definition at line 218 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_INLINE |
Definition at line 245 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_INTERRUPT -21 |
Definition at line 189 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_INVALID_ARGS -2 |
Definition at line 170 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_INVALID_DATA -33 |
Definition at line 201 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_INVALID_FILE -10 |
Definition at line 178 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_INVALID_OPERATION -3 |
Definition at line 171 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_IO_ERROR -20 |
Definition at line 188 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_IS_DIRECTORY -15 |
Definition at line 183 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_MAX_PCM_FRAMES_PER_MP3_FRAME 1152 |
Definition at line 224 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_MAX_SAMPLES_PER_FRAME (DRMP3_MAX_PCM_FRAMES_PER_MP3_FRAME*2) |
Definition at line 225 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_MEMORY_ALREADY_MAPPED -52 |
Definition at line 220 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NAME_TOO_LONG -13 |
Definition at line 181 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NO_ADDRESS -38 |
Definition at line 206 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NO_DATA_AVAILABLE -32 |
Definition at line 200 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NO_HOST -49 |
Definition at line 217 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NO_MESSAGE -30 |
Definition at line 198 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NO_NETWORK -35 |
Definition at line 203 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NO_SPACE -18 |
Definition at line 186 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NOT_CONNECTED -47 |
Definition at line 215 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NOT_DIRECTORY -14 |
Definition at line 182 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NOT_IMPLEMENTED -29 |
Definition at line 197 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NOT_SOCKET -37 |
Definition at line 205 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_NOT_UNIQUE -36 |
Definition at line 204 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_OUT_OF_MEMORY -4 |
Definition at line 172 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_OUT_OF_RANGE -5 |
Definition at line 173 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_PATH_TOO_LONG -12 |
Definition at line 180 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_PRIVATE static |
Definition at line 163 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_PROTOCOL_FAMILY_NOT_SUPPORTED -42 |
Definition at line 210 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_PROTOCOL_NOT_SUPPORTED -41 |
Definition at line 209 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_PROTOCOL_UNAVAILABLE -40 |
Definition at line 208 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_SOCKET_NOT_SUPPORTED -44 |
Definition at line 212 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_STRINGIFY | ( | x | ) | #x |
Definition at line 93 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_SUCCESS 0 |
Definition at line 168 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_TIMEOUT -34 |
Definition at line 202 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_TOO_BIG -11 |
Definition at line 179 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_TOO_MANY_LINKS -28 |
Definition at line 196 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_TOO_MANY_OPEN_FILES -9 |
Definition at line 177 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_TRUE 1 |
Definition at line 134 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_UNAVAILABLE -22 |
Definition at line 190 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_VERSION_MAJOR 0 |
Definition at line 96 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_VERSION_MINOR 6 |
Definition at line 97 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_VERSION_REVISION 31 |
Definition at line 98 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_VERSION_STRING DRMP3_XSTRINGIFY(DRMP3_VERSION_MAJOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_MINOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_REVISION) |
Definition at line 99 of file rhino/demo/c/dr_libs/dr_mp3.h.
#define DRMP3_XSTRINGIFY | ( | x | ) | DRMP3_STRINGIFY(x) |
Definition at line 94 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef drmp3_uint32 drmp3_bool32 |
Definition at line 133 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef drmp3_uint8 drmp3_bool8 |
Definition at line 132 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef signed short drmp3_int16 |
Definition at line 106 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef signed int drmp3_int32 |
Definition at line 108 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef signed long long drmp3_int64 |
Definition at line 121 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef signed char drmp3_int8 |
Definition at line 104 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef size_t(* drmp3_read_proc) (void *pUserData, void *pBufferOut, size_t bytesToRead) |
Definition at line 310 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef drmp3_int32 drmp3_result |
Definition at line 167 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef drmp3_bool32(* drmp3_seek_proc) (void *pUserData, int offset, drmp3_seek_origin origin) |
Definition at line 324 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef unsigned short drmp3_uint16 |
Definition at line 107 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef unsigned int drmp3_uint32 |
Definition at line 109 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef unsigned long long drmp3_uint64 |
Definition at line 122 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef unsigned char drmp3_uint8 |
Definition at line 105 of file rhino/demo/c/dr_libs/dr_mp3.h.
typedef drmp3_uint32 drmp3_uintptr |
Definition at line 130 of file rhino/demo/c/dr_libs/dr_mp3.h.
enum drmp3_seek_origin |
Definition at line 284 of file rhino/demo/c/dr_libs/dr_mp3.h.
DRMP3_API drmp3_bool32 drmp3_bind_seek_table | ( | drmp3 * | pMP3, |
drmp3_uint32 | seekPointCount, | ||
drmp3_seek_point * | pSeekPoints | ||
) |
Definition at line 62375 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_bool32 drmp3_calculate_seek_points | ( | drmp3 * | pMP3, |
drmp3_uint32 * | pSeekPointCount, | ||
drmp3_seek_point * | pSeekPoints | ||
) |
Definition at line 62286 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API void drmp3_free | ( | void * | p, |
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62549 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_bool32 drmp3_get_mp3_and_pcm_frame_count | ( | drmp3 * | pMP3, |
drmp3_uint64 * | pMP3FrameCount, | ||
drmp3_uint64 * | pPCMFrameCount | ||
) |
Definition at line 62213 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_uint64 drmp3_get_mp3_frame_count | ( | drmp3 * | pMP3 | ) |
Definition at line 62261 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_uint64 drmp3_get_pcm_frame_count | ( | drmp3 * | pMP3 | ) |
Definition at line 62253 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_bool32 drmp3_init | ( | drmp3 * | pMP3, |
drmp3_read_proc | onRead, | ||
drmp3_seek_proc | onSeek, | ||
void * | pUserData, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 61339 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_bool32 drmp3_init_file | ( | drmp3 * | pMP3, |
const char * | pFilePath, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 61917 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_bool32 drmp3_init_file_w | ( | drmp3 * | pMP3, |
const wchar_t * | pFilePath, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 61931 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_bool32 drmp3_init_memory | ( | drmp3 * | pMP3, |
const void * | pData, | ||
size_t | dataSize, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 61387 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API void* drmp3_malloc | ( | size_t | sz, |
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62541 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API float* drmp3_open_and_read_pcm_frames_f32 | ( | drmp3_read_proc | onRead, |
drmp3_seek_proc | onSeek, | ||
void * | pUserData, | ||
drmp3_config * | pConfig, | ||
drmp3_uint64 * | pTotalFrameCount, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62491 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_int16* drmp3_open_and_read_pcm_frames_s16 | ( | drmp3_read_proc | onRead, |
drmp3_seek_proc | onSeek, | ||
void * | pUserData, | ||
drmp3_config * | pConfig, | ||
drmp3_uint64 * | pTotalFrameCount, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62499 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API float* drmp3_open_file_and_read_pcm_frames_f32 | ( | const char * | filePath, |
drmp3_config * | pConfig, | ||
drmp3_uint64 * | pTotalFrameCount, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62524 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_int16* drmp3_open_file_and_read_pcm_frames_s16 | ( | const char * | filePath, |
drmp3_config * | pConfig, | ||
drmp3_uint64 * | pTotalFrameCount, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62532 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API float* drmp3_open_memory_and_read_pcm_frames_f32 | ( | const void * | pData, |
size_t | dataSize, | ||
drmp3_config * | pConfig, | ||
drmp3_uint64 * | pTotalFrameCount, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62507 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_int16* drmp3_open_memory_and_read_pcm_frames_s16 | ( | const void * | pData, |
size_t | dataSize, | ||
drmp3_config * | pConfig, | ||
drmp3_uint64 * | pTotalFrameCount, | ||
const drmp3_allocation_callbacks * | pAllocationCallbacks | ||
) |
Definition at line 62515 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_uint64 drmp3_read_pcm_frames_f32 | ( | drmp3 * | pMP3, |
drmp3_uint64 | framesToRead, | ||
float * | pBufferOut | ||
) |
Definition at line 62041 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_uint64 drmp3_read_pcm_frames_s16 | ( | drmp3 * | pMP3, |
drmp3_uint64 | framesToRead, | ||
drmp3_int16 * | pBufferOut | ||
) |
Definition at line 62070 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API drmp3_bool32 drmp3_seek_to_pcm_frame | ( | drmp3 * | pMP3, |
drmp3_uint64 | frameIndex | ||
) |
Definition at line 62199 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
Definition at line 61946 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API void drmp3_version | ( | drmp3_uint32 * | pMajor, |
drmp3_uint32 * | pMinor, | ||
drmp3_uint32 * | pRevision | ||
) |
Definition at line 59313 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
const DRMP3_API char* drmp3_version_string | ( | void | ) |
Definition at line 59325 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API int drmp3dec_decode_frame | ( | drmp3dec * | dec, |
const drmp3_uint8 * | mp3, | ||
int | mp3_bytes, | ||
void * | pcm, | ||
drmp3dec_frame_info * | info | ||
) |
Definition at line 60859 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
DRMP3_API void drmp3dec_f32_to_s16 | ( | const float * | in, |
drmp3_int16 * | out, | ||
size_t | num_samples | ||
) |
Definition at line 60945 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.
Definition at line 60855 of file porcupine/demo/c/pvrecorder/src/miniaudio/extras/miniaudio_split/miniaudio.c.