Browse Source

Remove audiofile global init

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
d9570cef88
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 0 additions and 13 deletions
  1. +0
    -3
      source/modules/audio_decoder/ad.h
  2. +0
    -2
      source/modules/audio_decoder/ad_plugin.c
  3. +0
    -8
      source/native-plugins/audio-base.hpp

+ 0
- 3
source/modules/audio_decoder/ad.h View File

@@ -37,9 +37,6 @@ struct adinfo {
int can_seek;
};

/* global init function - register codecs */
void ad_init();

/* --- public API --- */

/** open an audio file


+ 0
- 2
source/modules/audio_decoder/ad_plugin.c View File

@@ -44,8 +44,6 @@ typedef struct {

/* samplecat api */

void ad_init() { /* global init */ }

static ad_plugin const * choose_backend(const char *fn) {
int max, val;
ad_plugin const *b=NULL;


+ 0
- 8
source/native-plugins/audio-base.hpp View File

@@ -245,14 +245,6 @@ public:
fResampler(),
fReaderMutex()
{
static bool adInitiated = false;

if (! adInitiated)
{
ad_init();
adInitiated = true;
}

ad_clear_nfo(&fFileNfo);
}



Loading…
Cancel
Save