BeBits Information Developer Central Submit Application Your Account Web Links Contact Us
BeBits
OpenBeOS.MediaKit.APIChanges
Proposed API Changes/Extensions for the Media Kit

BMediaRoster

Getting the right node

In addition to its general node handling functions, the MediaRoster provides the following API functions for connecting specifically to "system nodes"

  • GetAudioMixer() :
    This returns the system audio mixer - usually the first instance of a node with the System Mixer Kinds set.
  • GetAudioInput(), GetAudioOutput(), GetVideoInput(), GetVideoOutput() :
    These functions return the node specified as the 'default' Audio/Video Input/Output. This is done using the corresponding Set(Audio|Video)(Input|Output) call.

The proposal is to replace these functions with API calls that are more generalised, and applicable to all types of media.

  • GetMediaHub(media_type forType, media_node *outNode)
    Replaces GetAudioMixer(). A MediaHub is a node who (in addition to having the Media Hub Kinds set, specifies itself as the default connection point for one or more Type(s).
    So, the equivalent call to GetAudioMixer(mixerNode) is now GetMediaHub(B_MEDIA_RAW_AUDIO, mixerNode)

  • GetMediaInput(media_type forType, media_node *outNode),
    GetMediaOutput(media_type forType, media_node *outNode)
    Replace the separate audio/video functions with the new generalised versions.

  • SetMediaInput(media_type forType, const media_node &defaultNode)
    SetMediaOutput(media_type forType, const media_node &defaultNode)
    As above.

    DavidShipman


PAGE VISITS
1,299

LINKS HERE
OpenBeOS
WartsInTheBeOSMediaKit
OpenBeOS.MediaKit.NodeKinds

NEW PAGES
CrosscompilingFirefox
BuildingCairo
StoringDataInBetweenOSes
ScriptingBeosRuby
ScriptingBeosPython
HaikuOS
QemUwinbe
MinimalBeos
XpMBRoverwrite
SteveSakoman

RECENT CHANGES
BuildingFirebird
FrontPage
BeAcademic
CrosscompilingFirefox
HowTo
BuildingCairo
BeCommunity
PlayGround
CorumIII
SupportForMachinesAndArchitectures
Edit Page | Front Page | BeBits
Site content is in the public domain. Unless otherwise noted, everything else is copyright © 1999-2009 BeBits. All Rights Reserved.
For more legal trivia, take a gander at our
Legal Stuff page and our Privacy Statement.