mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
More refactoring
This commit is contained in:
1 parent
1938d3b876
commit
1805910fac
5 files changed
+26
-24
No files matched your search
@@ -256,7 +256,7 @@ private:
|
||||
int skip_next_samples_ = 0;
|
||||
FixedSizeQueue<s16, 128 * 1024> bgQueue;
|
||||
short *buffer_ = nullptr;
|
||||
SimpleAudio *decoder_ = nullptr;
|
||||
AudioDecoder *decoder_ = nullptr;
|
||||
};
|
||||
|
||||
BackgroundAudio g_BackgroundAudio;
|
||||
@@ -433,7 +433,7 @@ Sample *Sample::Load(const std::string &path) {
|
||||
// mp3_info contains the decoded data.
|
||||
int16_t *sample_data = new int16_t[mp3_info.samples];
|
||||
memcpy(sample_data, mp3_info.buffer, mp3_info.samples * sizeof(int16_t));
|
||||
Sample *sample = new Sample(sample_data, mp3_info.channels, mp3_info.samples, mp3_info.hz);
|
||||
Sample *sample = new Sample(sample_data, mp3_info.channels, (int)mp3_info.samples, mp3_info.hz);
|
||||
free(mp3_info.buffer);
|
||||
delete[] data;
|
||||
return sample;
|
||||
|
||||
Reference in new issue
Block a user