translation:adc:audio:audio_queue_services_programming_guide:0300_recordingaudio

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン 両方とも次のリビジョン
translation:adc:audio:audio_queue_services_programming_guide:0300_recordingaudio [2014-09-01 19:34]
Decomo [録音用音声フォーマットの構成]
translation:adc:audio:audio_queue_services_programming_guide:0300_recordingaudio [2014-09-08 19:29]
Decomo [Audio Queue Bufferセットの準備]
行 310: 行 310:
   - 関数の成否を返します。   - 関数の成否を返します。
  
-===== 録音音声フォーマットの構成 =====+===== 録音音声フォーマットの構成 =====
  
 本項ではAudio Queueの音声データ形式の構成方法を説明します。 本項ではAudio Queueの音声データ形式の構成方法を説明します。
行 338: 行 338:
 aqData.mDataFormat.mBitsPerChannel   = 16;                    // 5 aqData.mDataFormat.mBitsPerChannel   = 16;                    // 5
 aqData.mDataFormat.mBytesPerPacket                          // 6 aqData.mDataFormat.mBytesPerPacket                          // 6
-   aqData.mDataFormat.mBytesPerFrame = +aqData.mDataFormat.mBytesPerFrame    
-      aqData.mDataFormat.mChannelsPerFrame * sizeof (SInt16);+    aqData.mDataFormat.mChannelsPerFrame * sizeof (SInt16);
 aqData.mDataFormat.mFramesPerPacket  = 1;                     // 7 aqData.mDataFormat.mFramesPerPacket  = 1;                     // 7
  
行 351: 行 351:
 コードの働きを見てみましょう: コードの働きを見てみましょう:
  
-  - <ilcode>AQRecorderState</ilcode>独自構造体の実体を生成します。構造体の<ilcode>mDataFormat</ilcode>フィールドは<ilcode>AudioStreamBasicDescription</ilcode>構造体を含みます。<ilcode>mDataFormat</ilcode>フィールドでセットされた値は、 +  - <ilcode>AQRecorderState</ilcode>独自構造体の実体を生成します。構造体の<ilcode>mDataFormat</ilcode>フィールドは<ilcode>AudioStreamBasicDescription</ilcode>構造体を含みます。<ilcode>mDataFormat</ilcode>フィールドでセットされた値は、Audio Queueの音声フォーマットの初期定義を提供しますそれはまた、記録先ファイルの音声フォーマットでもあります。リスト2-10では、より完全な音声フォーマット仕様を取得しますが、Core Audioはそれらをフォーマットタイプとファイルタイプに基づいて提供します。 
-  - Creates an instance of the AQRecorderState custom structure. The structure’s mDataFormat field contains an AudioStreamBasicDescription structure. The values set in the mDataFormat field provide an initial definition of the audio format for the audio queuewhich is also the audio format for the file you record into. In Listing 2-10, you obtain a more complete specification of the audio format, which Core Audio provides to you based on the format type and file type. +  - 音声データタイプをリニアPCMとして定義します。利用可能なデータ形式の完全なリストは//[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/Reference/reference.html|Core Audio Data Types Reference]]//をご覧下さい。 
-  - Defines the audio data format type as linear PCM. See Core Audio Data Types Reference for a complete listing of the available data formats. +  - サンプリング周波数を44.1kHzとします。 
-  - Defines the sample rate as 44.1 kHz. +  - チャンネル数は2とします。 
-  - Defines the number of channels as 2. +  - チャンネルあたりのビット深度は16とします。 
-  - Defines the bit depth per channel as 16. +  - パケットあたりのバイト数とフレームあたりのバイト数は4とします(2チャンネル×サンプルあたり2バイト)。 
-  - Defines the number of bytes per packet, and the number of bytes per frame, to (that is, channels times bytes per sample). +  - パケットあたりのフレーム数は1とします。 
-  - Defines the number of frames per packet as 1. +  - ファイルタイプはAIFFとします。利用可能なファイルタイプの完全なリストは<ilcode>AudioFile.h</ilcode>ヘッダファイルの音声ファイルタイプ列挙値をご覧下さい。[[0200_aboutaudioqueues#コーデックと音声データ形式を使う]]で解説したように、インストール済みコーデックが存在するあらゆるファイルタイプを書くことが出来ます。 
-  - Defines the file type as AIFF. See the audio file types enumeration in the AudioFile.h header file for a complete listing of the available file types. You can specify any file type for which there is an installed codec, as described in Using Codecs and Audio Data Formats.” +  - 特定のファイルタイプで必要となるフォーマットフラグを設定します。
-  - Sets the format flags needed for the specified file type.+
  
 ===== 録音Audio Queueの生成 ===== ===== 録音Audio Queueの生成 =====
  
-Now, with the recording callback and audio data format set up, you create and configure an audio queue for recording.+それでは、録音コールバックと音声データ形式を設定して、録音Audio Queueの生成と設定をします。
  
 ==== 録音Audio Queueを生成する ==== ==== 録音Audio Queueを生成する ====
  
-Listing 2-9 illustrates how to create a recording audio queueNotice that the AudioQueueNewInput function uses the callback, the custom structure, and the audio data format that were configured in previous steps. +リスト2-9は録音Audio Queueの作り方を示したものです。 
- +<ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueNewInput|AudioQueueNewInput]]</ilcode>関数が、前のステップで構成したコールバック、独自構造体、音声データ形式を使う点に注目して下さい。
-Listing 2-9  Creating a recording audio queue+
  
 +**リスト 2-9** 録音Audio Queueの生成
 <code c_mac> <code c_mac>
 AudioQueueNewInput (                              // 1 AudioQueueNewInput (                              // 1
行 384: 行 383:
 </code> </code>
  
-Here’s how this code works:+コードの働きを見てみましょう:
  
-  - The AudioQueueNewInput function creates a new recording audio queue+  - <ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueNewInput|AudioQueueNewInput]]</ilcode>関数は新しい録音Audio Queueを生成します。 
-  - The audio data format to use for the recording. See Set Up an Audio Format for Recording.” +  - 録音に使う音声データ形式です。[[#録音用音声フォーマットの構成]]をご覧下さい。 
-  - The callback function to use with the recording audio queue. See Write a Recording Audio Queue Callback.” +  - 録音Audio Queueが使うコールバック関数です。[[#録音Audio Queueコールバックの実装]]をご覧下さい。 
-  - The custom data structure for the recording audio queue. See Define a Custom Structure to Manage State.” +  - 録音Audio Queueの独自データ構造体です。[[#状態を管理する独自構造体の定義]]をご覧下さい。 
-  - The run loop on which the callback will be invoked. Use NULL to specify default behavior, in which the callback will be invoked on a thread internal to the audio queue. This is typical use—it allows the audio queue to record while your application’s user interface thread waits for user input to stop the recording. +  - コールバックを呼び出す実行ループを指定します。<ilcode>NULL</ilcode>はデフォルトの挙動を示し、Audio Queue内部のスレッドでコールバックが呼ばれます。これは典型的な使い方で、アプリケーションのユーザーインタフェーススレッドが録音停止の入力を待つ間、Audio Queueによる録音を許可します。 
-  - The run loop modes in which the callback can be invoked. Normally, use the kCFRunLoopCommonModes constant here. +  - コールバック呼び出しの実行ループモードです。通常、ここには<ilcode>kCFRunLoopCommonModes</ilcode>定数を使います。 
-  - Reserved. Must be 0. +  - 将来拡張用です。<ilcode>0</ilcode>を指定して下さい。 
-  - On output, the newly allocated recording audio queue.+  - 新たに確保された録音Audio Queueが出力されます。
  
 ==== Audio Queueから完全な音声形式を取得する ==== ==== Audio Queueから完全な音声形式を取得する ====
  
-When the audio queue came into existence (see Creating a Recording Audio Queue”), it may have filled out the AudioStreamBasicDescription structure more completely than you have, particularly for compressed formats. To obtain the complete format description, call the AudioQueueGetProperty function as shown in Listing 2-10. You use the complete audio format when you create an audio file to record into (see Create an Audio File”).+Audio Queueの実体が出来ると([[#録音Audio Queueの生成]]をご覧下さい)、Audio Queueは特に圧縮フォーマットにおいて、あなたが持っているものより完全に<ilcode>AudioStreamBasicDescription</ilcode>構造体を埋めるでしょう。 
 +完全なフォーマット記述を取得するには、リスト2-10で示すように<ilcode>AudioQueueGetProperty</ilcode>関数を呼びます。 
 +記録先のAudio Fileを作る際は、その完全な音声フォーマットをしようします([[#Audio Fileの生成]]をご覧下さい)。
  
-Listing 2-10  Getting the audio format from an audio queue+**リスト 2-10** Audio Queueから音声フォーマットを得る
  
 <code c_mac> <code c_mac>
行 407: 行 408:
     aqData.mQueue,                                         // 3     aqData.mQueue,                                         // 3
     kAudioQueueProperty_StreamDescription,                 // 4     kAudioQueueProperty_StreamDescription,                 // 4
-    // in Mac OS X, instead use+    // Mac OS Xでは代わりに↓を使ってください
     //    kAudioConverterCurrentInputStreamDescription     //    kAudioConverterCurrentInputStreamDescription
     &aqData.mDataFormat,                                   // 5     &aqData.mDataFormat,                                   // 5
行 413: 行 414:
 ); );
 </code> </code>
 +コードの働きを見てみましょう:
  
-Here’s how this code works: +  - Audio Queueに音声データ形式を問い合わせる時に使う、プロパティ値の期待サイズを得ます。 
- +  - <ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueGetProperty|AudioQueueGetProperty]]</ilcode>関数はAudio Queueから指定のプロパティ値を得ます。 
-  - Gets an expected property value size to use when querying the audio queue about its audio data format. +  - 音声データ形式を取得するAudio Queueです。 
-  - The AudioQueueGetProperty function obtains the value for a specified property in an audio queue. +  - Audio Queueのデータ形式値を得るためのプロパティIDです。 
-  - The audio queue to obtain the audio data format from. +  - 出力で、Audio Queueから得られた<ilcode>AudioStreamBasicDescription</ilcode>構造体による完全な音声データ形式です。 
-  - The property ID for obtaining the value of the audio queue’s data format. +  - 入力では、<ilcode>AudioStreamBasicDescription</ilcode>構造体の期待サイズです。出力では、実際のサイズが入ります。あなたの録音アプリケーションでは、この値を利用する必要はありません。
-  - On output, the full audio data format, in the form of an AudioStreamBasicDescription structure, obtained from the audio queue. +
-  - On input, the expected size of the AudioStreamBasicDescription structure. On output, the actual size. Your recording application does not need to make use of this value.+
  
 ===== Audio Fileの生成 ===== ===== Audio Fileの生成 =====
  
-With an audio queue created and configured, you create the audio file that you’ll record audio data into, as shown in Listing 2-11. The audio file uses the data format and file format specifications previously stored in the audio queue’s custom structure.+生成と設定が行われたAudio Queueを使って、リスト2-11のように録音データを保存するAudio Fileを生成します。 
 +Audio Fileは、前述のAudio Queueの独自構造体に格納されたデータ形式とファイル形式仕様を使います。
  
-Listing 2-11  Creating an audio file for recording+**リスト 2-11** 記録用Audio Fileの生成
  
 <code c_mac> <code c_mac>
行 447: 行 448:
 </code> </code>
  
-Here’s how this code works:+コードの働きを見てみましょう:
  
-  - The CFURLCreateFromFileSystemRepresentation function, declared in the CFURL.h header file, creates a CFURL object representing a file to record into+  - <ilcode>CFURL.h</ilcode>ヘッダファイルで宣言される<ilcode>[[https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFURLRef/Reference/reference.html#//apple_ref/doc/c_ref/CFURLCreateFromFileSystemRepresentation|CFURLCreateFromFileSystemRepresentation]]</ilcode>関数は、記録に使うファイルを表す<ilcode>CFURL</ilcode>オブジェクトを生成します。 
-  - Use NULL (or kCFAllocatorDefault) to use the current default memory allocator. +  - <ilcode>NULL</ilcode>(または<ilcode>kCFAllocatorDefault</ilcode>)を使うと、現在のデフォルトメモリアロケータを使います。 
-  - The file-system path you want to convert to a CFURL object. In production code, you would typically obtain a value for filePath from the user. +  - <ilcode>CFURL</ilcode>オブジェクトに変換したいファイルシステムパスです。製品コードでは、通常、<ilcode>filePath</ilcode>からユーザー指定の値を得ます。 
-  - The number of bytes in the file-system path. +  - ファイルシステムパスのバイト数です。 
-  - A value of false indicates that filePath represents a file, not a directory. +  - <ilcode>false</ilcode>は<ilcode>filePath</ilcode>がディレクトリではなくファイルである事を示します。 
-  - The AudioFileCreateWithURL function, from the AudioFile.h header file, creates a new audio file or initializes an existing file+  - <ilcode>AudioFile.h</ilcode>ヘッダファイルの<ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioFileConvertRef/Reference/reference.html#//apple_ref/doc/c_ref/AudioFileCreateWithURL|AudioFileCreateWithURL]]</ilcode>関数は、音声ファイルの新規作成ないし既存ファイルの初期化を行います。 
-  - The URL at which to create the new audio file, or to initialize in the case of an existing file. The URL was derived from the CFURLCreateFromFileSystemRepresentation in step 1. +  - 新規音声ファイルの作成、もしくは既存ファイルの初期化の対象となるURLです。URLは手順1の[[https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFURLRef/Reference/reference.html#//apple_ref/doc/c_ref/CFURLCreateFromFileSystemRepresentation|CFURLCreateFromFileSystemRepresentation]]に由来します。 
-  - The file type for the new file. In the example code in this chapter, this was previously set to AIFF by way of the kAudioFileAIFFType file type constant. See Set Up an Audio Format for Recording.” +  - 新しいファイルのファイルタイプです。本章のサンプルコードでは、前に<ilcode>kAudioFileAIFFType</ilcode>ファイルタイプ定数を経由してAIFFに設定されています。[[#録音音声フォーマットの構成]]をご覧下さい。 
-  - The data format of the audio that will be recorded into the file, specified as an AudioStreamBasicDescription structure. In the example code for this chapter, this was also set in Set Up an Audio Format for Recording.” +  - <ilcode>AudioStreamBasicDescription</ilcode>構造体として指定される、ファイルに記録する音声のデータ形式です。本章のサンプルコードでは、これも[[#録音音声フォーマットの構成]]で設定されています。 
-  - Erases the file, in the case that the file already exists. +  - ファイルが既に存在していた場合、そのファイルを消します。 
-  - On output, an audio file object (of type AudioFileID) representing the audio file to record into.+  - 出力で、記録先の音声ファイルを表す(<ilcode>AudioFileID</ilcode>型の)Audio Fileオブジェクトです。
  
 ===== Audio Queue Bufferサイズの設定 ===== ===== Audio Queue Bufferサイズの設定 =====
  
-Before you prepare a set of audio queue buffers that you’ll use while recording, you make use of the DeriveBufferSize function you wrote earlier (see Write a Function to Derive Recording Audio Queue Buffer Size). You assign this size to the recording audio queue you are using. Listing 2-12 illustrates this:+録音中に使うAudio Queue Bufferセットを準備する前に、先に書いた<ilcode>DeriveBufferSize</ilcode>関数([[#録音Audio Queue Bufferサイズを計算する関数の実装]]をご覧下さい)を使います。 
 +このサイズを使用する録音Audio Queueのサイズに割り当てます。 
 +リスト2-12がその様子を示します:
  
-Listing 2-12  Setting an audio queue buffer size+**リスト 2-12** Audio Queue Bufferサイズの設定
  
 <code c_mac> <code c_mac>
行 476: 行 479:
 </code> </code>
  
-Here’s how this code works:+コードの働きを見てみましょう:
  
-  - The DeriveBufferSize function, described in Write a Function to Derive Recording Audio Queue Buffer Size,” sets an appropriate audio queue buffer size. +  - “[[#録音Audio Queue Bufferサイズを計算する関数の実装]]で解説した<ilcode>DeriveBufferSize</ilcode>関数は、妥当なAudio Queue Bufferサイズを設定します。 
-  - The audio queue that you’re setting buffer size for. +  - バッファサイズを設定するAudio Queueです。 
-  - The audio data format for the file you are recording. See Set Up an Audio Format for Recording.” +  - 記録するファイルの音声データ形式です。[[#録音音声フォーマットの構成]]をご覧下さい。 
-  - The number of seconds of audio that each audio queue buffer should hold. One half second, as set here, is typically a good choice+  - 各Audio Queue Bufferが保持する音声の秒数です。通常、ここで設定している0.5秒が良い選択です。 
-  - On output, the size for each audio queue buffer, in bytes. This value is placed in the custom structure for the audio queue.+  - 出力で、各Audio Queue Bufferサイズがバイト数で返ります。この値はAudio Queueの独自構造体の中に置かれます。
  
 ===== Audio Queue Bufferセットの準備 ===== ===== Audio Queue Bufferセットの準備 =====
  
-You now ask the audio queue that you’ve created (in Create a Recording Audio Queue”) to prepare a set of audio queue buffers. Listing 2-13 demonstrates how to do this. +それでは、(“[[#録音Audio Queueの生成]])生成したAudio Queueに、Audio Queue Bufferセットを準備するように命令します。 
- +リスト 2-13はそのデモンストレーションです。
-Listing 2-13  Preparing a set of audio queue buffers+
  
 +**リスト 2-13** Audio Queue Bufferセットの準備
 <code c_mac> <code c_mac>
 for (int i = 0; i < kNumberBuffers; ++i) {           // 1 for (int i = 0; i < kNumberBuffers; ++i) {           // 1
行 507: 行 510:
 </code> </code>
  
-Here’s how this code works:+コードの働きを見てみましょう:
  
-  - Iterates to allocate and enqueue each audio queue buffer. +  - Audio Queue Buffer確保とキュー追加のためにイテレートします。 
-  - The AudioQueueAllocateBuffer function asks an audio queue to allocate an audio queue buffer+  - <ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueAllocateBuffer|AudioQueueAllocateBuffer]]</ilcode>関数はAudio QueueにAudio Queue Bufferを確保するよう指示します。 
-  - The audio queue that performs the allocation and that will own the buffer. +  - バッファを確保し所持するAudio Queueです。 
-  - The size, in bytes, for the new audio queue buffer being allocated. See Write a Function to Derive Recording Audio Queue Buffer Size.” +  - 新しく確保されるAudio Queue Bufferのバイト数です。[[#録音Audio Queue Bufferサイズを計算する関数の実装]]をご覧下さい。 
-  - On output, the newly allocated audio queue buffer. The pointer to the buffer is placed in the custom structure you’re using with the audio queue. +  - 新しく確保されたAudio Queue Bufferが出力されます。バッファへのポインタはAudio Queueと共に使う独自構造体の中に置かれます。 
-  - The AudioQueueEnqueueBuffer function adds an audio queue buffer to the end of a buffer queue+  - <ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueEnqueueBuffer|AudioQueueEnqueueBuffer]]</ilcode>関数はバッファキューの最後にAudio Queue Bufferを追加します。 
-  - The audio queue whose buffer queue you are adding the buffer to. +  - キューに加えるAudio Queue Bufferを持つAudio Queue。 
-  - The audio queue buffer you are enqueuing. +  - キューに加えるAudio Queue Buffer。 
-  - This parameter is unused when enqueuing a buffer for recording. +  - 録音におけるバッファのキュー追加では、本パラメータは使用しません。 
-  - This parameter is unused when enqueuing a buffer for recording.+  - 録音におけるバッファのキュー追加では、本パラメータは使用しません。
  
 ===== 録音 ===== ===== 録音 =====
  
-All of the preceding code has led up to the very simple process of recording, as shown in Listing 2-14+リスト2-14で示されるように、これまでのコードの全てが録音のとてもシンプルな工程に繋がりました。
- +
-Listing 2-14  Recording audio+
  
 +**リスト 2-14** 録音
 <code c_mac> <code c_mac>
 aqData.mCurrentPacket = 0;                           // 1 aqData.mCurrentPacket = 0;                           // 1
行 534: 行 536:
     NULL                                             // 5     NULL                                             // 5
 ); );
-// Wait, on user interface thread, until user stops the recording+// ユーザーインターフェーススレッドにおいてユーザーが録音を止めるまで待つ
 AudioQueueStop (                                     // 6 AudioQueueStop (                                     // 6
     aqData.mQueue,                                   // 7     aqData.mQueue,                                   // 7
行 543: 行 545:
 </code> </code>
  
-Here’s how this code works:+コードの働きを見てみましょう:
  
-  - Initializes the packet index to to begin recording at the start of the audio file. +  - Audio Fileの先頭から記録するためにパケットインデックスを<ilcode>0</ilcode>に初期化します。 
-  - Sets a flag in the custom structure to indicate that the audio queue is running. This flag is used by the recording audio queue callback. +  - Audio Queueが実行中を表すフラグを独自構造体にセットします。このフラグは録音Audio Queueコールバックで使用されます。 
-  - The AudioQueueStart function starts the audio queue, on its own thread+  - <ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueStart|AudioQueueStart]]</ilcode>関数は、Audio Queue自身のスレッドでAudio Queueを開始します。 
-  - The audio queue to start. +  - 開始するAudio Queue。 
-  - Uses NULL to indicate that the audio queue should start recording immediately. +  - <ilcode>NULL</ilcode>を使うと、Audio Queueが直ちに録音を開始する事を示します。 
-  - The AudioQueueStop function stops and resets the recording audio queue+  - <ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueStop|AudioQueueStop]]</ilcode>関数は録音Audio Queueを停止しリセットします。 
-  - The audio queue to stop. +  - 停止するAudio Queue。 
-  - Use true to use synchronous stopping. See “Audio Queue Control and State” for an explanation of synchronous and asynchronous stopping. +  - <ilcode>true</ilcode>を使うと、同期的に止めます。停止における同期と非同期の説明は[[0200_aboutaudioqueues#Audio Queueの状態と制御]]をご覧ください。 
-  - Sets a flag in the custom structure to indicate that the audio queue is not running.+  - Audio Queueが非実行中を示すフラグを独自構造体にセットします。
  
 ===== 録音後の後始末 ===== ===== 録音後の後始末 =====
  
-When you’re finished with recording, dispose of the audio queue and close the audio file. Listing 2-15 illustrates these steps. +録音が終わったら、Audio Queueを破棄しAudio Fileを閉じます。 
- +リスト 2-15はこれらの手順を示します。
-Listing 2-15  Cleaning up after recording+
  
 +**リスト 2-15** 録音後の後始末
 <code c_mac> <code c_mac>
 AudioQueueDispose (                                 // 1 AudioQueueDispose (                                 // 1
行 570: 行 572:
 </code> </code>
  
-Here’s how this code works: +コードの働きを見てみましょう: 
-  - The AudioQueueDispose function disposes of the audio queue and all of its resources, including its buffers+ 
-  - The audio queue you want to dispose of. +  - <ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioQueueReference/Reference/reference.html#//apple_ref/doc/c_ref/AudioQueueDispose|AudioQueueDispose]]</ilcode>関数はAudio Queueと、バッファを含むその全ての資源を破棄します。 
-  - Use true to dispose of the audio queue synchronously (that is, immediately). +  - 破棄したいAudio Queue。 
-  - Closes the audio file that was used for recordingThe AudioFileClose function is declared in the AudioFile.h header file.+  - <ilcode>true</ilcode>を使うとAudio Queueを同期的に(すなわち、即座に)破棄します 
 +  - 記録に使ったAudio Fileを閉じます。<ilcode>[[https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/AudioFileConvertRef/Reference/reference.html#//apple_ref/doc/c_ref/AudioFileClose|AudioFileClose]]</ilcode>関数は<ilcode>AudioFile.h</ilcode>ヘッダファイルで宣言されています。 
  • translation/adc/audio/audio_queue_services_programming_guide/0300_recordingaudio.txt
  • 最終更新: 2020-12-04 09:32
  • by Decomo