def METHOD_NAME(self, fs, n_channels, api, name, api_options):
    """Select the API and device."""
    # API
    if api is None:
        api = get_config('SOUND_CARD_API', None)
    if api is None:
        # Eventually we should maybe allow 'Windows WDM-KS',
        # 'Windows DirectSound', or 'MME'
        api = dict(
            darwin='Core Audio',
            win32='Windows WASAPI',
            linux='ALSA',
            linux2='ALSA',
        )[sys.platform]
    key = (fs, n_channels, api, name)
    if key not in self:
        self[key] = _init_mixer(fs, n_channels, api, name, api_options)
    return self[key]