If you create your own kind, you won't break anything, but you should contact Be Developer Support for guidance, so we can standardize given your needs.
| Class Overview |
BParameterGroup();
Rather than directly creating a BParameterGroup
object via the new
operator, you should call
BParameterWeb::MakeGroup()
to create a top-level group, or
BParameterGroup::MakeGroup()
if you want to create a subgroup.
~BParameterGroup();
You don't need to delete a BParameterGroup
object; the
BParameterWeb
that owns it will do this for you when the web is deleted.
int32 CountGroups();
Returns the number of subgroups in the group. This count doesn't subgroups nested within subgroups.
int32 CountParameters();
Returns the number of
BParameter
s
in the group. This count doesn't include
BParameter
s
in subgroups.
BParameterGroup* GroupAt(int32 index);
Returns the subgroup at the specified index within the BParameterGroup
.
If the index
is negative, or is greater than
CountGroups()
-1,
NULL
is returned.
BNullParameter
* MakeNullParameter(int32 id,
media_type type,
const char* name,
const char* kind);
Creates a new
BNullParameter
within the group, with the internal ID specified by id
, which
should be unique within the
BParameterWeb
that owns the group.
The type of media data that travels through the null parameter is
indicated by type
, which could be B_MEDIA_UNKNOWN_TYPE
or
B_MEDIA_NO_TYPE
. The parameter's name
will be displayed by client
applications that display information about the node, and the parameter
has the specified kind
.
Constant | Description |
---|---|
| The parameter represents a physical input (such as a microphone jack or line input jack). |
| The parameter represents a physical output (such as a line output jack or headphone jack). |
| The parameter represents a point at which bits of data are transferred between the computer and the A/V input hardware. |
| The parameter represents a point at which bits of data are transferred between the computer and the A/V output hardware. |
| The parameter represents an analog to digital converter. |
| The parameter represents a digital to analog converter. |
| The parameter represents a media_input. |
| The parameter represents a media_output. |
| The parameter's kind isn't one of the above. |
These kinds are used when a control panel needs to draw a signal flow diagram, so it can use the appropriate symbols for these points in the flow.
If you create your own kind, you won't break anything, but you should contact Be Developer Support for guidance, so we can standardize given your needs.
BDiscreteParameter
* MakeDiscreteParameter(int32 id,
media_type type,
const char* name,
const char* kind);
Creates a new
BDiscreteParameter
object and attaches it to the group. The
BDiscreteParameter
will have the specified internal id
, which should be
unique within the
BParameterWeb
that owns the group.
The
BDiscreteParameter
will affect media data of the specified type
, and
will have the specified name
.
The kind of discrete parameter is specified by kind
, and may be any of
the following values:
Constant | Description |
---|---|
| The parameter represents a mute control; a value of 0 passes data through unchanged, while a value of 1 mutes the data. |
| The parameter represents an enable toggle; a value of 0 disables the function while a value of 1 enables it. |
| The parameter represents an input MUX. The value specifies which input should pass through. |
| The parameter represents an output MUX; the value specifies which output should receive the incoming data. |
| The parameter represents a channel tuner (like a TV channel); the value indicates the channel number. |
| The parameter's value indicates a track number. |
| The parameter indicates whether the node is silent (0), playing (1), or recording (2). |
| The parameter indicates performance mode: -1 for backwards, 0 for stop, 1 for playing, and 2 for paused. |
| The parameter indicates video or audio resolution. |
| The parameter indicates video color space. |
| The parameter represents a selector for picking frame rate. |
BContinuousParameter
* MakeContinuousParameter(int32 id,
media_type type,
const char* name,
const char* kind,
const char* unit,
float minValue,
float maxValue,
float step);
Creates a new
BContinuousParameter
object and attaches it to the group. The
BContinuousParameter
will have the specified internal id
, which
should be unique within the
BParameterWeb
that owns the group.
The
BContinuousParameter
will affect media data of the specified type
,
and will have the specified name
.
The kind of parameter the
BContinuousParameter
represents is specified by
kind
, and may be any of the following values:
Constant | Description |
---|---|
| The parameter represents the main volume control. |
| The parameter represents a gain control. |
| The parameter represents a balance control. |
| The parameter represents a frequency, like a radio tuner. |
| The parameter represents a level, as in EQ and effects. |
| The parameter represents playback speed. A value of 1.0 indicates normal speed; less than 1.0 is slower, greater than 1.0 is faster. |
| The parameter indicates a crossfade for mixing audio or video; 0 indicates that the the first of a pair of streams should be presented, 100 indicates that the other should be presented, and values in between indicate the degree of mixing that should occur. |
| The parameter indicates compression ratio; the value is 0 for no compression, 99 for 100:1 compression. |
| The parameter indicates quality level; the value is 0 for maximum compression, 100 for no compression. |
| The parameter indicates a "group of pictures" such as how many frames apart a keyframe should be inserted into a video stream. |
| The parameter represents a channel tuner (like a TV channel); the value indicates the channel number. |
The units of measurement are specified by
unit
, and the parameter's value can range from
minValue
to maxValue
,
with a granularity of step
.
const char* Name();
Returns the name of the BParameterGroup
. This name can be displayed to
the user; for example, it could be used as the label of a
BTab
.
BParameter
* ParameterAt(int32 index);
Returns the
BParameter
at the specified index
within the BParameterGroup
.
If the index
is negative, or is greater than
CountParameters()
-1,
NULL
is returned.