| 110 | |
| 111 | == iPhone Apps: Onkyo Denbun == |
| 112 | |
| 113 | SoftModemTerminal.app is now available for download from the AppStore. If you don't have iPhone application development environment, please download the application from this URL. |
| 114 | |
| 115 | http://itunes.apple.com/jp/app/id385096654?mt=8 |
| 116 | |
| 117 | == How to use the iPhone source code == |
| 118 | |
| 119 | Currently, the source code of the SoftModem is not made as a framework. If you want to use SoftModem in your project, the source code related to the SoftModem must be copied from the source code of the SoftModemTerminal. The following is the list of source code related to SoftModem. Please copy these to the project source code. |
| 120 | |
| 121 | * AudioQueueObject.h |
| 122 | * AudioQueueObject.m |
| 123 | * AudioSignalAnalyzer.h |
| 124 | * AudioSignalAnalyzer.m |
| 125 | * AudioSignalGenerator.h |
| 126 | * AudioSignalGenerator.m |
| 127 | * CharReceiver.h |
| 128 | * FSKModemConfig.h |
| 129 | * FSKByteQueue.h |
| 130 | * FSKRecognizer.h |
| 131 | * FSKRecognizer.mm |
| 132 | * FSKSerialGenerator.h |
| 133 | * FSKSerialGenerator.m |
| 134 | * lockfree.h |
| 135 | * MultiDelegate.h |
| 136 | * MultiDelegate.m |
| 137 | * PatternRecognizer.h |
| 138 | |
| 139 | SoftModem uses the following two framework for audio input and output. Please add them to your project. |
| 140 | |
| 141 | * AudioToolbox.framework |
| 142 | * AVFoundation.framework |
| 143 | |
| 144 | === Initialization === |
| 145 | |
| 146 | First, set the category of application with AVAudioSession class. To do voice recording and playback, AVAudioSessionCategoryPlayAndRecord need to be set. |
| 147 | |
| 148 | {{{ |
| 149 | #!Objective-C |
| 150 | AVAudioSession * session = [AVAudioSession sharedInstance]; |
| 151 | session.delegate = self; |
| 152 | [Session setCategory: AVAudioSessionCategoryPlayAndRecord error: nil]; |
| 153 | [Session setActive: YES error: nil]; |
| 154 | }}} |