Please support our sponsors!
This service provided by BeBits: The Best Source of BeOS Software!
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
914

LINKS HERE
OpenBeOS.MediaKit.NodeKinds
OpenBeOS
WartsInTheBeOSMediaKit

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

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