diff --git a/src/engine/fileOps/pps.cpp b/src/engine/fileOps/pps.cpp index 37f4a8644..6c0ded2de 100644 --- a/src/engine/fileOps/pps.cpp +++ b/src/engine/fileOps/pps.cpp @@ -92,23 +92,14 @@ void DivEngine::loadPPS(SafeReader& reader, std::vector& ret, String s->rate = PPS_SAMPLE_RATE; s->centerRate = PPS_SAMPLE_RATE; - s->depth = DIV_SAMPLE_DEPTH_8BIT; - s->init(headers[i].sample_length * 2); //byte per sample + s->depth = DIV_SAMPLE_DEPTH_4BIT; + s->init(headers[i].sample_length*2); //byte per sample reader.seek((int)headers[i].start_pointer, SEEK_SET); - int sample_pos = 0; - for(int j = 0; j < headers[i].sample_length; j++) { - unsigned char curr_byte = (unsigned char)reader.readC(); - - s->data8[sample_pos] = (curr_byte >> 4) | (curr_byte & 0xf0); - s->data8[sample_pos] += 0x80; - sample_pos++; - s->data8[sample_pos] = (curr_byte << 4) | (curr_byte & 0xf); - s->data8[sample_pos] += 0x80; - sample_pos++; + s->data4[j] = reader.readC(); } ret.push_back(s);