[Clam-devel] sinks and sources ordering...
Natanael Olaiz
nolaiz at gmail.com
Wed Jan 7 11:35:46 PST 2009
Well, after several hours of refactoring and Pau's help, CLAM finally
uses the processings "y" positions to order the sinks and sources! If
any geometry doesn't exist is grouped at the end of the vector. It still
needs some cleanup, but at least the testfarm is on green again (sorry
for the red...).
That is used for OfflinePlayer and NetworkEditor.
Best regards,
Natanael.
El 01/04/2009 03:24 PM, Natanael Olaiz escribió:
> Just the same patch, without forgotten testing calls to getOrdered...
> on NE MainWindow.
>
> El 01/04/2009 03:15 PM, Natanael Olaiz escribió:
>> Hi,
>>
>> Here is attached a new patch version. The NetworkEditor updates the
>> geometries map before the network Start () (on NE MainWindow play
>> trigger), which calls the (JACKNetwork)player, which ask the network
>> to calculate the order. Then the map is cleared.
>>
>> Now I'll try to put it the routines that I added to JACKNetworkPlayer
>> directly on NetworkPlayer::GetAudioSources and GetAudioSinks, which
>> are used by the OfflinePlayer (and I think could be used for the
>> JACK...Player too then).
>>
>> Pau: what do you think about this new method?
>>
>>
>> Best regards, and happy new year to all clam developers! :)
>> Natanael.
>>
>>
>> El 12/19/2008 09:52 AM, Natanael Olaiz escribió:
>>>
>>> On Fri, Dec 19, 2008 at 12:16 AM, Pau Arum'i <parumi at iua.upf.edu
>>> <mailto:parumi at iua.upf.edu>> wrote:
>>>
>>> En/na Natanael Olaiz ha escrit:
>>>
>>> Hi!,
>>>
>>> Pau suggest me to try to keep some order on sources and sinks
>>> within the players. Now are using a map, so the order is
>>> unpredictable...
>>> The idea is to use the geometry positions on canvas(upper is
>>> first)... but the problem is that actually the only who knows
>>> that is the canvas, and for a while (on loading/pasting) the
>>> network, but not the OfflinePlayer...
>>>
>>> So... here is a patch with the actual state of my sandbox.
>>> Still with debug messages, and the players are not using the
>>> new ordered list..
>>> I send to the list to ask if someone have a better idea to
>>> implement it.. If not, later I will commit this (without the
>>> messages), and then I'll use that on the players..
>>>
>>>
>>> Nice! But I'd like to do more reviewing of the pach (ideally on
>>> monday) before commiting -- unless is very necessary for the
>>> recent ambisonics decoding plugins. I'd basically try to not store
>>> the orderedSources/Sinks but calculate them...
>>>
>>>
>>> If I don't store the order I would need to store the geometries on
>>> the network to calculate them...
>>>
>>> The geometries map used to copy and load the networks is cleared
>>> after get it from the canvas... OfflinePlayer doesn't get(/clear) it
>>> ... Maybe I can use that map: directly on OfflinePlayer (is updated
>>> on loading), updating it before a play event from NE MainWindow....
>>> I will see..
>>>
>>> Best regards,
>>> Natanael
>>>
>>>
>>>
>>>
>>> Ciao!
>>> P
>>>
>>>
>>> _______________________________________________
>>> Clam-devel mailing list
>>> Clam-devel at llistes.projectes.lafarga.org
>>> <mailto:Clam-devel at llistes.projectes.lafarga.org>
>>>
>>> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel
>>>
>>>
>>>
>>
>
More information about the clam-devel
mailing list