| 246 | | asbd.mChannelsPerFrame = 2; |
|---|
| 247 | | err = QTSoundDescriptionCreate(&asbd, NULL, 0, NULL, 0, kQTSoundDescriptionKind_Movie_LowestPossibleVersion, &sndHdl); |
|---|
| | 246 | { |
|---|
| | 247 | /* We have to just guess what layout to use. People, add them here: */ |
|---|
| | 248 | if((asbd.mFormatID == 'ac-3' || asbd.mFormatID == 'ms \0') && asbd.mChannelsPerFrame == 5) |
|---|
| | 249 | { |
|---|
| | 250 | /* likely really 5.1, but not absolutely sure. guess it is, can't do any better */ |
|---|
| | 251 | asbd.mChannelsPerFrame++; |
|---|
| | 252 | acl.mChannelLayoutTag = kAudioChannelLayoutTag_ITU_3_2_1; |
|---|
| | 253 | aclSize = sizeof(AudioChannelLayout); |
|---|
| | 254 | } |
|---|
| | 255 | } |
|---|
| | 256 | err = QTSoundDescriptionCreate(&asbd, aclSize == 0 ? NULL : &acl, aclSize, NULL, 0, kQTSoundDescriptionKind_Movie_Version2, &sndHdl); |
|---|