Audio change buffer

This commit is contained in:
2022-06-07 16:01:09 -03:00
parent 7d4604eac1
commit 1cf9b652af

View File

@@ -152,6 +152,7 @@ USBD_AUDIO_ItfTypeDef USBD_AUDIO_fops_FS =
static int8_t AUDIO_Init_FS(uint32_t AudioFreq, uint32_t Volume, uint32_t options)
{
/* USER CODE BEGIN 0 */
//AUDIO_OUT_Init(2, Volume, AudioFreq);
UNUSED(AudioFreq);
UNUSED(Volume);
UNUSED(options);
@@ -189,7 +190,7 @@ static int8_t AUDIO_AudioCmd_FS(uint8_t* pbuf, uint32_t size, uint8_t cmd)
break;
case AUDIO_CMD_PLAY:
AUDIO_OUT_Play(pbuf, 2*size);
AUDIO_OUT_ChangeBuffer(pbuf, 2*size);
break;
case AUDIO_CMD_STOP: