Implement ESPCM_4 recording

This commit is contained in:
Kagamiin~
2024-03-13 19:28:12 -03:00
parent 416edcf1a5
commit 6fc43a8082
2 changed files with 90 additions and 4 deletions

View File

@@ -152,9 +152,10 @@ typedef struct sb_dsp_t {
uint8_t espcm_sample_idx;
uint8_t espcm_range;
uint8_t espcm_byte_buffer[4];
uint8_t espcm_code_buffer[10]; /* used for ESPCM_3 */
uint8_t espcm_table_index; /* used for ESPCM_3 */
uint8_t espcm_last_value; /* used for ESPCM_3 */
uint8_t espcm_code_buffer[19]; /* used for ESPCM_3 and for ESPCM_4 recording */
int8_t espcm_sample_buffer[19]; /* used for ESPCM_4 recording */
uint8_t espcm_table_index; /* used for ESPCM_3 */
uint8_t espcm_last_value; /* used for ESPCM_3 */
mpu_t *mpu;
} sb_dsp_t;