| 1 |
// Listing 6.1 Connecting audio input to output using adc and dac |
| 2 |
|
| 3 |
// !!!!CAUTION CAUTION CAUTION CAUTION CAUTION!!!! // |
| 4 |
|
| 5 |
//connect audio input to audio output through Gain UG |
| 6 |
adc => Gain g => dac; |
| 7 |
|
| 8 |
//let it run for 10 seconds |
| 9 |
10.0 :: second => now; |
| 10 |
|
| 11 |
// !!!!CAUTION CAUTION CAUTION CAUTION CAUTION!!!! // |
| 12 |
/* Be extremely careful before you execute this |
| 13 |
code, making sure that there won' t be an |
| 14 |
ear-splitting feedback loop (as can happen |
| 15 |
when sound from your speakers gets back into |
| 16 |
your microphone). Plug in headphones, or turn |
| 17 |
your speaker volume way down before hooking |
| 18 |
the adc to the dac (running this code). */ |
| 19 |
// !!!!CAUTION CAUTION CAUTION CAUTION CAUTION!!!! // |