effects_internal.h
author Ozkan Sezer <sezeroz@gmail.com>
Sun, 07 Oct 2018 00:08:00 +0300
branchSDL-1.2
changeset 871 284d10d87cc9
parent 518 8bc9b5fd2aae
child 601 05123263dab3
permissions -rw-r--r--
backport fix for bug #1833. (from 2.0 branch commit 7ead8213dfb0).
     1 /*
     2   SDL_mixer:  An audio mixer library based on the SDL library
     3   Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
     4 
     5   This software is provided 'as-is', without any express or implied
     6   warranty.  In no event will the authors be held liable for any damages
     7   arising from the use of this software.
     8 
     9   Permission is granted to anyone to use this software for any purpose,
    10   including commercial applications, and to alter it and redistribute it
    11   freely, subject to the following restrictions:
    12 
    13   1. The origin of this software must not be misrepresented; you must not
    14      claim that you wrote the original software. If you use this software
    15      in a product, an acknowledgment in the product documentation would be
    16      appreciated but is not required.
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    21 
    22 /* $Id$ */
    23 
    24 #ifndef _INCLUDE_EFFECTS_INTERNAL_H_
    25 #define _INCLUDE_EFFECTS_INTERNAL_H_
    26 
    27 #ifndef __MIX_INTERNAL_EFFECT__
    28 #error You should not include this file or use these functions.
    29 #endif
    30 
    31 #include "SDL_mixer.h"
    32 
    33 /* Set up for C function definitions, even when using C++ */
    34 #ifdef __cplusplus
    35 extern "C" {
    36 #endif
    37 
    38 extern int _Mix_effects_max_speed;
    39 extern void *_Eff_volume_table;
    40 void *_Eff_build_volume_table_u8(void);
    41 void *_Eff_build_volume_table_s8(void);
    42 
    43 void _Mix_InitEffects(void);
    44 void _Mix_DeinitEffects(void);
    45 void _Eff_PositionDeinit(void);
    46 
    47 int _Mix_RegisterEffect_locked(int channel, Mix_EffectFunc_t f,
    48                                Mix_EffectDone_t d, void *arg);
    49 int _Mix_UnregisterEffect_locked(int channel, Mix_EffectFunc_t f);
    50 int _Mix_UnregisterAllEffects_locked(int channel);
    51 
    52 
    53 /* Set up for C function definitions, even when using C++ */
    54 #ifdef __cplusplus
    55 }
    56 #endif
    57 
    58 
    59 #endif
    60