1 0
import os
2

3 0
import mopidy
4 0
from mopidy import config, ext
5

6

7 0
class Extension(ext.Extension):
8

9 0
    dist_name = "Mopidy-SoftwareMixer"
10 0
    ext_name = "softwaremixer"
11 0
    version = mopidy.__version__
12

13 0
    def get_default_config(self):
14 0
        conf_file = os.path.join(os.path.dirname(__file__), "ext.conf")
15 0
        return config.read(conf_file)
16

17 0
    def get_config_schema(self):
18 0
        schema = super().get_config_schema()
19 0
        return schema
20

21 0
    def setup(self, registry):
22 0
        from .mixer import SoftwareMixer
23

24 0
        registry.add("mixer", SoftwareMixer)

Read our documentation on viewing source code .

Loading