gosu 0.8.0.pre3 → 0.8.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/Gosu/Buttons.hpp +13 -11
  3. data/{linux → ext/gosu}/extconf.rb +25 -47
  4. data/{GosuImpl/RubyGosu_wrap.cxx → ext/gosu/gosu_wrap.cxx} +3 -2
  5. data/{GosuImpl/RubyGosu_wrap.h → ext/gosu/gosu_wrap.h} +0 -0
  6. data/lib/gosu.rb +6 -7
  7. data/lib/gosu/zen.rb +12 -0
  8. data/{GosuImpl → src}/Audio/ALChannelManagement.hpp +0 -0
  9. data/{GosuImpl → src}/Audio/AudioFile.hpp +0 -0
  10. data/{GosuImpl → src}/Audio/AudioOpenAL.cpp +0 -0
  11. data/{GosuImpl → src}/Audio/AudioOpenAL.mm +0 -0
  12. data/{GosuImpl → src}/Audio/AudioToolboxFile.hpp +0 -0
  13. data/{GosuImpl → src}/Audio/OggFile.hpp +0 -0
  14. data/{GosuImpl → src}/Audio/SndFile.hpp +0 -0
  15. data/{GosuImpl/Graphics → src/Bitmap}/Bitmap.cpp +2 -0
  16. data/{GosuImpl/Graphics → src/Bitmap}/BitmapApple.mm +0 -0
  17. data/{GosuImpl/Graphics → src/Bitmap}/BitmapBMP.cpp +0 -0
  18. data/{GosuImpl/Graphics → src/Bitmap}/BitmapColorKey.cpp +0 -0
  19. data/{GosuImpl/Graphics → src/Bitmap}/BitmapFreeImage.cpp +0 -0
  20. data/{GosuImpl/Graphics → src/Bitmap}/BitmapGDIplus.cpp +0 -0
  21. data/{GosuImpl/Graphics → src/Bitmap}/BitmapUtils.cpp +0 -0
  22. data/{GosuImpl → src}/DirectoriesMac.mm +0 -0
  23. data/{GosuImpl → src}/DirectoriesTouch.mm +0 -0
  24. data/{GosuImpl → src}/DirectoriesUnix.cpp +0 -0
  25. data/{GosuImpl → src}/DirectoriesWin.cpp +0 -0
  26. data/{GosuImpl → src}/FileUnix.cpp +0 -0
  27. data/{GosuImpl → src}/FileWin.cpp +0 -0
  28. data/{GosuImpl/Graphics → src}/GosuView.hpp +0 -0
  29. data/{GosuImpl/Graphics → src}/GosuView.mm +0 -0
  30. data/{GosuImpl → src}/Graphics/BlockAllocator.cpp +0 -0
  31. data/{GosuImpl → src}/Graphics/BlockAllocator.hpp +0 -0
  32. data/{GosuImpl → src}/Graphics/ClipRectStack.hpp +0 -0
  33. data/{GosuImpl → src}/Graphics/Color.cpp +0 -0
  34. data/{GosuImpl → src}/Graphics/Common.hpp +0 -0
  35. data/{GosuImpl → src}/Graphics/DrawOp.hpp +0 -0
  36. data/{GosuImpl → src}/Graphics/DrawOpQueue.hpp +0 -0
  37. data/{GosuImpl → src}/Graphics/Graphics.cpp +0 -0
  38. data/{GosuImpl → src}/Graphics/Image.cpp +0 -0
  39. data/{GosuImpl → src}/Graphics/LargeImageData.cpp +0 -0
  40. data/{GosuImpl → src}/Graphics/LargeImageData.hpp +0 -0
  41. data/{GosuImpl → src}/Graphics/Macro.hpp +0 -0
  42. data/{GosuImpl → src}/Graphics/RenderState.hpp +0 -0
  43. data/{GosuImpl → src}/Graphics/TexChunk.cpp +0 -0
  44. data/{GosuImpl → src}/Graphics/TexChunk.hpp +0 -0
  45. data/{GosuImpl → src}/Graphics/Texture.cpp +0 -0
  46. data/{GosuImpl → src}/Graphics/Texture.hpp +0 -0
  47. data/{GosuImpl → src}/Graphics/Transform.cpp +0 -0
  48. data/{GosuImpl → src}/Graphics/TransformStack.hpp +0 -0
  49. data/{GosuImpl → src}/IO.cpp +0 -0
  50. data/{GosuImpl → src}/Iconv.hpp +0 -0
  51. data/{GosuImpl → src}/Input/AccelerometerReader.hpp +0 -0
  52. data/{GosuImpl → src}/Input/AccelerometerReader.mm +0 -0
  53. data/{GosuImpl → src/Input}/Input.cpp +0 -0
  54. data/{GosuImpl → src/Input}/InputTouch.mm +0 -0
  55. data/{GosuImpl → src/Input}/TextInput.cpp +0 -0
  56. data/{GosuImpl → src/Input}/TextInputMac.mm +0 -0
  57. data/{GosuImpl → src}/Inspection.cpp +0 -0
  58. data/{GosuImpl → src}/MacUtility.hpp +0 -0
  59. data/{GosuImpl → src}/Math.cpp +0 -0
  60. data/{GosuImpl → src}/Sockets/CommSocket.cpp +0 -0
  61. data/{GosuImpl → src}/Sockets/ListenerSocket.cpp +0 -0
  62. data/{GosuImpl → src}/Sockets/MessageSocket.cpp +0 -0
  63. data/{GosuImpl → src}/Sockets/Socket.cpp +0 -0
  64. data/{GosuImpl → src}/Sockets/Socket.hpp +0 -0
  65. data/{GosuImpl/Graphics → src/Text}/Font.cpp +1 -1
  66. data/{GosuImpl/Graphics → src/Text}/FormattedString.hpp +0 -0
  67. data/{GosuImpl/Graphics → src/Text}/Text.cpp +1 -1
  68. data/{GosuImpl/Graphics/TextTouch.mm → src/Text/TextApple.mm} +0 -0
  69. data/{GosuImpl/Graphics → src/Text}/TextMac.cpp +1 -1
  70. data/{GosuImpl/Graphics → src/Text}/TextTTFWin.cpp +0 -0
  71. data/{GosuImpl/Graphics → src/Text}/TextUnix.cpp +0 -0
  72. data/{GosuImpl/Graphics → src/Text}/TextWin.cpp +0 -0
  73. data/{GosuImpl → src}/TimingApple.cpp +0 -0
  74. data/{GosuImpl → src}/TimingUnix.cpp +0 -0
  75. data/{GosuImpl → src}/TimingWin.cpp +0 -0
  76. data/{GosuImpl → src}/Utility.cpp +0 -0
  77. data/{GosuImpl → src}/UtilityApple.mm +0 -0
  78. data/{GosuImpl → src}/UtilityWin.cpp +0 -0
  79. data/{GosuImpl → src}/WinMain.cpp +0 -0
  80. data/{GosuImpl → src}/WinUtility.cpp +0 -0
  81. data/{GosuImpl → src}/Window.cpp +0 -0
  82. data/{GosuImpl → src}/WindowTouch.mm +0 -0
  83. data/{GosuImpl → src}/X11vroot.h +0 -0
  84. metadata +97 -193
  85. data/.yardopts +0 -1
  86. data/COPYING +0 -29
  87. data/GosuImpl/InputMac.mm +0 -733
  88. data/GosuImpl/InputWin.cpp +0 -483
  89. data/GosuImpl/InputX.cpp +0 -243
  90. data/GosuImpl/RubyGosu.swg +0 -821
  91. data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +0 -126
  92. data/GosuImpl/RubyGosu_SWIG_RENAME_PATCH.patch +0 -62
  93. data/GosuImpl/TextInputWin.cpp +0 -211
  94. data/GosuImpl/TextInputX.cpp +0 -217
  95. data/GosuImpl/WindowWin.cpp +0 -534
  96. data/GosuImpl/WindowX.cpp +0 -458
  97. data/README.txt +0 -25
  98. data/dependencies/libogg/AUTHORS +0 -4
  99. data/dependencies/libogg/CHANGES +0 -70
  100. data/dependencies/libogg/COPYING +0 -28
  101. data/dependencies/libogg/include/ogg/ogg.h +0 -209
  102. data/dependencies/libogg/include/ogg/os_types.h +0 -147
  103. data/dependencies/libogg/src/bitwise.c +0 -857
  104. data/dependencies/libogg/src/framing.c +0 -2089
  105. data/dependencies/libvorbis/AUTHORS +0 -3
  106. data/dependencies/libvorbis/CHANGES +0 -126
  107. data/dependencies/libvorbis/COPYING +0 -28
  108. data/dependencies/libvorbis/include/vorbis/codec.h +0 -243
  109. data/dependencies/libvorbis/include/vorbis/vorbisenc.h +0 -436
  110. data/dependencies/libvorbis/include/vorbis/vorbisfile.h +0 -206
  111. data/dependencies/libvorbis/lib/analysis.c +0 -120
  112. data/dependencies/libvorbis/lib/backends.h +0 -144
  113. data/dependencies/libvorbis/lib/barkmel.c +0 -64
  114. data/dependencies/libvorbis/lib/bitrate.c +0 -253
  115. data/dependencies/libvorbis/lib/bitrate.h +0 -59
  116. data/dependencies/libvorbis/lib/block.c +0 -1046
  117. data/dependencies/libvorbis/lib/books/coupled/res_books_51.h +0 -12257
  118. data/dependencies/libvorbis/lib/books/coupled/res_books_stereo.h +0 -15783
  119. data/dependencies/libvorbis/lib/books/floor/floor_books.h +0 -1547
  120. data/dependencies/libvorbis/lib/books/uncoupled/res_books_uncoupled.h +0 -7758
  121. data/dependencies/libvorbis/lib/codebook.c +0 -479
  122. data/dependencies/libvorbis/lib/codebook.h +0 -119
  123. data/dependencies/libvorbis/lib/codec_internal.h +0 -167
  124. data/dependencies/libvorbis/lib/envelope.c +0 -375
  125. data/dependencies/libvorbis/lib/envelope.h +0 -80
  126. data/dependencies/libvorbis/lib/floor0.c +0 -222
  127. data/dependencies/libvorbis/lib/floor1.c +0 -1099
  128. data/dependencies/libvorbis/lib/highlevel.h +0 -58
  129. data/dependencies/libvorbis/lib/info.c +0 -664
  130. data/dependencies/libvorbis/lib/lookup.c +0 -94
  131. data/dependencies/libvorbis/lib/lookup.h +0 -32
  132. data/dependencies/libvorbis/lib/lookup_data.h +0 -192
  133. data/dependencies/libvorbis/lib/lpc.c +0 -160
  134. data/dependencies/libvorbis/lib/lpc.h +0 -29
  135. data/dependencies/libvorbis/lib/lsp.c +0 -456
  136. data/dependencies/libvorbis/lib/lsp.h +0 -28
  137. data/dependencies/libvorbis/lib/mapping0.c +0 -816
  138. data/dependencies/libvorbis/lib/masking.h +0 -785
  139. data/dependencies/libvorbis/lib/mdct.c +0 -563
  140. data/dependencies/libvorbis/lib/mdct.h +0 -71
  141. data/dependencies/libvorbis/lib/misc.h +0 -57
  142. data/dependencies/libvorbis/lib/modes/floor_all.h +0 -260
  143. data/dependencies/libvorbis/lib/modes/psych_11.h +0 -51
  144. data/dependencies/libvorbis/lib/modes/psych_16.h +0 -133
  145. data/dependencies/libvorbis/lib/modes/psych_44.h +0 -642
  146. data/dependencies/libvorbis/lib/modes/psych_8.h +0 -101
  147. data/dependencies/libvorbis/lib/modes/residue_16.h +0 -163
  148. data/dependencies/libvorbis/lib/modes/residue_44.h +0 -292
  149. data/dependencies/libvorbis/lib/modes/residue_44p51.h +0 -451
  150. data/dependencies/libvorbis/lib/modes/residue_44u.h +0 -318
  151. data/dependencies/libvorbis/lib/modes/residue_8.h +0 -109
  152. data/dependencies/libvorbis/lib/modes/setup_11.h +0 -143
  153. data/dependencies/libvorbis/lib/modes/setup_16.h +0 -153
  154. data/dependencies/libvorbis/lib/modes/setup_22.h +0 -128
  155. data/dependencies/libvorbis/lib/modes/setup_32.h +0 -132
  156. data/dependencies/libvorbis/lib/modes/setup_44.h +0 -117
  157. data/dependencies/libvorbis/lib/modes/setup_44p51.h +0 -74
  158. data/dependencies/libvorbis/lib/modes/setup_44u.h +0 -74
  159. data/dependencies/libvorbis/lib/modes/setup_8.h +0 -149
  160. data/dependencies/libvorbis/lib/modes/setup_X.h +0 -225
  161. data/dependencies/libvorbis/lib/os.h +0 -186
  162. data/dependencies/libvorbis/lib/psy.c +0 -1203
  163. data/dependencies/libvorbis/lib/psy.h +0 -154
  164. data/dependencies/libvorbis/lib/psytune.c +0 -524
  165. data/dependencies/libvorbis/lib/registry.c +0 -45
  166. data/dependencies/libvorbis/lib/registry.h +0 -32
  167. data/dependencies/libvorbis/lib/res0.c +0 -889
  168. data/dependencies/libvorbis/lib/scales.h +0 -90
  169. data/dependencies/libvorbis/lib/sharedbook.c +0 -579
  170. data/dependencies/libvorbis/lib/smallft.c +0 -1255
  171. data/dependencies/libvorbis/lib/smallft.h +0 -34
  172. data/dependencies/libvorbis/lib/synthesis.c +0 -184
  173. data/dependencies/libvorbis/lib/tone.c +0 -54
  174. data/dependencies/libvorbis/lib/vorbisenc.c +0 -1215
  175. data/dependencies/libvorbis/lib/vorbisfile.c +0 -2337
  176. data/dependencies/libvorbis/lib/window.c +0 -2135
  177. data/dependencies/libvorbis/lib/window.h +0 -26
  178. data/dependencies/ogg_vorbis.license +0 -28
  179. data/reference/gosu.rb +0 -1284
data/README.txt DELETED
@@ -1,25 +0,0 @@
1
-  Moin and welcome to Gosu!
2
-
3
-  Gosu's main website is http://www.libgosu.org/, which always has the latest
4
- links to all relevant information.
5
-
6
-  The actual source code, wiki, issue tracker etc. are all hosted on GitHub:
7
-
8
- http://github.com/jlnr/gosu/
9
-
10
-  The best entry point into Gosu's documentation is the wiki home page:
11
-
12
- http://github.com/jlnr/gosu/wiki
13
-
14
-  Try doing the tutorial there if you don't know how to start out. Or look at
15
- one of the games in the Gosu Users board.
16
-
17
-  Remember that Gosu is licensed under the MIT license and feel invited to fork,
18
- port and transmogrify all parts of it. The only license that may affect you by
19
- indirection is libogg's (BSD-style). If you release a Gosu game in any common
20
- binary form, you will need to mention use of libogg and libvorbis somewhere.
21
-
22
-  Complaints, questions, feedback?
23
- * Visit the boards, http://www.libgosu.org/
24
- * try your luck in the chat, irc://irc.freenode.org/gosu
25
- * or e-mail me. Have fun, write games! julian@raschke.de
@@ -1,4 +0,0 @@
1
- Monty <monty@xiph.org>
2
-
3
- and the rest of the Xiph.Org Foundation.
4
-
@@ -1,70 +0,0 @@
1
- Version 1.2.2 (2010 December 07)
2
-
3
- * Build fix (types correction) for Mac OS X
4
- * Update win32 project files to Visual Studio 2008
5
- * ogg_stream_pageout_fill documentation fix
6
-
7
- Version 1.2.1 (2010 November 01)
8
-
9
- * Various build updates (see SVN)
10
- * Add ogg_stream_pageout_fill() to API to allow applications
11
- greater explicit flexibility in page sizing.
12
- * Documentation updates including multiplexing description,
13
- terminology and API (incl. ogg_packet_clear(),
14
- ogg_stream_pageout_fill())
15
- * Correct possible buffer overwrite in stream encoding on 32 bit
16
- when a single packet exceed 250MB.
17
- * Correct read-buffer overrun [without side effects] under
18
- similar circumstances.
19
- * Update unit testing to work properly with new page spill
20
- heuristic.
21
-
22
- Version 1.2.0 (2010 March 25)
23
-
24
- * Alter default flushing behavior to span less often and use larger page
25
- sizes when packet sizes are large.
26
- * Build fixes for additional compilers
27
- * Documentation updates
28
-
29
- Version 1.1.4 (2009 June 24)
30
-
31
- * New async error reporting mechanism. Calls made after a fatal error are
32
- now safely handled in the event an error code is ignored
33
- * Added allocation checks useful to some embedded applications
34
- * fix possible read past end of buffer when reading 0 bits
35
- * Updates to API documentation
36
- * Build fixes
37
-
38
- Version 1.1.3 (2005 November 27)
39
-
40
- * Correct a bug in the granulepos field of pages where no packet ends
41
- * New VS2003 and XCode builds, minor fixes to other builds
42
- * documentation fixes and cleanup
43
-
44
- Version 1.1.2 (2004 September 23)
45
-
46
- * fix a bug with multipage packet assembly after seek
47
-
48
- Version 1.1.1 (2004 September 12)
49
-
50
- * various bugfixes
51
- * important bugfix for 64-bit platforms
52
- * various portability fixes
53
- * autotools cleanup from Thomas Vander Stichele
54
- * Symbian OS build support from Colin Ward at CSIRO
55
- * new multiplexed Ogg stream documentation
56
-
57
- Version 1.1 (2003 November 17)
58
-
59
- * big-endian bitpacker routines for Theora
60
- * various portability fixes
61
- * improved API documenation
62
- * RFC 3533 documentation of the format by Silvia Pfeiffer at CSIRO
63
- * RFC 3534 documentation of the application/ogg mime-type by Linus Walleij
64
-
65
- Version 1.0 (2002 July 19)
66
-
67
- * First stable release
68
- * little-endian bitpacker routines for Vorbis
69
- * basic Ogg bitstream sync and coding support
70
-
@@ -1,28 +0,0 @@
1
- Copyright (c) 2002, Xiph.org Foundation
2
-
3
- Redistribution and use in source and binary forms, with or without
4
- modification, are permitted provided that the following conditions
5
- are met:
6
-
7
- - Redistributions of source code must retain the above copyright
8
- notice, this list of conditions and the following disclaimer.
9
-
10
- - Redistributions in binary form must reproduce the above copyright
11
- notice, this list of conditions and the following disclaimer in the
12
- documentation and/or other materials provided with the distribution.
13
-
14
- - Neither the name of the Xiph.org Foundation nor the names of its
15
- contributors may be used to endorse or promote products derived from
16
- this software without specific prior written permission.
17
-
18
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION
22
- OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,209 +0,0 @@
1
- /********************************************************************
2
- * *
3
- * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4
- * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5
- * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6
- * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7
- * *
8
- * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2007 *
9
- * by the Xiph.Org Foundation http://www.xiph.org/ *
10
- * *
11
- ********************************************************************
12
-
13
- function: toplevel libogg include
14
- last mod: $Id: ogg.h 17571 2010-10-27 13:28:20Z xiphmont $
15
-
16
- ********************************************************************/
17
- #ifndef _OGG_H
18
- #define _OGG_H
19
-
20
- #ifdef __cplusplus
21
- extern "C" {
22
- #endif
23
-
24
- #include <stddef.h>
25
- #include <ogg/os_types.h>
26
-
27
- typedef struct {
28
- void *iov_base;
29
- size_t iov_len;
30
- } ogg_iovec_t;
31
-
32
- typedef struct {
33
- long endbyte;
34
- int endbit;
35
-
36
- unsigned char *buffer;
37
- unsigned char *ptr;
38
- long storage;
39
- } oggpack_buffer;
40
-
41
- /* ogg_page is used to encapsulate the data in one Ogg bitstream page *****/
42
-
43
- typedef struct {
44
- unsigned char *header;
45
- long header_len;
46
- unsigned char *body;
47
- long body_len;
48
- } ogg_page;
49
-
50
- /* ogg_stream_state contains the current encode/decode state of a logical
51
- Ogg bitstream **********************************************************/
52
-
53
- typedef struct {
54
- unsigned char *body_data; /* bytes from packet bodies */
55
- long body_storage; /* storage elements allocated */
56
- long body_fill; /* elements stored; fill mark */
57
- long body_returned; /* elements of fill returned */
58
-
59
-
60
- int *lacing_vals; /* The values that will go to the segment table */
61
- ogg_int64_t *granule_vals; /* granulepos values for headers. Not compact
62
- this way, but it is simple coupled to the
63
- lacing fifo */
64
- long lacing_storage;
65
- long lacing_fill;
66
- long lacing_packet;
67
- long lacing_returned;
68
-
69
- unsigned char header[282]; /* working space for header encode */
70
- int header_fill;
71
-
72
- int e_o_s; /* set when we have buffered the last packet in the
73
- logical bitstream */
74
- int b_o_s; /* set after we've written the initial page
75
- of a logical bitstream */
76
- long serialno;
77
- long pageno;
78
- ogg_int64_t packetno; /* sequence number for decode; the framing
79
- knows where there's a hole in the data,
80
- but we need coupling so that the codec
81
- (which is in a separate abstraction
82
- layer) also knows about the gap */
83
- ogg_int64_t granulepos;
84
-
85
- } ogg_stream_state;
86
-
87
- /* ogg_packet is used to encapsulate the data and metadata belonging
88
- to a single raw Ogg/Vorbis packet *************************************/
89
-
90
- typedef struct {
91
- unsigned char *packet;
92
- long bytes;
93
- long b_o_s;
94
- long e_o_s;
95
-
96
- ogg_int64_t granulepos;
97
-
98
- ogg_int64_t packetno; /* sequence number for decode; the framing
99
- knows where there's a hole in the data,
100
- but we need coupling so that the codec
101
- (which is in a separate abstraction
102
- layer) also knows about the gap */
103
- } ogg_packet;
104
-
105
- typedef struct {
106
- unsigned char *data;
107
- int storage;
108
- int fill;
109
- int returned;
110
-
111
- int unsynced;
112
- int headerbytes;
113
- int bodybytes;
114
- } ogg_sync_state;
115
-
116
- /* Ogg BITSTREAM PRIMITIVES: bitstream ************************/
117
-
118
- extern void oggpack_writeinit(oggpack_buffer *b);
119
- extern int oggpack_writecheck(oggpack_buffer *b);
120
- extern void oggpack_writetrunc(oggpack_buffer *b,long bits);
121
- extern void oggpack_writealign(oggpack_buffer *b);
122
- extern void oggpack_writecopy(oggpack_buffer *b,void *source,long bits);
123
- extern void oggpack_reset(oggpack_buffer *b);
124
- extern void oggpack_writeclear(oggpack_buffer *b);
125
- extern void oggpack_readinit(oggpack_buffer *b,unsigned char *buf,int bytes);
126
- extern void oggpack_write(oggpack_buffer *b,unsigned long value,int bits);
127
- extern long oggpack_look(oggpack_buffer *b,int bits);
128
- extern long oggpack_look1(oggpack_buffer *b);
129
- extern void oggpack_adv(oggpack_buffer *b,int bits);
130
- extern void oggpack_adv1(oggpack_buffer *b);
131
- extern long oggpack_read(oggpack_buffer *b,int bits);
132
- extern long oggpack_read1(oggpack_buffer *b);
133
- extern long oggpack_bytes(oggpack_buffer *b);
134
- extern long oggpack_bits(oggpack_buffer *b);
135
- extern unsigned char *oggpack_get_buffer(oggpack_buffer *b);
136
-
137
- extern void oggpackB_writeinit(oggpack_buffer *b);
138
- extern int oggpackB_writecheck(oggpack_buffer *b);
139
- extern void oggpackB_writetrunc(oggpack_buffer *b,long bits);
140
- extern void oggpackB_writealign(oggpack_buffer *b);
141
- extern void oggpackB_writecopy(oggpack_buffer *b,void *source,long bits);
142
- extern void oggpackB_reset(oggpack_buffer *b);
143
- extern void oggpackB_writeclear(oggpack_buffer *b);
144
- extern void oggpackB_readinit(oggpack_buffer *b,unsigned char *buf,int bytes);
145
- extern void oggpackB_write(oggpack_buffer *b,unsigned long value,int bits);
146
- extern long oggpackB_look(oggpack_buffer *b,int bits);
147
- extern long oggpackB_look1(oggpack_buffer *b);
148
- extern void oggpackB_adv(oggpack_buffer *b,int bits);
149
- extern void oggpackB_adv1(oggpack_buffer *b);
150
- extern long oggpackB_read(oggpack_buffer *b,int bits);
151
- extern long oggpackB_read1(oggpack_buffer *b);
152
- extern long oggpackB_bytes(oggpack_buffer *b);
153
- extern long oggpackB_bits(oggpack_buffer *b);
154
- extern unsigned char *oggpackB_get_buffer(oggpack_buffer *b);
155
-
156
- /* Ogg BITSTREAM PRIMITIVES: encoding **************************/
157
-
158
- extern int ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op);
159
- extern int ogg_stream_iovecin(ogg_stream_state *os, ogg_iovec_t *iov,
160
- int count, long e_o_s, ogg_int64_t granulepos);
161
- extern int ogg_stream_pageout(ogg_stream_state *os, ogg_page *og);
162
- extern int ogg_stream_pageout_fill(ogg_stream_state *os, ogg_page *og, int nfill);
163
- extern int ogg_stream_flush(ogg_stream_state *os, ogg_page *og);
164
-
165
- /* Ogg BITSTREAM PRIMITIVES: decoding **************************/
166
-
167
- extern int ogg_sync_init(ogg_sync_state *oy);
168
- extern int ogg_sync_clear(ogg_sync_state *oy);
169
- extern int ogg_sync_reset(ogg_sync_state *oy);
170
- extern int ogg_sync_destroy(ogg_sync_state *oy);
171
- extern int ogg_sync_check(ogg_sync_state *oy);
172
-
173
- extern char *ogg_sync_buffer(ogg_sync_state *oy, long size);
174
- extern int ogg_sync_wrote(ogg_sync_state *oy, long bytes);
175
- extern long ogg_sync_pageseek(ogg_sync_state *oy,ogg_page *og);
176
- extern int ogg_sync_pageout(ogg_sync_state *oy, ogg_page *og);
177
- extern int ogg_stream_pagein(ogg_stream_state *os, ogg_page *og);
178
- extern int ogg_stream_packetout(ogg_stream_state *os,ogg_packet *op);
179
- extern int ogg_stream_packetpeek(ogg_stream_state *os,ogg_packet *op);
180
-
181
- /* Ogg BITSTREAM PRIMITIVES: general ***************************/
182
-
183
- extern int ogg_stream_init(ogg_stream_state *os,int serialno);
184
- extern int ogg_stream_clear(ogg_stream_state *os);
185
- extern int ogg_stream_reset(ogg_stream_state *os);
186
- extern int ogg_stream_reset_serialno(ogg_stream_state *os,int serialno);
187
- extern int ogg_stream_destroy(ogg_stream_state *os);
188
- extern int ogg_stream_check(ogg_stream_state *os);
189
- extern int ogg_stream_eos(ogg_stream_state *os);
190
-
191
- extern void ogg_page_checksum_set(ogg_page *og);
192
-
193
- extern int ogg_page_version(const ogg_page *og);
194
- extern int ogg_page_continued(const ogg_page *og);
195
- extern int ogg_page_bos(const ogg_page *og);
196
- extern int ogg_page_eos(const ogg_page *og);
197
- extern ogg_int64_t ogg_page_granulepos(const ogg_page *og);
198
- extern int ogg_page_serialno(const ogg_page *og);
199
- extern long ogg_page_pageno(const ogg_page *og);
200
- extern int ogg_page_packets(const ogg_page *og);
201
-
202
- extern void ogg_packet_clear(ogg_packet *op);
203
-
204
-
205
- #ifdef __cplusplus
206
- }
207
- #endif
208
-
209
- #endif /* _OGG_H */
@@ -1,147 +0,0 @@
1
- /********************************************************************
2
- * *
3
- * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4
- * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5
- * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6
- * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7
- * *
8
- * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
9
- * by the Xiph.Org Foundation http://www.xiph.org/ *
10
- * *
11
- ********************************************************************
12
-
13
- function: #ifdef jail to whip a few platforms into the UNIX ideal.
14
- last mod: $Id: os_types.h 17712 2010-12-03 17:10:02Z xiphmont $
15
-
16
- ********************************************************************/
17
- #ifndef _OS_TYPES_H
18
- #define _OS_TYPES_H
19
-
20
- /* make it easy on the folks that want to compile the libs with a
21
- different malloc than stdlib */
22
- #define _ogg_malloc malloc
23
- #define _ogg_calloc calloc
24
- #define _ogg_realloc realloc
25
- #define _ogg_free free
26
-
27
- #if defined(_WIN32)
28
-
29
- # if defined(__CYGWIN__)
30
- # include <stdint.h>
31
- typedef int16_t ogg_int16_t;
32
- typedef uint16_t ogg_uint16_t;
33
- typedef int32_t ogg_int32_t;
34
- typedef uint32_t ogg_uint32_t;
35
- typedef int64_t ogg_int64_t;
36
- typedef uint64_t ogg_uint64_t;
37
- # elif defined(__MINGW32__)
38
- # include <sys/types.h>
39
- typedef short ogg_int16_t;
40
- typedef unsigned short ogg_uint16_t;
41
- typedef int ogg_int32_t;
42
- typedef unsigned int ogg_uint32_t;
43
- typedef long long ogg_int64_t;
44
- typedef unsigned long long ogg_uint64_t;
45
- # elif defined(__MWERKS__)
46
- typedef long long ogg_int64_t;
47
- typedef int ogg_int32_t;
48
- typedef unsigned int ogg_uint32_t;
49
- typedef short ogg_int16_t;
50
- typedef unsigned short ogg_uint16_t;
51
- # else
52
- /* MSVC/Borland */
53
- typedef __int64 ogg_int64_t;
54
- typedef __int32 ogg_int32_t;
55
- typedef unsigned __int32 ogg_uint32_t;
56
- typedef __int16 ogg_int16_t;
57
- typedef unsigned __int16 ogg_uint16_t;
58
- # endif
59
-
60
- #elif defined(__MACOS__)
61
-
62
- # include <sys/types.h>
63
- typedef SInt16 ogg_int16_t;
64
- typedef UInt16 ogg_uint16_t;
65
- typedef SInt32 ogg_int32_t;
66
- typedef UInt32 ogg_uint32_t;
67
- typedef SInt64 ogg_int64_t;
68
-
69
- #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
70
-
71
- # include <inttypes.h>
72
- typedef int16_t ogg_int16_t;
73
- typedef uint16_t ogg_uint16_t;
74
- typedef int32_t ogg_int32_t;
75
- typedef uint32_t ogg_uint32_t;
76
- typedef int64_t ogg_int64_t;
77
-
78
- #elif defined(__HAIKU__)
79
-
80
- /* Haiku */
81
- # include <sys/types.h>
82
- typedef short ogg_int16_t;
83
- typedef unsigned short ogg_uint16_t;
84
- typedef int ogg_int32_t;
85
- typedef unsigned int ogg_uint32_t;
86
- typedef long long ogg_int64_t;
87
-
88
- #elif defined(__BEOS__)
89
-
90
- /* Be */
91
- # include <inttypes.h>
92
- typedef int16_t ogg_int16_t;
93
- typedef uint16_t ogg_uint16_t;
94
- typedef int32_t ogg_int32_t;
95
- typedef uint32_t ogg_uint32_t;
96
- typedef int64_t ogg_int64_t;
97
-
98
- #elif defined (__EMX__)
99
-
100
- /* OS/2 GCC */
101
- typedef short ogg_int16_t;
102
- typedef unsigned short ogg_uint16_t;
103
- typedef int ogg_int32_t;
104
- typedef unsigned int ogg_uint32_t;
105
- typedef long long ogg_int64_t;
106
-
107
- #elif defined (DJGPP)
108
-
109
- /* DJGPP */
110
- typedef short ogg_int16_t;
111
- typedef int ogg_int32_t;
112
- typedef unsigned int ogg_uint32_t;
113
- typedef long long ogg_int64_t;
114
-
115
- #elif defined(R5900)
116
-
117
- /* PS2 EE */
118
- typedef long ogg_int64_t;
119
- typedef int ogg_int32_t;
120
- typedef unsigned ogg_uint32_t;
121
- typedef short ogg_int16_t;
122
-
123
- #elif defined(__SYMBIAN32__)
124
-
125
- /* Symbian GCC */
126
- typedef signed short ogg_int16_t;
127
- typedef unsigned short ogg_uint16_t;
128
- typedef signed int ogg_int32_t;
129
- typedef unsigned int ogg_uint32_t;
130
- typedef long long int ogg_int64_t;
131
-
132
- #elif defined(__TMS320C6X__)
133
-
134
- /* TI C64x compiler */
135
- typedef signed short ogg_int16_t;
136
- typedef unsigned short ogg_uint16_t;
137
- typedef signed int ogg_int32_t;
138
- typedef unsigned int ogg_uint32_t;
139
- typedef long long int ogg_int64_t;
140
-
141
- #else
142
-
143
- # include <ogg/config_types.h>
144
-
145
- #endif
146
-
147
- #endif /* _OS_TYPES_H */