This Article is a guide to
- View all the Audio Output Interfaces associated with a device.
- Set a particular Audio Interface as the Default Audio Output Interface.
- Set the volume of the Audio Output Interface.
Note: This is applicable for players with Player ID 4000-0000-XXXX-XXXX only
---------------------------------------------------------------------------------------------------
View all the Audio Output Interfaces in detail
This command gives details like audio interface state, volume, channel data, etc of all the Audio Interfaces associated with the device being used.
Shell Command:
pacmd list-sinks
Example Output:
---------------------------------------------------------------------------------------------------
View only the Index and Description of all the Audio Output Interfaces
This command gives the Index of all the Audio Interfaces. This Index is later used to Change Volume, Change the Default Audio Interface.
Shell Command:
pacmd list-sinks | grep -e 'index:' -e 'device.description'
Example Output:
Note: In the example output, there is an * (asterisk) symbol next to index 6 indicating that the Audio Output Interface corresponding to Index 6 is currently in use by the device.
---------------------------------------------------------------------------------------------------
Set the default Audio Output Interface of the device.
This command is use to select a desired Audio Interface as the default output for the Device.
Shell Command:
pacmd set-default-sink <interface-index>
Note: Replace <interface-index> with the index of the Audio Interface as per your requirement.
Example: pacmd set-default-sink 7
---------------------------------------------------------------------------------------------------
Set the volume of the current Audio Output Interface.
This command will set the Volume of the Audio Interface which is currently selected.
Shell Command:
pactl set-sink-volume <interface-index> <volume-percentage>
Note: Replace <interface-index> with the index of the Audio Interface, replace <volume-percentage> with as per your requirement.
Example: pactl set-sink-volume 6 100%
Comments
0 comments
Please sign in to leave a comment.