Changeset 153
- Timestamp:
- 10/07/06 17:17:56 (2 years ago)
- Files:
-
- trunk/ff_private.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ff_private.c
r98 r153 198 198 AudioFormatGetProperty(kAudioFormatProperty_FormatIsVBR, sizeof(AudioStreamBasicDescription), &asbd, &ioSize, &map->vbr); 199 199 200 /* ask the toolbox about more information */ 201 ioSize = sizeof(AudioStreamBasicDescription); 202 AudioFormatGetProperty(kAudioFormatProperty_FormatInfo, 0, NULL, &ioSize, &asbd); 203 200 204 /* Set some fields of the AudioStreamBasicDescription. Then ask the AudioToolbox 201 205 * to fill as much as possible before creating the SoundDescriptionHandle */ … … 211 215 if (asbd.mBytesPerPacket == 0 && asbd.mFramesPerPacket == 0) 212 216 asbd.mFramesPerPacket = 1; 213 214 /* ask the toolbox about more information */215 ioSize = sizeof(AudioStreamBasicDescription);216 AudioFormatGetProperty(kAudioFormatProperty_FormatInfo, 0, NULL, &ioSize, &asbd);217 217 218 218 /* If we have vbr audio, the media scale most likely has to be set to the time_base denumerator */
