La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

WAAPI and concurrency

0 votes

I tried to use multiprocessing to handle large number of queries on local Wwise project. 

My code snippets below try to open 4 processes to query Wwise project concurrently:

import multiprocessing

taskname = 'asking wwise for soundbanks'
nprocs = 4
bnks = multiprocessing.Manager().dict()
bnks['bnks'] = []
ranges = organize_concurrency(ntasks, nprocs)
jobs = [multiprocessing.Process(target=worker, args=(bnks, tasks[rg[0]:rg[1]])) for rg in ranges]
for job in jobs:
    job.start()
for j in jobs:
    j.join()

The worker function does pretty straightforward ak.wwise.core.object.get queries so I'll skip it.

While some queries are OK, lots of others throw errors like:


ERROR:WaapiClientAutobahn:WaapiClientAutobahn (ERROR): ('ApplicationError(error=<ak.wwise.query.unknown_object>, args=[], '
 "kwargs={'message': 'from id object is unknown', 'details': {'procedureUri': "
 "'ak.wwise.core.object.get'}}, enc_algo=None, callee=None, "
 'callee_authid=None, callee_authrole=None, forward_for=None)')

And the results of those queries are all null, although the objects are all present in the target project.

 

Does WAAPI support this kind of usage?

 

demandé 29-Mai-2019 dans General Discussion par Saul G. (290 points)
rouvert 30-Mai-2019 par Saul G.

1 Réponse

0 votes
 
Meilleure réponse
Found the problem myself:

 

I made a mistake by including the GUID of init.bnk. That is obviously not part of the project hierarchy.

But it would be nice if WAAPI can spot that and simply returns init.bnk to me.

Case closed.
répondu 30-Mai-2019 par Saul G. (290 points)
...