|
Packit |
47f805 |
/*
|
|
Packit |
47f805 |
* Copyright (C) 1999-2010 The L.A.M.E. project
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* Initially written by Michael Hipp, see also AUTHORS and README.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
47f805 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
47f805 |
* License as published by the Free Software Foundation; either
|
|
Packit |
47f805 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
47f805 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
47f805 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
47f805 |
* Library General Public License for more details.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
47f805 |
* License along with this library; if not, write to the
|
|
Packit |
47f805 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
47f805 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
47f805 |
*/
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#ifndef INTERFACE_H_INCLUDED
|
|
Packit |
47f805 |
#define INTERFACE_H_INCLUDED
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#ifdef __cplusplus
|
|
Packit |
47f805 |
extern "C" {
|
|
Packit |
47f805 |
#endif
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#include "common.h"
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
int InitMP3(PMPSTR mp);
|
|
Packit |
47f805 |
int decodeMP3(PMPSTR mp, unsigned char *inmemory, int inmemsize, char *outmemory,
|
|
Packit |
47f805 |
int outmemsize, int *done);
|
|
Packit |
47f805 |
void ExitMP3(PMPSTR mp);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* added decodeMP3_unclipped to support returning raw floating-point values of samples. The representation
|
|
Packit |
47f805 |
of the floating-point numbers is defined in mpg123.h as #define real. It is 64-bit double by default.
|
|
Packit |
47f805 |
No more than 1152 samples per channel are allowed. */
|
|
Packit |
47f805 |
int decodeMP3_unclipped(PMPSTR mp, unsigned char *inmemory, int inmemsize, char *outmemory,
|
|
Packit |
47f805 |
int outmemsize, int *done);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* added remove_buf to support mpglib seeking */
|
|
Packit |
47f805 |
void remove_buf(PMPSTR mp);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* added audiodata_precedesframes to return the number of bitstream frames the audio data will precede the
|
|
Packit |
47f805 |
current frame by for Layer 3 data. Aids seeking.
|
|
Packit |
47f805 |
*/
|
|
Packit |
47f805 |
int audiodata_precedesframes(PMPSTR mp);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* Resets decoding. Aids seeking. */
|
|
Packit |
47f805 |
void decode_reset(PMPSTR mp);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#ifdef __cplusplus
|
|
Packit |
47f805 |
}
|
|
Packit |
47f805 |
#endif
|
|
Packit |
47f805 |
#endif
|