@get


Description:

public static unowned Audio @get (Session session, MainContext? context)

Gets the Audio associated with the passed in Session.

A new Audio instance will be created the first time this function is called for a certain Session.

Note that this function returns a weak reference, which should not be used after the Session itself has been unref-ed by the caller.

Parameters:

session

the Session to connect to

context

a MainContext to attach to (or null for default).

Returns:

a weak reference to a Audio instance or null if failed.