mixer: Add name attr to mixer API

This commit is contained in:
Stein Magnus Jodal 2014-07-07 20:46:56 +02:00
parent 297aac4f5a
commit 50d008ae6a

View File

@ -4,6 +4,14 @@ from __future__ import unicode_literals
class Mixer(object):
"""Audio mixer API"""
name = None
"""Name of the mixer.
Used when configuring what mixer to use. Should usually match the
:attr:`~mopidy.ext.Extension.ext_name` of the extension providing the
mixer.
"""
def get_volume(self):
"""
Get volume level of the mixer.