dynamic_flac.h
changeset 777 92882ef2ab81
parent 776 07b8e286bc03
child 778 05c93f7af403
     1.1 --- a/dynamic_flac.h	Mon Oct 16 02:16:47 2017 -0700
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,66 +0,0 @@
     1.4 -/*
     1.5 -  SDL_mixer:  An audio mixer library based on the SDL library
     1.6 -  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
     1.7 -
     1.8 -  This software is provided 'as-is', without any express or implied
     1.9 -  warranty.  In no event will the authors be held liable for any damages
    1.10 -  arising from the use of this software.
    1.11 -
    1.12 -  Permission is granted to anyone to use this software for any purpose,
    1.13 -  including commercial applications, and to alter it and redistribute it
    1.14 -  freely, subject to the following restrictions:
    1.15 -
    1.16 -  1. The origin of this software must not be misrepresented; you must not
    1.17 -     claim that you wrote the original software. If you use this software
    1.18 -     in a product, an acknowledgment in the product documentation would be
    1.19 -     appreciated but is not required.
    1.20 -  2. Altered source versions must be plainly marked as such, and must not be
    1.21 -     misrepresented as being the original software.
    1.22 -  3. This notice may not be removed or altered from any source distribution.
    1.23 -
    1.24 -  The following file defines all of the functions/objects used to dynamically
    1.25 -  link to the libFLAC library.
    1.26 -    ~ Austen Dicken (admin@cvpcs.org)
    1.27 -*/
    1.28 -
    1.29 -#ifdef FLAC_MUSIC
    1.30 -
    1.31 -#include <FLAC/stream_decoder.h>
    1.32 -
    1.33 -typedef struct {
    1.34 -    int loaded;
    1.35 -    void *handle;
    1.36 -    FLAC__StreamDecoder *(*FLAC__stream_decoder_new)();
    1.37 -    void (*FLAC__stream_decoder_delete)(FLAC__StreamDecoder *decoder);
    1.38 -    FLAC__StreamDecoderInitStatus (*FLAC__stream_decoder_init_stream)(
    1.39 -                        FLAC__StreamDecoder *decoder,
    1.40 -                        FLAC__StreamDecoderReadCallback read_callback,
    1.41 -                        FLAC__StreamDecoderSeekCallback seek_callback,
    1.42 -                        FLAC__StreamDecoderTellCallback tell_callback,
    1.43 -                        FLAC__StreamDecoderLengthCallback length_callback,
    1.44 -                        FLAC__StreamDecoderEofCallback eof_callback,
    1.45 -                        FLAC__StreamDecoderWriteCallback write_callback,
    1.46 -                        FLAC__StreamDecoderMetadataCallback metadata_callback,
    1.47 -                        FLAC__StreamDecoderErrorCallback error_callback,
    1.48 -                        void *client_data);
    1.49 -    FLAC__bool (*FLAC__stream_decoder_finish)(FLAC__StreamDecoder *decoder);
    1.50 -    FLAC__bool (*FLAC__stream_decoder_flush)(FLAC__StreamDecoder *decoder);
    1.51 -    FLAC__bool (*FLAC__stream_decoder_process_single)(
    1.52 -                        FLAC__StreamDecoder *decoder);
    1.53 -    FLAC__bool (*FLAC__stream_decoder_process_until_end_of_metadata)(
    1.54 -                        FLAC__StreamDecoder *decoder);
    1.55 -    FLAC__bool (*FLAC__stream_decoder_process_until_end_of_stream)(
    1.56 -                        FLAC__StreamDecoder *decoder);
    1.57 -    FLAC__bool (*FLAC__stream_decoder_seek_absolute)(
    1.58 -                        FLAC__StreamDecoder *decoder,
    1.59 -                        FLAC__uint64 sample);
    1.60 -    FLAC__StreamDecoderState (*FLAC__stream_decoder_get_state)(
    1.61 -                        const FLAC__StreamDecoder *decoder);
    1.62 -} flac_loader;
    1.63 -
    1.64 -extern flac_loader flac;
    1.65 -
    1.66 -#endif /* FLAC_MUSIC */
    1.67 -
    1.68 -extern int Mix_InitFLAC();
    1.69 -extern void Mix_QuitFLAC();