Changes between Version 21 and Version 22 of ARMS22-SOFTMODEM-HOWTO


Ignore:
Timestamp:
Mar 18, 2011 11:07:25 AM (9 years ago)
Author:
Ken Suzuki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ARMS22-SOFTMODEM-HOWTO

    v21 v22  
    108108
    109109You can download the Apple SDK iPhone developers to register with the developer page. To make it work on iPhone, You must participate iPhone Developer Program which costs 10,800 JPY a year.
     110
     111== iPhone Apps: Onkyo Denbun ==
     112
     113SoftModemTerminal.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
     115http://itunes.apple.com/jp/app/id385096654?mt=8
     116
     117== How to use the iPhone source code ==
     118
     119Currently, 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
     139SoftModem 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
     146First, set the category of application with AVAudioSession class. To do voice recording and playback, AVAudioSessionCategoryPlayAndRecord need to be set.
     147
     148{{{
     149#!Objective-C
     150AVAudioSession * session = [AVAudioSession sharedInstance];
     151session.delegate = self;
     152[Session setCategory: AVAudioSessionCategoryPlayAndRecord error: nil];
     153[Session setActive: YES error: nil];
     154}}}