Audio singal input and output example for DISCO-F746. Input: MEMS mic, Output: CN10 OUT, Acoustic effect: echo and frequency shift. DISCO-F746 によるオーディオ信号入出力.入力:MEMS マイク,出力:CN10 OUT,音響効果:エコー,周波数変換.

Dependencies:   F746_GUI F746_SAI_IO

Revision:
2:a02507a43694
Parent:
1:319b7346f8ef
Child:
3:dc890c293f3f
--- a/main.cpp	Tue Apr 19 09:23:42 2016 +0000
+++ b/main.cpp	Sat May 07 07:42:03 2016 +0000
@@ -2,11 +2,11 @@
 //  MEMS マイクの入力に対して音響効果を与える
 //      音響効果:エコー生成,周波数シフト
 //
-//  2016/04/19, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/05/07, Copyright (c) 2016 MIKAMI, Naoki
 //--------------------------------------------------------------
 
 #include "InitializeGUI.hpp"
-#include "SAI_InputOutput.hpp"
+#include "SAI_InOut.hpp"
 #include "Echo.hpp"
 #include "WeaverModulator.hpp"
 
@@ -15,7 +15,7 @@
 int main()
 {
     const int FS = I2S_AUDIOFREQ_16K;   // 標本化周波数: 16 kHz
-    SaiIO mySai(INPUT_DEVICE_DIGITAL_MICROPHONE_2, 256, FS);
+    SaiIO mySai(SaiIO::BOTH, 256, FS, INPUT_DEVICE_DIGITAL_MICROPHONE_2);
     mySai.Pause();
 
     ButtonGroup *onOff;     // "ON", "OFF"