Cvc.MixerUIDevice¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Set/Get card |
||
r/w |
Set first line description |
||
r/w/c |
Name of icon to display for this card |
||
r/w |
Set second line description name |
||
r/w |
determine whether this port is available |
||
r/w |
Set port-name |
||
r/w |
Set/Get stream id |
||
r/w |
determine whether its an input and output |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Cvc.MixerUIDevice(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- get_best_profile(selected, current)¶
- get_profiles()¶
- Return type:
- get_supported_profiles()¶
- Return type:
- invalidate_stream()¶
- set_profiles(in_profiles)¶
- Parameters:
in_profiles ([
Cvc.MixerCardProfile
]) – a list ofCvc.MixerCardProfile
Assigns value to
device->priv->profiles (profiles to be added to combobox)
device->priv->supported_profiles (all profiles of this port)
device->priv->disable_profile_swapping (whether to show the combobox)
This method attempts to reduce the list of profiles visible to the user by figuring out from the context of that device (whether it’s an input or an output) what profiles actually provide an alternative.
It does this by the following.
It ignores off profiles.
It takes the canonical name of the profile. That name is what you get when you ignore the other direction.
In the first iteration, it only adds the names of canonical profiles - i e when the other side is turned off.
Normally the first iteration covers all cases, but sometimes (e g bluetooth) it doesn’t, so add other profiles whose canonical name isn’t already added in a second iteration.
- Return type:
Property Details¶
- Cvc.MixerUIDevice.props.card¶
-
Set/Get card
- Cvc.MixerUIDevice.props.description¶
-
Set first line description
- Cvc.MixerUIDevice.props.icon_name¶
-
Name of icon to display for this card
- Cvc.MixerUIDevice.props.origin¶
-
Set second line description name
- Cvc.MixerUIDevice.props.port_available¶
-
determine whether this port is available
- Cvc.MixerUIDevice.props.port_name¶
-
Set port-name
- Cvc.MixerUIDevice.props.stream_id¶
-
Set/Get stream id