summaryrefslogtreecommitdiff
path: root/apps/codecs/libmusepack/musepack.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libmusepack/musepack.h')
-rw-r--r--apps/codecs/libmusepack/musepack.h29
1 files changed, 18 insertions, 11 deletions
diff --git a/apps/codecs/libmusepack/musepack.h b/apps/codecs/libmusepack/musepack.h
index cd9a983603..d631c6d05d 100644
--- a/apps/codecs/libmusepack/musepack.h
+++ b/apps/codecs/libmusepack/musepack.h
@@ -32,19 +32,18 @@
32 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33*/ 33*/
34 34
35/// \file musepack.h 35/// \file mpcdec.h
36/// Top level include file for libmusepack. 36/// Top level include file for libmpcdec.
37 37
38#ifndef _musepack_h_ 38#ifndef _mpcdec_h_
39#define _musepack_h_ 39#define _mpcdec_h_
40 40
41#ifdef __cplusplus 41#ifdef __cplusplus
42extern "C" { 42extern "C" {
43#endif 43#endif
44 44
45#include <stdbool.h> 45//#include <stdlib.h>
46#include <stdlib.h> 46#include <string.h>
47//#include <string.h>
48 47
49#include "../codec.h" 48#include "../codec.h"
50#include "config_types.h" 49#include "config_types.h"
@@ -98,7 +97,9 @@ void mpc_decoder_setup(mpc_decoder *d, mpc_reader *r);
98/// Call this next after calling mpc_decoder_setup. 97/// Call this next after calling mpc_decoder_setup.
99/// \param si streaminfo structure indicating format of source stream 98/// \param si streaminfo structure indicating format of source stream
100/// \return TRUE if decoder was initalized successfully, FALSE otherwise 99/// \return TRUE if decoder was initalized successfully, FALSE otherwise
101bool mpc_decoder_initialize(mpc_decoder *d, mpc_streaminfo *si); 100mpc_bool_t mpc_decoder_initialize(mpc_decoder *d, mpc_streaminfo *si);
101
102void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si);
102 103
103/// Sets decoder sample scaling factor. All decoded samples will be multiplied 104/// Sets decoder sample scaling factor. All decoded samples will be multiplied
104/// by this factor. 105/// by this factor.
@@ -119,14 +120,20 @@ mpc_uint32_t mpc_decoder_decode(
119 mpc_uint32_t *vbr_update_acc, 120 mpc_uint32_t *vbr_update_acc,
120 mpc_uint32_t *vbr_update_bits); 121 mpc_uint32_t *vbr_update_bits);
121 122
123mpc_uint32_t mpc_decoder_decode_frame(
124 mpc_decoder *d,
125 mpc_uint32_t *in_buffer,
126 mpc_uint32_t in_len,
127 MPC_SAMPLE_FORMAT *out_buffer);
128
122/// Seeks to the specified sample in the source stream. 129/// Seeks to the specified sample in the source stream.
123bool mpc_decoder_seek_sample(mpc_decoder *d, mpc_int64_t destsample); 130mpc_bool_t mpc_decoder_seek_sample(mpc_decoder *d, mpc_int64_t destsample);
124 131
125/// Seeks to specified position in seconds in the source stream. 132/// Seeks to specified position in seconds in the source stream.
126bool mpc_decoder_seek_seconds(mpc_decoder *d, double seconds); 133mpc_bool_t mpc_decoder_seek_seconds(mpc_decoder *d, double seconds);
127 134
128#ifdef __cplusplus 135#ifdef __cplusplus
129} 136}
130#endif // __cplusplus 137#endif // __cplusplus
131 138
132#endif // _musepack_h_ 139#endif // _mpcdec_h_