Audio change buffer
This commit is contained in:
@@ -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)
|
static int8_t AUDIO_Init_FS(uint32_t AudioFreq, uint32_t Volume, uint32_t options)
|
||||||
{
|
{
|
||||||
/* USER CODE BEGIN 0 */
|
/* USER CODE BEGIN 0 */
|
||||||
|
//AUDIO_OUT_Init(2, Volume, AudioFreq);
|
||||||
UNUSED(AudioFreq);
|
UNUSED(AudioFreq);
|
||||||
UNUSED(Volume);
|
UNUSED(Volume);
|
||||||
UNUSED(options);
|
UNUSED(options);
|
||||||
@@ -189,7 +190,7 @@ static int8_t AUDIO_AudioCmd_FS(uint8_t* pbuf, uint32_t size, uint8_t cmd)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case AUDIO_CMD_PLAY:
|
case AUDIO_CMD_PLAY:
|
||||||
AUDIO_OUT_Play(pbuf, 2*size);
|
AUDIO_OUT_ChangeBuffer(pbuf, 2*size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AUDIO_CMD_STOP:
|
case AUDIO_CMD_STOP:
|
||||||
|
|||||||
Reference in New Issue
Block a user