Wiretap

Wiretap

Reply
Active Contributor
derrick
Posts: 30
Registered: ‎11-17-2006
Message 1 of 5 (181 Views)

getClipFormat not returning correct tag after node creation

181 Views, 4 Replies
02-12-2007 12:35 AM
If I create an audio node on a linux box with the formatTag set to a big endian audio format, and then I use getClipFormat to see what was actually created, I get the same tag back. However, the actual clip is little endian.

I'm finding that I have to create a new WireTapNodeHandle from the nodeID and get its format to get a formatTag reflecting the correct endianness. (None of the other fields change, so I don't know if they might be suffering the same problem.)

My reading of the documentation indicates that just using getClipFormat() right after creating the clip should give me the actual format that was created on the server. Am I misreading, or is this a bug in Wiretap?

I'm using the 2007.1 beta on Mac OS X (Intel).
Distinguished Contributor
dlabute
Posts: 103
Registered: ‎05-11-2004
Message 2 of 5 (181 Views)

Re: getClipFormat not returning correct tag after node creation

02-14-2007 06:10 PM in reply to: derrick
This is normal behavior, as odd as it sounds. The createAudio.C sample program describes this in detail.

What is "buggy" is the documentation. We're working hard to unify the written guide with the hearders and the sample code.
Active Contributor
derrick
Posts: 30
Registered: ‎11-17-2006
Message 3 of 5 (181 Views)

Re: getClipFormat not returning correct tag after node creation

02-14-2007 10:33 PM in reply to: derrick
Hmm... I don't see anything in createAudio.C to indicate this. I see that after creating the node, it does a getClipFormat with the comment "Obtain the clip format to get the size of the audio tiles the server is expecting to receive." But the need to do that is covered in the documentation, I think.

I don't see anything about retrieving the audio node again.
Distinguished Contributor
dlabute
Posts: 103
Registered: ‎05-11-2004
Message 4 of 5 (181 Views)

Re: getClipFormat not returning correct tag after node creation

02-15-2007 04:50 AM in reply to: derrick
I see the nuance now. So, what you're saying is that the sample code does not work for little-endian audio when asking to create big-endian audio, right?

Can you verify this?
Active Contributor
derrick
Posts: 30
Registered: ‎11-17-2006
Message 5 of 5 (181 Views)

Re: getClipFormat not returning correct tag after node creation

02-16-2007 01:49 AM in reply to: derrick
Right. Well, the sample code doesn't actually store any audio data, but if it did... it wouldn't handle endian issues properly.

So if I create a clip node (on a little endian Linux machine) with a big-endian format and then query it for the format, it returns the big-endian format. (I don't have a big-endian machine to test if the reverse is true.)

However, if I create a new node handle to the same clip, I get the correct format... little endian.
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.