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