Audio decoder now takes a "sequence" offset to feed to the WMAPro decoder.

This commit is contained in:
Dr. Chat
2015-05-28 21:57:57 -05:00
parent 0050b3df83
commit 4675a1e17a
2 changed files with 7 additions and 8 deletions

View File

@@ -38,7 +38,8 @@ class AudioDecoder {
int Initialize(int bits);
int PreparePacket(uint8_t* input, size_t size, int sample_rate, int channels);
int PreparePacket(uint8_t* input, size_t seq_offset, size_t size,
int sample_rate, int channels);
void DiscardPacket();
int DecodePacket(uint8_t* output, size_t offset, size_t size);
@@ -54,7 +55,6 @@ class AudioDecoder {
size_t current_frame_pos_;
uint8_t* current_frame_;
uint32_t frame_samples_size_;
int offset_;
uint8_t packet_data_[XMAContextData::kBytesPerBlock];
};