dmsdk
[Top] [All Lists]

dmsdk resource queries

To: dmsdk@xxxxxxxxxxx
Subject: dmsdk resource queries
From: "Carl Becker" <carlb@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Feb 2001 17:42:12 -0800
Cc: carlb@xxxxxxxxxxxxxxxxxxxxxxx
Sender: owner-dmsdk@xxxxxxxxxxx
A customer writes with the following:

When I open a port in the old audio library with alOpenPort() I get
an ALport identification. If I do an additional alOpenPort() with
the same arguments I will receive a new unique ALport identification
but to the same hardware device.

After this I can write to the two ports totaly independently and the
sound will be mixed on the hardware device. One example is to
execute multiple playaifc that will play independently of each
other.

I read the man page for dmsdkIntro and this is an extraction that
explains what I mean:

"Before sending messages to a device you'll need to open a connection to
     some processing path through it by calling dmOpen(3dm):

          DMstatus dmOpen (DMint64 pathId, DMpv* options,
                               DMopenid* openid);

     Think of a path as being a logical device - a single physical device
     (e.g.  a PCI card) may simultaneously support several logical paths."

-----------------------------------------------------------------

Does the dmsdk support the same "port" feature as the old audio library
described above?

If it does, is there any limit on how many "ports" one can have open
simultaneously?

If there is a limit, how can I determine or query that limit?

I'm looking for queries like:

ALpv pvs[1];
pvs[0].param = AL_MAX_PORTS;
alGetParams( AL_SYSTEM, pvs, 1 );
return pvs[0].value.i;

ALpv pvs[1];
pvs[0].param = AL_UNUSED_PORTS;
alGetParams( AL_SYSTEM, pvs, 1 );
return pvs[0].value.i;


Thanks.


-- 
----------------------------------------------------------------------
Carl Becker                 | "Be wary of strong drink.  It can make
Developer Online Consulting |  you shoot at tax collectors . . . 
SGI                         |  and miss."  -Lazarus Long 

<Prev in Thread] Current Thread [Next in Thread>