Re: [Pyobjc-dev] Trouble with QTKit's audioChannelLayout (Log Messages and Incorrect Layout Tags)
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2012-07-20 12:50:42
|
On 20 Jul, 2012, at 11:49, Karan Lyons wrote: > Hi all, > > I've been working with QTKit in pyobjc, and it's been going splendidly so far. But I've run into some problems with audioChannelLayout. For example: > > >>> movie.tracksOfMediaType_('soun')[0].audioChannelLayout().unpack() > 2012-07-19 22:32:29.866 Python[2163:d07] PyObjCPointer created: at 0x104e652f0 of type {AudioChannelLayout=III[1{AudioChannelDescription=II[3f]}]}16@0:8 > (6619138, 0, 0, ((1, 57880064, (1.4012984643248171e-45, 5.5095557976284852e-38, 1.4012984643248171e-45)),)) > > The first, less troublesome issue are the logs that pyobjc prints to the console. But that may be related to the second issue. The message says that PyObjC had to convert a pointer to a Python value and didn't know how to do this properly. That's because there are currently no bindings for CoreAudio. > > The second issue would be that I should see (in this case) two channels, but only see one tuple for one channel in the AudioChannelDescription tuple. Additionally, the second integer in that tuple (representing mChannelFlags) doesn't look to be correct; I believe it should be an integer in (0, 1, 2, 4, 8, 16). This may or may not be related to the missing CoreAudio bindings. I haven't used that framework myself yet (not even from native code). Ronald |