<commit_before>/*
 * Copyright (c) 2015 <NAME>
 *
 * This file is part of libsoundio, which is MIT licensed.
 * See http://opensource.org/licenses/MIT
 */

#include "soundio_private.h"
#include "util.h"
#include "os.h"
#include "config.h"

#include <string.h>
#include <assert.h>
#include <stdio.h>

static const enum SoundIoBackend available_backends[] = {
#ifdef SOUNDIO_HAVE_JACK
    SoundIoBackendJack,
#endif
#ifdef SOUNDIO_HAVE_PULSEAUDIO
    SoundIoBackendPulseAudio,
#endif
#ifdef SOUNDIO_HAVE_ALSA
    SoundIoBackendAlsa,
#endif
#ifdef SOUNDIO_HAVE_COREAUDIO
    SoundIoBackendCoreAudio,
#endif
#ifdef SOUNDIO_HAVE_WASAPI
    SoundIoBackendWasapi,
#endif
    SoundIoBackendDummy,
};

typedef int (*backend_init_t)(struct SoundIoPrivate *);
static backend_init_t backend_init_fns[] = {
#ifdef SOUNDIO_HAVE_JACK
    &soundio_jack_init,
#else
    NULL,
#endif

#ifdef SOUNDIO_HAVE_PULSEAUDIO
    &soundio_pulseaudio_init,
#else
    NULL,
#endif

#ifdef SOUNDIO_HAVE_ALSA<commit_msg>Fix missing none backend initializer<commit_after>/*
 * Copyright (c) 2015 <NAME>
 *
 * This file is part of libsoundio, which is MIT licensed.
 * See http://opensource.org/licenses/MIT
 */

#include "soundio_private.h"
#include "util.h"
#include "os.h"
#include "config.h"

#include <string.h>
#include <assert.h>
#include <stdio.h>

static const enum SoundIoBackend available_backends[] = {
#ifdef SOUNDIO_HAVE_JACK
    SoundIoBackendJack,
#endif
#ifdef SOUNDIO_HAVE_PULSEAUDIO
    SoundIoBackendPulseAudio,
#endif
#ifdef SOUNDIO_HAVE_ALSA
    SoundIoBackendAlsa,
#endif
#ifdef SOUNDIO_HAVE_COREAUDIO
    SoundIoBackendCoreAudio,
#endif
#ifdef SOUNDIO_HAVE_WASAPI
    SoundIoBackendWasapi,
#endif
    SoundIoBackendDummy,
};

typedef int (*backend_init_t)(struct SoundIoPrivate *);
static backend_init_t backend_init_fns[] = {
    NULL, // None backend

#ifdef SOUNDIO_HAVE_JACK
    &soundio_jack_init,
#else
    NULL,
#endif

#ifdef SOUNDIO_HAVE_PULSEAUDIO
    &soundio_pulseaudio_init,
#else
    NULL,
#endif

#ifdef SOUNDIO_HAVE_ALSA
{'fraction_non_alphanumeric': 0.09723593287265547, 'fraction_numerical': 0.003948667324777887, 'mean_word_length': 5.256172839506172, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5780408', 'n_tokens_mistral': 776, 'n_tokens_neox': 755, 'n_words': 162}