diff --git a/App/audio.c b/App/audio.c index 28265aea..bb2c6073 100644 --- a/App/audio.c +++ b/App/audio.c @@ -306,7 +306,7 @@ static void LoadVoiceSamples() { gVoiceBuf[gVoiceBufWriteIndex][i] = VOICE_SAMPLES[Buf[i]]; } - VOCIE_BUF_ForwardWriteIndex(); + VOICE_BUF_ForwardWriteIndex(); gVoiceBufLen++; } diff --git a/App/driver/voice.c b/App/driver/voice.c index 92fa0636..e54bab5a 100644 --- a/App/driver/voice.c +++ b/App/driver/voice.c @@ -97,7 +97,7 @@ void VOICE_Start() if (gVoiceBufLen > 0) { memcpy(DAC_Buf, gVoiceBuf[gVoiceBufReadIndex], VOICE_BUF_SIZE); - VOCIE_BUF_ForwardReadIndex(); + VOICE_BUF_ForwardReadIndex(); gVoiceBufLen--; } else @@ -110,7 +110,7 @@ void VOICE_Start() gVoiceBuf[gVoiceBufReadIndex], // VOICE_BUF_SIZE // ); - VOCIE_BUF_ForwardReadIndex(); + VOICE_BUF_ForwardReadIndex(); gVoiceBufLen--; } else @@ -141,7 +141,7 @@ void DMA1_Channel2_3_IRQHandler() if (gVoiceBufLen > 0) { memcpy(DAC_Buf, gVoiceBuf[gVoiceBufReadIndex], VOICE_BUF_SIZE); - VOCIE_BUF_ForwardReadIndex(); + VOICE_BUF_ForwardReadIndex(); gVoiceBufLen--; } else @@ -158,7 +158,7 @@ void DMA1_Channel2_3_IRQHandler() gVoiceBuf[gVoiceBufReadIndex], // VOICE_BUF_SIZE // ); - VOCIE_BUF_ForwardReadIndex(); + VOICE_BUF_ForwardReadIndex(); gVoiceBufLen--; } else diff --git a/App/driver/voice.h b/App/driver/voice.h index 8c49aa73..77c819cf 100644 --- a/App/driver/voice.h +++ b/App/driver/voice.h @@ -26,12 +26,12 @@ extern uint8_t gVoiceBufReadIndex; extern uint8_t gVoiceBufWriteIndex; extern uint8_t gVoiceBufLen; -static inline void VOCIE_BUF_ForwardReadIndex() +static inline void VOICE_BUF_ForwardReadIndex() { gVoiceBufReadIndex = (1 + gVoiceBufReadIndex) % VOICE_BUF_CAP; } -static inline void VOCIE_BUF_ForwardWriteIndex() +static inline void VOICE_BUF_ForwardWriteIndex() { gVoiceBufWriteIndex = (1 + gVoiceBufWriteIndex) % VOICE_BUF_CAP; }