sampleBuffer::decodeSampleMp3 implemented
AudioFileProcessor can now open MP3 samples.
This commit is contained in:
@@ -84,6 +84,14 @@ class LameLibrary {
|
||||
typedef int lame_set_VBR_mean_bitrate_kbps_t(lame_global_flags *, int);
|
||||
typedef int lame_set_VBR_max_bitrate_kbps_t(lame_global_flags *, int);
|
||||
|
||||
typedef int lame_decode_init_t(void);
|
||||
typedef int lame_decode1_headers_t(unsigned char *, int, short *,
|
||||
short *, mp3data_struct *);
|
||||
typedef int lame_decode_headers_t(unsigned char *, int, short *,
|
||||
short *, mp3data_struct *);
|
||||
typedef int lame_decode_t(unsigned char *, int, short *, short *);
|
||||
typedef int lame_decode_exit_t(void);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@@ -123,6 +131,12 @@ class LameLibrary {
|
||||
lame_set_VBR_mean_bitrate_kbps_t *lame_set_VBR_mean_bitrate_kbps;
|
||||
lame_set_VBR_max_bitrate_kbps_t *lame_set_VBR_max_bitrate_kbps;
|
||||
|
||||
lame_decode_init_t *lame_decode_init;
|
||||
lame_decode1_headers_t *lame_decode1_headers;
|
||||
lame_decode_headers_t *lame_decode_headers;
|
||||
lame_decode_t *lame_decode;
|
||||
lame_decode_exit_t *lame_decode_exit;
|
||||
|
||||
private:
|
||||
QLibrary * m_lameLib; // lame .so file
|
||||
|
||||
|
||||
@@ -222,6 +222,8 @@ private:
|
||||
ch_cnt_t & _channels,
|
||||
sample_rate_t & _sample_rate );
|
||||
|
||||
f_cnt_t decodeSampleMp3( QString & file, int_sample_t * & _buf,
|
||||
ch_cnt_t & _channels, sample_rate_t & _samplerate );
|
||||
|
||||
QString m_audioFile;
|
||||
sampleFrame * m_origData;
|
||||
|
||||
Reference in New Issue
Block a user