#5 Query interface

open
nobody
API (1)
5
2013-01-27
2011-10-02
Michael Gogins
No

Richard Dobson initiated this but it was not carried through. Provide a set of functions that all interfaces must implement:

interface = QueryInterface(rootInterface, InterfaceId)
AddRef(interface)
Release(interface)

Modeled on COM, but perhaps interface IDs don't need to be UUIDs but just names.

Discussion

  • John ffitch
    John ffitch
    2013-01-27

    An interesting idea, but I do not understand the types/signatures of these operations.

     
  • Victor Lazzarini
    Victor Lazzarini
    2013-01-27

    I am not convinced about the need for it. It might be more trouble than it is worth, an extra layer of complexity for API users, since this is not really a norm we observe across other audio APIs.