Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.23 KB

output.h

File metadata and controls

45 lines (34 loc) · 1.23 KB
 
Oct 18, 2017
Oct 18, 2017
1
2
/*
Oct 21, 1999
Oct 21, 1999
3
4
5
6
TiMidity -- Experimental MIDI to WAVE converter
Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
This program is free software; you can redistribute it and/or modify
Dec 31, 2011
Dec 31, 2011
7
it under the terms of the Perl Artistic License, available in COPYING.
Oct 18, 2017
Oct 18, 2017
8
9
10
11
output.h
*/
Oct 21, 1999
Oct 21, 1999
12
13
14
15
16
17
18
/* Data format encoding bits */
#define PE_MONO 0x01 /* versus stereo */
#define PE_SIGNED 0x02 /* versus unsigned */
#define PE_16BIT 0x04 /* versus 8-bit */
Oct 18, 2017
Oct 18, 2017
19
/* Conversion functions -- These overwrite the Sint32 data in *lp with
Oct 21, 1999
Oct 21, 1999
20
21
22
data in another format */
/* 8-bit signed and unsigned*/
Oct 18, 2017
Oct 18, 2017
23
24
extern void s32tos8(void *dp, Sint32 *lp, Sint32 c);
extern void s32tou8(void *dp, Sint32 *lp, Sint32 c);
Oct 21, 1999
Oct 21, 1999
25
26
/* 16-bit */
Oct 18, 2017
Oct 18, 2017
27
28
extern void s32tos16(void *dp, Sint32 *lp, Sint32 c);
extern void s32tou16(void *dp, Sint32 *lp, Sint32 c);
Oct 21, 1999
Oct 21, 1999
29
30
/* byte-exchanged 16-bit */
Oct 18, 2017
Oct 18, 2017
31
32
extern void s32tos16x(void *dp, Sint32 *lp, Sint32 c);
extern void s32tou16x(void *dp, Sint32 *lp, Sint32 c);
Oct 21, 1999
Oct 21, 1999
33
34
/* little-endian and big-endian specific */
Apr 30, 2006
Apr 30, 2006
35
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
Oct 21, 1999
Oct 21, 1999
36
37
38
39
40
41
42
43
44
45
#define s32tou16l s32tou16
#define s32tou16b s32tou16x
#define s32tos16l s32tos16
#define s32tos16b s32tos16x
#else
#define s32tou16l s32tou16x
#define s32tou16b s32tou16
#define s32tos16l s32tos16x
#define s32tos16b s32tos16
#endif