timidity/output.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 12 Nov 2018 16:54:24 -0800
changeset 925 5945988b4a41
parent 811 d817ca30412d
permissions -rw-r--r--
Fixed bug 4371 - tvOS Simulator devices not listed

Caleb Cornett

In the Xcode-iOS project, when selecting the libSDL_mixer-tvOS target, no tvOS simulators appear in the available device dropdown.

This is easily fixed with the attached patch.
slouken@782
     1
/* 
slouken@782
     2
slouken@0
     3
    TiMidity -- Experimental MIDI to WAVE converter
slouken@0
     4
    Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
slouken@0
     5
slouken@0
     6
    This program is free software; you can redistribute it and/or modify
slouken@518
     7
    it under the terms of the Perl Artistic License, available in COPYING.
slouken@782
     8
slouken@782
     9
    output.h
slouken@782
    10
slouken@782
    11
*/
slouken@0
    12
slouken@0
    13
/* Data format encoding bits */
slouken@0
    14
slouken@0
    15
#define PE_MONO 	0x01  /* versus stereo */
slouken@0
    16
#define PE_SIGNED	0x02  /* versus unsigned */
slouken@0
    17
#define PE_16BIT 	0x04  /* versus 8-bit */
slouken@811
    18
#define PE_32BIT 	0x08  /* versus 8-bit or 16-bit */
slouken@0
    19
slouken@782
    20
/* Conversion functions -- These overwrite the Sint32 data in *lp with
slouken@0
    21
   data in another format */
slouken@0
    22
slouken@0
    23
/* 8-bit signed and unsigned*/
slouken@782
    24
extern void s32tos8(void *dp, Sint32 *lp, Sint32 c);
slouken@782
    25
extern void s32tou8(void *dp, Sint32 *lp, Sint32 c);
slouken@0
    26
slouken@0
    27
/* 16-bit */
slouken@782
    28
extern void s32tos16(void *dp, Sint32 *lp, Sint32 c);
slouken@782
    29
extern void s32tou16(void *dp, Sint32 *lp, Sint32 c);
slouken@0
    30
slouken@0
    31
/* byte-exchanged 16-bit */
slouken@782
    32
extern void s32tos16x(void *dp, Sint32 *lp, Sint32 c);
slouken@782
    33
extern void s32tou16x(void *dp, Sint32 *lp, Sint32 c);
slouken@0
    34
slouken@811
    35
/* 32-bit */
slouken@811
    36
extern void s32tof32(void *dp, Sint32 *lp, Sint32 c);
slouken@811
    37
extern void s32tos32(void *dp, Sint32 *lp, Sint32 c);
slouken@811
    38
slouken@811
    39
/* byte-exchanged 32-bit */
slouken@811
    40
extern void s32tos32x(void *dp, Sint32 *lp, Sint32 c);
slouken@811
    41
slouken@0
    42
/* little-endian and big-endian specific */
slouken@294
    43
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
slouken@811
    44
#define s32tos16l s32tos16
slouken@811
    45
#define s32tos16b s32tos16x
slouken@0
    46
#define s32tou16l s32tou16
slouken@0
    47
#define s32tou16b s32tou16x
slouken@811
    48
#define s32tos32l s32tos32
slouken@811
    49
#define s32tos32b s32tos32x
slouken@0
    50
#else
slouken@811
    51
#define s32tos16l s32tos16x
slouken@811
    52
#define s32tos16b s32tos16
slouken@0
    53
#define s32tou16l s32tou16x
slouken@0
    54
#define s32tou16b s32tou16
slouken@811
    55
#define s32tos32l s32tos32x
slouken@811
    56
#define s32tos32b s32tos32
slouken@0
    57
#endif