![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Demo program of SAI_IO class for audio signal input and output. DISCO-F746 搭載の CODEC (WM8994) を使ってオーディオ信号の入出力を行うための SAI_IO クラスの使用例.
Dependencies: BSP_DISCO_F746NG F746_GUI F746_SAI_IO LCD_DISCO_F746NG TS_DISCO_F746NG mbed
Diff: main.cpp
- Revision:
- 1:7400dd732dbc
- Parent:
- 0:089c5e022aa8
- Child:
- 2:034168531ce0
--- a/main.cpp Thu May 05 11:23:17 2016 +0000 +++ b/main.cpp Mon May 09 13:34:21 2016 +0000 @@ -10,7 +10,7 @@ // この MyBSP_AUDIO_IN_OUT_Init() は "MyBSP_AUDIO_IN_OUT_Init.hpp" で // 定義されている. // -// 2016/05/05, Copyright (c) 2016 MIKAMI, Naoki +// 2016/05/09, Copyright (c) 2016 MIKAMI, Naoki //---------------------------------------------------------------------- #include "ButtonGroup.hpp" @@ -61,6 +61,9 @@ bool on = true; int inSelect = 1; // input: line + mySai.RecordIn(); + mySai.PlayOut(); + while(1) { int sw = 0; @@ -71,6 +74,8 @@ if (inSw.GetTouchedNumber(swNow) && (swNow != inSelect)) { mySai.SwitchInputDevice(swNow); + mySai.RecordIn(); + mySai.PlayOut(); inSelect = swNow; }