uni project for eq system
Fork of AUDIO_DISCO_F746NG by
Diff: AUDIO_DISCO_F746NG.cpp
- Revision:
- 1:7046ce26b7ed
- Parent:
- 0:6f035eff38e4
diff -r 6f035eff38e4 -r 7046ce26b7ed AUDIO_DISCO_F746NG.cpp --- a/AUDIO_DISCO_F746NG.cpp Thu Mar 24 20:23:54 2016 +0000 +++ b/AUDIO_DISCO_F746NG.cpp Wed Mar 22 11:06:58 2017 +0100 @@ -21,7 +21,7 @@ // Constructor AUDIO_DISCO_F746NG::AUDIO_DISCO_F746NG() { - BSP_AUDIO_IN_OUT_Init(INPUT_DEVICE_DIGITAL_MICROPHONE_2, OUTPUT_DEVICE_HEADPHONE, 90, DEFAULT_AUDIO_IN_FREQ); + BSP_AUDIO_IN_OUT_Init(INPUT_DEVICE_DIGITAL_MICROPHONE_2, OUTPUT_DEVICE_HEADPHONE, DEFAULT_AUDIO_IN_FREQ, DEFAULT_AUDIO_IN_BIT_RESOLUTION, DEFAULT_AUDIO_IN_CHANNEL_NBR); } // Destructor @@ -36,100 +36,100 @@ uint8_t AUDIO_DISCO_F746NG::OUT_Init(uint16_t OutputDevice, uint8_t Volume, uint32_t AudioFreq) { - return BSP_AUDIO_OUT_Init(OutputDevice, Volume, AudioFreq); + return BSP_AUDIO_OUT_Init(OutputDevice, Volume, AudioFreq); } uint8_t AUDIO_DISCO_F746NG::OUT_Play(uint16_t* pBuffer, uint32_t Size) { - return BSP_AUDIO_OUT_Play(pBuffer, Size); + return BSP_AUDIO_OUT_Play(pBuffer, Size); } void AUDIO_DISCO_F746NG::OUT_ChangeBuffer(uint16_t *pData, uint16_t Size) { - BSP_AUDIO_OUT_ChangeBuffer(pData, Size); + BSP_AUDIO_OUT_ChangeBuffer(pData, Size); } uint8_t AUDIO_DISCO_F746NG::OUT_Pause(void) { - return BSP_AUDIO_OUT_Pause(); + return BSP_AUDIO_OUT_Pause(); } uint8_t AUDIO_DISCO_F746NG::OUT_Resume(void) { - return BSP_AUDIO_OUT_Resume(); + return BSP_AUDIO_OUT_Resume(); } uint8_t AUDIO_DISCO_F746NG::OUT_Stop(uint32_t Option) { - return BSP_AUDIO_OUT_Stop(Option); + return BSP_AUDIO_OUT_Stop(Option); } uint8_t AUDIO_DISCO_F746NG::OUT_SetVolume(uint8_t Volume) { - return BSP_AUDIO_OUT_SetVolume(Volume); + return BSP_AUDIO_OUT_SetVolume(Volume); } uint8_t AUDIO_DISCO_F746NG::OUT_SetMute(uint32_t Cmd) { - return BSP_AUDIO_OUT_SetMute(Cmd); + return BSP_AUDIO_OUT_SetMute(Cmd); } uint8_t AUDIO_DISCO_F746NG::OUT_SetOutputMode(uint8_t Output) { - return BSP_AUDIO_OUT_SetOutputMode(Output); + return BSP_AUDIO_OUT_SetOutputMode(Output); } void AUDIO_DISCO_F746NG::OUT_SetFrequency(uint32_t AudioFreq) { - BSP_AUDIO_OUT_SetFrequency(AudioFreq); + BSP_AUDIO_OUT_SetFrequency(AudioFreq); } void AUDIO_DISCO_F746NG::OUT_SetAudioFrameSlot(uint32_t AudioFrameSlot) { - BSP_AUDIO_OUT_SetAudioFrameSlot(AudioFrameSlot); + BSP_AUDIO_OUT_SetAudioFrameSlot(AudioFrameSlot); } void AUDIO_DISCO_F746NG::OUT_DeInit(void) { - BSP_AUDIO_OUT_DeInit(); + BSP_AUDIO_OUT_DeInit(); } uint8_t AUDIO_DISCO_F746NG::IN_Init(uint16_t InputDevice, uint8_t Volume, uint32_t AudioFreq) { - return BSP_AUDIO_IN_Init(InputDevice, Volume, AudioFreq); + return BSP_AUDIO_IN_Init(InputDevice, Volume, AudioFreq); } -uint8_t AUDIO_DISCO_F746NG::IN_OUT_Init(uint16_t InputDevice, uint16_t OutputDevice, uint8_t Volume, uint32_t AudioFreq) +uint8_t AUDIO_DISCO_F746NG::IN_OUT_Init(uint16_t InputDevice, uint16_t OutputDevice, uint32_t AudioFreq, uint32_t BitRes, uint32_t ChnlNbr) { - return BSP_AUDIO_IN_OUT_Init(InputDevice, OutputDevice, Volume, AudioFreq); + return BSP_AUDIO_IN_OUT_Init(InputDevice, OutputDevice, AudioFreq, BitRes, ChnlNbr); } uint8_t AUDIO_DISCO_F746NG::IN_Record(uint16_t* pbuf, uint32_t size) { - return BSP_AUDIO_IN_Record(pbuf, size); + return BSP_AUDIO_IN_Record(pbuf, size); } uint8_t AUDIO_DISCO_F746NG::IN_Stop(uint32_t Option) { - return BSP_AUDIO_IN_Stop(Option); + return BSP_AUDIO_IN_Stop(Option); } uint8_t AUDIO_DISCO_F746NG::IN_Pause(void) { - return BSP_AUDIO_IN_Pause(); + return BSP_AUDIO_IN_Pause(); } uint8_t AUDIO_DISCO_F746NG::IN_Resume(void) { - return BSP_AUDIO_IN_Resume(); + return BSP_AUDIO_IN_Resume(); } uint8_t AUDIO_DISCO_F746NG::IN_SetVolume(uint8_t Volume) { - return BSP_AUDIO_IN_SetVolume(Volume); + return BSP_AUDIO_IN_SetVolume(Volume); } void AUDIO_DISCO_F746NG::IN_DeInit(void) { - BSP_AUDIO_IN_DeInit(); + BSP_AUDIO_IN_DeInit(); }