と書かれていてこの後もAVRecordSession関係のコードが連なっているのですが、これはAVAudioRecoderの公式ドキュメントに書いてある> To configure an appropriate audio session for recording, refer to AVAudioSession and AVAudioSessionDelegate.
のとおり、任意でのオーディオセッションの設定をしているのでしょうか?これはデフォルトでいい場合書かなくてもいいということですよね?
/* A protocol for delegates of AVAudioRecorder */
__TVOS_UNAVAILABLE __WATCHOS_PROHIBITED
@protocol AVAudioRecorderDelegate <NSObject>
@optional
/* audioRecorderDidFinishRecording:successfully: is called when a recording has been finished or stopped. This method is NOT called if the recorder is stopped due to an interruption. */
- (void)audioRecorderDidFinishRecording:(AVAudioRecorder *)recorder successfully:(BOOL)flag;
/* if an error occurs while encoding it will be reported to the delegate. */
- (void)audioRecorderEncodeErrorDidOccur:(AVAudioRecorder *)recorder error:(NSError * __nullable)error;
回答ありがとうございます!
シングルトンというものみたいですね、ありがとうございます
デフォルトとは書かれてませんでした。間違っていました。AVAudioRecoderを使うための手順の一つだったようですね。
AV Foundation Audio Settings Constantsはもちろん検索しましたがヒットせず、明確な答えが見つかりませんでした。。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/06/15 15:15
退会済みユーザー
2017/06/17 05:11