seal 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +1 -0
- data/LICENSE +13 -0
- data/README.md +265 -0
- data/ext/seal/extconf.rb +45 -0
- data/include/al/al.h +724 -0
- data/include/al/alc.h +277 -0
- data/include/al/efx-presets.h +402 -0
- data/include/al/efx.h +758 -0
- data/include/mpg123/mpg123.h +1034 -0
- data/include/ogg/config_types.h +25 -0
- data/include/ogg/ogg.h +210 -0
- data/include/ogg/os_types.h +147 -0
- data/include/seal.h +23 -0
- data/include/seal/buf.h +143 -0
- data/include/seal/core.h +95 -0
- data/include/seal/efs.h +112 -0
- data/include/seal/err.h +93 -0
- data/include/seal/fmt.h +58 -0
- data/include/seal/listener.h +103 -0
- data/include/seal/raw.h +86 -0
- data/include/seal/rvb.h +520 -0
- data/include/seal/src.h +413 -0
- data/include/seal/stream.h +81 -0
- data/include/vorbis/codec.h +243 -0
- data/include/vorbis/vorbisfile.h +206 -0
- data/mpg123/AUTHORS +150 -0
- data/mpg123/COPYING +773 -0
- data/mpg123/ChangeLog +3 -0
- data/mpg123/INSTALL +111 -0
- data/mpg123/Makefile.am +99 -0
- data/mpg123/Makefile.in +1043 -0
- data/mpg123/NEWS +1200 -0
- data/mpg123/NEWS.libmpg123 +133 -0
- data/mpg123/README +203 -0
- data/mpg123/TODO +38 -0
- data/mpg123/aclocal.m4 +1168 -0
- data/mpg123/build/config.guess +1530 -0
- data/mpg123/build/config.sub +1782 -0
- data/mpg123/build/depcomp +707 -0
- data/mpg123/build/install-sh +527 -0
- data/mpg123/build/ltmain.sh +9655 -0
- data/mpg123/build/missing +330 -0
- data/mpg123/configure +20267 -0
- data/mpg123/configure.ac +2178 -0
- data/mpg123/doc/ACCURACY +2 -0
- data/mpg123/doc/BENCHMARKING +110 -0
- data/mpg123/doc/BUGS +3 -0
- data/mpg123/doc/CONTACT +17 -0
- data/mpg123/doc/LICENSE +22 -0
- data/mpg123/doc/Makefile.am +32 -0
- data/mpg123/doc/Makefile.in +490 -0
- data/mpg123/doc/PATENTS +39 -0
- data/mpg123/doc/README.3DNOW +56 -0
- data/mpg123/doc/README.gain +171 -0
- data/mpg123/doc/README.remote +218 -0
- data/mpg123/doc/ROAD_TO_LGPL +270 -0
- data/mpg123/doc/THANKS +13 -0
- data/mpg123/doc/TODO +63 -0
- data/mpg123/doc/doxy_examples.c +21 -0
- data/mpg123/doc/doxygen.conf +41 -0
- data/mpg123/doc/doxyhead.xhtml +12 -0
- data/mpg123/doc/examples/dump_seekindex.c +41 -0
- data/mpg123/doc/examples/extract_frames.c +92 -0
- data/mpg123/doc/examples/feedseek.c +238 -0
- data/mpg123/doc/examples/id3dump.c +178 -0
- data/mpg123/doc/examples/mpg123_to_wav.c +118 -0
- data/mpg123/doc/examples/mpglib.c +92 -0
- data/mpg123/doc/examples/scan.c +47 -0
- data/mpg123/doc/libmpg123_speed.txt +84 -0
- data/mpg123/equalize.dat +37 -0
- data/mpg123/libmpg123.pc.in +11 -0
- data/mpg123/m4/addrconfig.m4 +34 -0
- data/mpg123/m4/libtool.m4 +7982 -0
- data/mpg123/m4/ltoptions.m4 +384 -0
- data/mpg123/m4/ltsugar.m4 +123 -0
- data/mpg123/m4/ltversion.m4 +23 -0
- data/mpg123/m4/lt~obsolete.m4 +98 -0
- data/mpg123/makedll.sh +19 -0
- data/mpg123/man1/mpg123.1 +512 -0
- data/mpg123/mpg123.spec +68 -0
- data/mpg123/mpg123.spec.in +68 -0
- data/mpg123/ports/MSVC++/2005/libmpg123/libmpg123.vcproj +741 -0
- data/mpg123/ports/MSVC++/2008/dump_seekindex/dump_seekindex.vcproj +194 -0
- data/mpg123/ports/MSVC++/2008/feedseek/feedseek.vcproj +195 -0
- data/mpg123/ports/MSVC++/2008/libmpg123/libmpg123.vcproj +1357 -0
- data/mpg123/ports/MSVC++/2008/mpg123.sln +44 -0
- data/mpg123/ports/MSVC++/2008/mpglib/mpglib.vcproj +191 -0
- data/mpg123/ports/MSVC++/2008/scan/scan.vcproj +195 -0
- data/mpg123/ports/MSVC++/2008clr/2008clr.sln +81 -0
- data/mpg123/ports/MSVC++/2008clr/examples/ReplaceReaderclr/Program.cs +435 -0
- data/mpg123/ports/MSVC++/2008clr/examples/ReplaceReaderclr/Properties/AssemblyInfo.cs +36 -0
- data/mpg123/ports/MSVC++/2008clr/examples/ReplaceReaderclr/ReplaceReaderclr.csproj +72 -0
- data/mpg123/ports/MSVC++/2008clr/examples/feedseekclr/Program.cs +331 -0
- data/mpg123/ports/MSVC++/2008clr/examples/feedseekclr/Properties/AssemblyInfo.cs +36 -0
- data/mpg123/ports/MSVC++/2008clr/examples/feedseekclr/feedseekclr.csproj +71 -0
- data/mpg123/ports/MSVC++/2008clr/examples/scanclr/Program.cs +79 -0
- data/mpg123/ports/MSVC++/2008clr/examples/scanclr/Properties/AssemblyInfo.cs +36 -0
- data/mpg123/ports/MSVC++/2008clr/examples/scanclr/scanclr.csproj +70 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/AssemblyInfo.cpp +76 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/ReadMe.txt +165 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/advanced.cpp +91 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/advanced.h +130 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/dllmain.cpp +19 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/enum.h +218 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/error.cpp +48 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/error.h +134 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v1.cpp +92 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v1.h +132 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v2.cpp +138 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v2.h +152 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.cpp +896 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.h +953 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.rc +102 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.vcproj +328 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/resource.h +14 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/stdafx.cpp +8 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/stdafx.h +38 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/string.cpp +166 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/string.h +265 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/targetver.h +24 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/text.cpp +67 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/text.h +111 -0
- data/mpg123/ports/MSVC++/2010/dump_seekindex/dump_seekindex.vcxproj +90 -0
- data/mpg123/ports/MSVC++/2010/dump_seekindex/dump_seekindex.vcxproj.filters +6 -0
- data/mpg123/ports/MSVC++/2010/feedseek/feedseek.vcxproj +95 -0
- data/mpg123/ports/MSVC++/2010/feedseek/feedseek.vcxproj.filters +6 -0
- data/mpg123/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj +960 -0
- data/mpg123/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj.user +3 -0
- data/mpg123/ports/MSVC++/2010/libmpg123/yasm.exe +0 -0
- data/mpg123/ports/MSVC++/2010/mpg123.sln +38 -0
- data/mpg123/ports/MSVC++/2010/scan/scan.vcxproj +93 -0
- data/mpg123/ports/MSVC++/2010/scan/scan.vcxproj.filters +6 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H +15 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H +139 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H +206 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H +167 -0
- data/mpg123/ports/MSVC++/CMP3Stream/README +4 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP +462 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP +122 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP +35 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP +586 -0
- data/mpg123/ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE +0 -0
- data/mpg123/ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj +245 -0
- data/mpg123/ports/MSVC++/config.h +35 -0
- data/mpg123/ports/MSVC++/examples/feedseek.c +240 -0
- data/mpg123/ports/MSVC++/examples/scan.c +47 -0
- data/mpg123/ports/MSVC++/mpg123.h +46 -0
- data/mpg123/ports/MSVC++/msvc.c +59 -0
- data/mpg123/ports/README +26 -0
- data/mpg123/ports/Sony_PSP/Makefile.psp +38 -0
- data/mpg123/ports/Sony_PSP/README +11 -0
- data/mpg123/ports/Sony_PSP/config.h +368 -0
- data/mpg123/ports/Sony_PSP/readers.c.patch +2 -0
- data/mpg123/ports/Xcode/config.h +197 -0
- data/mpg123/ports/Xcode/mpg123.h +17 -0
- data/mpg123/ports/Xcode/mpg123.xcodeproj/project.pbxproj +670 -0
- data/mpg123/ports/mpg123_.pas +478 -0
- data/mpg123/scripts/benchmark-cpu.pl +56 -0
- data/mpg123/scripts/tag_lyrics.py +76 -0
- data/mpg123/src/Makefile.am +186 -0
- data/mpg123/src/Makefile.in +1097 -0
- data/mpg123/src/audio.c +725 -0
- data/mpg123/src/audio.h +106 -0
- data/mpg123/src/buffer.c +312 -0
- data/mpg123/src/buffer.h +45 -0
- data/mpg123/src/common.c +240 -0
- data/mpg123/src/common.h +29 -0
- data/mpg123/src/config.h.in +436 -0
- data/mpg123/src/control_generic.c +809 -0
- data/mpg123/src/equalizer.c +48 -0
- data/mpg123/src/genre.c +271 -0
- data/mpg123/src/genre.h +15 -0
- data/mpg123/src/getlopt.c +148 -0
- data/mpg123/src/getlopt.h +77 -0
- data/mpg123/src/httpget.c +700 -0
- data/mpg123/src/httpget.h +66 -0
- data/mpg123/src/legacy_module.c +74 -0
- data/mpg123/src/libmpg123/Makefile.am +141 -0
- data/mpg123/src/libmpg123/Makefile.in +919 -0
- data/mpg123/src/libmpg123/compat.c +138 -0
- data/mpg123/src/libmpg123/compat.h +178 -0
- data/mpg123/src/libmpg123/dct36_3dnow.S +505 -0
- data/mpg123/src/libmpg123/dct36_3dnowext.S +512 -0
- data/mpg123/src/libmpg123/dct64.c +174 -0
- data/mpg123/src/libmpg123/dct64_3dnow.S +712 -0
- data/mpg123/src/libmpg123/dct64_3dnowext.S +714 -0
- data/mpg123/src/libmpg123/dct64_altivec.c +315 -0
- data/mpg123/src/libmpg123/dct64_i386.c +336 -0
- data/mpg123/src/libmpg123/dct64_i486.c +342 -0
- data/mpg123/src/libmpg123/dct64_mmx.S +811 -0
- data/mpg123/src/libmpg123/dct64_neon.S +297 -0
- data/mpg123/src/libmpg123/dct64_neon_float.S +270 -0
- data/mpg123/src/libmpg123/dct64_sse.S +454 -0
- data/mpg123/src/libmpg123/dct64_sse_float.S +401 -0
- data/mpg123/src/libmpg123/dct64_x86_64.S +464 -0
- data/mpg123/src/libmpg123/dct64_x86_64_float.S +426 -0
- data/mpg123/src/libmpg123/debug.h +171 -0
- data/mpg123/src/libmpg123/decode.h +268 -0
- data/mpg123/src/libmpg123/dither.c +119 -0
- data/mpg123/src/libmpg123/dither.h +23 -0
- data/mpg123/src/libmpg123/equalizer.c +17 -0
- data/mpg123/src/libmpg123/equalizer_3dnow.S +70 -0
- data/mpg123/src/libmpg123/feature.c +106 -0
- data/mpg123/src/libmpg123/format.c +521 -0
- data/mpg123/src/libmpg123/frame.c +1046 -0
- data/mpg123/src/libmpg123/frame.h +410 -0
- data/mpg123/src/libmpg123/gapless.h +119 -0
- data/mpg123/src/libmpg123/getbits.h +100 -0
- data/mpg123/src/libmpg123/getcpuflags.S +91 -0
- data/mpg123/src/libmpg123/getcpuflags.h +47 -0
- data/mpg123/src/libmpg123/huffman.h +340 -0
- data/mpg123/src/libmpg123/icy.c +32 -0
- data/mpg123/src/libmpg123/icy.h +38 -0
- data/mpg123/src/libmpg123/icy2utf8.c +438 -0
- data/mpg123/src/libmpg123/icy2utf8.h +10 -0
- data/mpg123/src/libmpg123/id3.c +999 -0
- data/mpg123/src/libmpg123/id3.h +43 -0
- data/mpg123/src/libmpg123/index.c +134 -0
- data/mpg123/src/libmpg123/index.h +59 -0
- data/mpg123/src/libmpg123/intsym.h +256 -0
- data/mpg123/src/libmpg123/l12_integer_tables.h +278 -0
- data/mpg123/src/libmpg123/l2tables.h +164 -0
- data/mpg123/src/libmpg123/l3_integer_tables.h +1002 -0
- data/mpg123/src/libmpg123/layer1.c +155 -0
- data/mpg123/src/libmpg123/layer2.c +371 -0
- data/mpg123/src/libmpg123/layer3.c +2053 -0
- data/mpg123/src/libmpg123/lfs_alias.c +252 -0
- data/mpg123/src/libmpg123/lfs_wrap.c +751 -0
- data/mpg123/src/libmpg123/libmpg123.c +1607 -0
- data/mpg123/src/libmpg123/mangle.h +74 -0
- data/mpg123/src/libmpg123/mpeghead.h +87 -0
- data/mpg123/src/libmpg123/mpg123.h.in +1075 -0
- data/mpg123/src/libmpg123/mpg123lib_intern.h +338 -0
- data/mpg123/src/libmpg123/ntom.c +148 -0
- data/mpg123/src/libmpg123/optimize.c +964 -0
- data/mpg123/src/libmpg123/optimize.h +219 -0
- data/mpg123/src/libmpg123/parse.c +1179 -0
- data/mpg123/src/libmpg123/parse.h +25 -0
- data/mpg123/src/libmpg123/reader.h +137 -0
- data/mpg123/src/libmpg123/readers.c +1235 -0
- data/mpg123/src/libmpg123/sample.h +152 -0
- data/mpg123/src/libmpg123/stringbuf.c +163 -0
- data/mpg123/src/libmpg123/synth.c +816 -0
- data/mpg123/src/libmpg123/synth.h +196 -0
- data/mpg123/src/libmpg123/synth_3dnow.S +318 -0
- data/mpg123/src/libmpg123/synth_3dnowext.S +6 -0
- data/mpg123/src/libmpg123/synth_8bit.c +142 -0
- data/mpg123/src/libmpg123/synth_8bit.h +86 -0
- data/mpg123/src/libmpg123/synth_altivec.c +1057 -0
- data/mpg123/src/libmpg123/synth_arm.S +271 -0
- data/mpg123/src/libmpg123/synth_arm_accurate.S +287 -0
- data/mpg123/src/libmpg123/synth_i486.c +252 -0
- data/mpg123/src/libmpg123/synth_i586.S +336 -0
- data/mpg123/src/libmpg123/synth_i586_dither.S +375 -0
- data/mpg123/src/libmpg123/synth_mmx.S +125 -0
- data/mpg123/src/libmpg123/synth_mono.h +64 -0
- data/mpg123/src/libmpg123/synth_neon.S +123 -0
- data/mpg123/src/libmpg123/synth_neon_accurate.S +173 -0
- data/mpg123/src/libmpg123/synth_neon_float.S +149 -0
- data/mpg123/src/libmpg123/synth_neon_s32.S +168 -0
- data/mpg123/src/libmpg123/synth_ntom.h +213 -0
- data/mpg123/src/libmpg123/synth_real.c +404 -0
- data/mpg123/src/libmpg123/synth_s32.c +411 -0
- data/mpg123/src/libmpg123/synth_sse.S +6 -0
- data/mpg123/src/libmpg123/synth_sse3d.h +246 -0
- data/mpg123/src/libmpg123/synth_sse_accurate.S +294 -0
- data/mpg123/src/libmpg123/synth_sse_float.S +241 -0
- data/mpg123/src/libmpg123/synth_sse_s32.S +306 -0
- data/mpg123/src/libmpg123/synth_stereo_neon.S +175 -0
- data/mpg123/src/libmpg123/synth_stereo_neon_accurate.S +262 -0
- data/mpg123/src/libmpg123/synth_stereo_neon_float.S +220 -0
- data/mpg123/src/libmpg123/synth_stereo_neon_s32.S +247 -0
- data/mpg123/src/libmpg123/synth_stereo_sse_accurate.S +508 -0
- data/mpg123/src/libmpg123/synth_stereo_sse_float.S +416 -0
- data/mpg123/src/libmpg123/synth_stereo_sse_s32.S +540 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64.S +335 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64_accurate.S +454 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64_float.S +396 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64_s32.S +473 -0
- data/mpg123/src/libmpg123/synth_x86_64.S +244 -0
- data/mpg123/src/libmpg123/synth_x86_64_accurate.S +301 -0
- data/mpg123/src/libmpg123/synth_x86_64_float.S +259 -0
- data/mpg123/src/libmpg123/synth_x86_64_s32.S +312 -0
- data/mpg123/src/libmpg123/synths.h +52 -0
- data/mpg123/src/libmpg123/tabinit.c +294 -0
- data/mpg123/src/libmpg123/tabinit_mmx.S +210 -0
- data/mpg123/src/libmpg123/testcpu.c +35 -0
- data/mpg123/src/libmpg123/true.h +14 -0
- data/mpg123/src/local.c +63 -0
- data/mpg123/src/local.h +21 -0
- data/mpg123/src/metaprint.c +373 -0
- data/mpg123/src/metaprint.h +17 -0
- data/mpg123/src/module.c +306 -0
- data/mpg123/src/module.h +48 -0
- data/mpg123/src/mpg123.c +1405 -0
- data/mpg123/src/mpg123app.h +171 -0
- data/mpg123/src/output/Makefile.am +213 -0
- data/mpg123/src/output/Makefile.in +1238 -0
- data/mpg123/src/output/aix.c +300 -0
- data/mpg123/src/output/alib.c +209 -0
- data/mpg123/src/output/alsa.c +297 -0
- data/mpg123/src/output/arts.c +117 -0
- data/mpg123/src/output/coreaudio.c +370 -0
- data/mpg123/src/output/dummy.c +78 -0
- data/mpg123/src/output/esd.c +167 -0
- data/mpg123/src/output/hp.c +184 -0
- data/mpg123/src/output/jack.c +450 -0
- data/mpg123/src/output/mint.c +197 -0
- data/mpg123/src/output/nas.c +335 -0
- data/mpg123/src/output/openal.c +197 -0
- data/mpg123/src/output/os2.c +665 -0
- data/mpg123/src/output/oss.c +319 -0
- data/mpg123/src/output/portaudio.c +255 -0
- data/mpg123/src/output/pulse.c +164 -0
- data/mpg123/src/output/sdl.c +206 -0
- data/mpg123/src/output/sgi.c +213 -0
- data/mpg123/src/output/sndio.c +161 -0
- data/mpg123/src/output/sun.c +281 -0
- data/mpg123/src/output/win32.c +229 -0
- data/mpg123/src/playlist.c +596 -0
- data/mpg123/src/playlist.h +52 -0
- data/mpg123/src/resolver.c +319 -0
- data/mpg123/src/resolver.h +25 -0
- data/mpg123/src/sfifo.c +146 -0
- data/mpg123/src/sfifo.h +95 -0
- data/mpg123/src/streamdump.c +74 -0
- data/mpg123/src/streamdump.h +20 -0
- data/mpg123/src/term.c +479 -0
- data/mpg123/src/term.h +81 -0
- data/mpg123/src/tests/noise.c +52 -0
- data/mpg123/src/tests/plain_id3.c +109 -0
- data/mpg123/src/tests/seek_accuracy.c +261 -0
- data/mpg123/src/tests/seek_whence.c +56 -0
- data/mpg123/src/tests/testtext.h +34 -0
- data/mpg123/src/tests/text.c +80 -0
- data/mpg123/src/wav.c +464 -0
- data/mpg123/src/wavhead.h +68 -0
- data/mpg123/src/win32_net.c +599 -0
- data/mpg123/src/win32_support.c +191 -0
- data/mpg123/src/win32_support.h +152 -0
- data/mpg123/src/xfermem.c +321 -0
- data/mpg123/src/xfermem.h +74 -0
- data/mpg123/windows-builds.sh +137 -0
- data/msvc/lib/OpenAL32.lib +0 -0
- data/spec/fixtures/heal.ogg +0 -0
- data/spec/fixtures/tone_up.wav +0 -0
- data/spec/seal/buffer_spec.rb +37 -0
- data/spec/seal/core_spec.rb +29 -0
- data/spec/seal/effect_slot_spec.rb +38 -0
- data/spec/seal/listener_spec.rb +33 -0
- data/spec/seal/reverb_spec.rb +51 -0
- data/spec/seal/source_spec.rb +370 -0
- data/spec/seal/stream_spec.rb +38 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/support/attribute_examples.rb +75 -0
- data/spec/support/audio_object_with_format.rb +27 -0
- data/spec/support/movable_object.rb +22 -0
- data/src/libogg/bitwise.c +857 -0
- data/src/libogg/framing.c +2093 -0
- data/src/libvorbis/backends.h +144 -0
- data/src/libvorbis/bitrate.c +253 -0
- data/src/libvorbis/bitrate.h +59 -0
- data/src/libvorbis/block.c +1046 -0
- data/src/libvorbis/codebook.c +484 -0
- data/src/libvorbis/codebook.h +119 -0
- data/src/libvorbis/codec_internal.h +167 -0
- data/src/libvorbis/envelope.c +375 -0
- data/src/libvorbis/envelope.h +80 -0
- data/src/libvorbis/floor0.c +221 -0
- data/src/libvorbis/floor1.c +1100 -0
- data/src/libvorbis/highlevel.h +58 -0
- data/src/libvorbis/info.c +668 -0
- data/src/libvorbis/lookup.c +94 -0
- data/src/libvorbis/lookup.h +32 -0
- data/src/libvorbis/lookup_data.h +192 -0
- data/src/libvorbis/lpc.c +160 -0
- data/src/libvorbis/lpc.h +29 -0
- data/src/libvorbis/lsp.c +456 -0
- data/src/libvorbis/lsp.h +28 -0
- data/src/libvorbis/mapping0.c +816 -0
- data/src/libvorbis/masking.h +785 -0
- data/src/libvorbis/mdct.c +563 -0
- data/src/libvorbis/mdct.h +71 -0
- data/src/libvorbis/misc.h +57 -0
- data/src/libvorbis/os.h +186 -0
- data/src/libvorbis/psy.c +1206 -0
- data/src/libvorbis/psy.h +154 -0
- data/src/libvorbis/registry.c +45 -0
- data/src/libvorbis/registry.h +32 -0
- data/src/libvorbis/res0.c +889 -0
- data/src/libvorbis/scales.h +90 -0
- data/src/libvorbis/sharedbook.c +579 -0
- data/src/libvorbis/smallft.c +1255 -0
- data/src/libvorbis/smallft.h +34 -0
- data/src/libvorbis/synthesis.c +184 -0
- data/src/libvorbis/vorbisfile.c +2337 -0
- data/src/libvorbis/window.c +2135 -0
- data/src/libvorbis/window.h +26 -0
- data/src/rubyext.c +2329 -0
- data/src/seal/buf.c +124 -0
- data/src/seal/core.c +283 -0
- data/src/seal/efs.c +74 -0
- data/src/seal/err.c +118 -0
- data/src/seal/fmt.c +86 -0
- data/src/seal/listener.c +111 -0
- data/src/seal/mpg.c +174 -0
- data/src/seal/mpg.h +24 -0
- data/src/seal/ov.c +180 -0
- data/src/seal/ov.h +22 -0
- data/src/seal/raw.c +59 -0
- data/src/seal/reader.c +102 -0
- data/src/seal/reader.h +59 -0
- data/src/seal/rvb.c +368 -0
- data/src/seal/src.c +654 -0
- data/src/seal/stream.c +109 -0
- data/src/seal/threading.c +66 -0
- data/src/seal/threading.h +20 -0
- data/src/seal/wav.c +297 -0
- data/src/seal/wav.h +23 -0
- data/src/win32api.rb +29 -0
- metadata +563 -0
@@ -0,0 +1,478 @@
|
|
1
|
+
unit mpg123_;
|
2
|
+
interface
|
3
|
+
|
4
|
+
uses
|
5
|
+
Windows,
|
6
|
+
SysUtils;
|
7
|
+
|
8
|
+
// INITIAL CONVERSION BY ARTHUR 17/02/2008
|
9
|
+
// USE http://www.mpg123.de/api/ FOR DOCUMENTATION SINCE I STRIPED ALL THE COMMENTS FROM THE UNIT
|
10
|
+
|
11
|
+
type
|
12
|
+
PDWord = ^DWORD;
|
13
|
+
PPbyte = ^PByte;
|
14
|
+
PPchar = ^PChar;
|
15
|
+
Pdouble = ^double;
|
16
|
+
PPlongint = ^Plongint;
|
17
|
+
off_t = Longint;
|
18
|
+
Poff_t = ^off_t;
|
19
|
+
PPoff_T = ^Poff_t;
|
20
|
+
size_t = Cardinal;
|
21
|
+
Psize_t = ^size_t;
|
22
|
+
|
23
|
+
type
|
24
|
+
Pmpg123_handle_struct = ^Tmpg123_handle_struct;
|
25
|
+
Tmpg123_handle_struct = packed record
|
26
|
+
{undefined structure}
|
27
|
+
end;
|
28
|
+
|
29
|
+
Tmpg123_handle = Tmpg123_handle_struct;
|
30
|
+
Pmpg123_handle = ^Tmpg123_handle;
|
31
|
+
|
32
|
+
var
|
33
|
+
mpg123_init: function: Longint; cdecl;
|
34
|
+
|
35
|
+
mpg123_exit: procedure; cdecl;
|
36
|
+
|
37
|
+
mpg123_new: function(decoder: PChar; Error: Plongint): Pmpg123_handle; cdecl;
|
38
|
+
|
39
|
+
mpg123_delete: procedure(mh: Pmpg123_handle); cdecl;
|
40
|
+
|
41
|
+
type
|
42
|
+
Tmpg123_parms = Longint;
|
43
|
+
const
|
44
|
+
MPG123_VERBOSE = 0;
|
45
|
+
MPG123_FLAGS = 1;
|
46
|
+
MPG123_ADD_FLAGS = 2;
|
47
|
+
MPG123_FORCE_RATE = 3;
|
48
|
+
MPG123_DOWN_SAMPLE = 4;
|
49
|
+
MPG123_RVA = 5;
|
50
|
+
MPG123_DOWNSPEED = 6;
|
51
|
+
MPG123_UPSPEED = 7;
|
52
|
+
MPG123_START_FRAME = 8;
|
53
|
+
MPG123_DECODE_FRAMES = 9;
|
54
|
+
MPG123_ICY_INTERVAL = 10;
|
55
|
+
MPG123_OUTSCALE = 11;
|
56
|
+
MPG123_TIMEOUT = 12;
|
57
|
+
MPG123_REMOVE_FLAGS = 13;
|
58
|
+
MPG123_RESYNC_LIMIT = 14;
|
59
|
+
|
60
|
+
type
|
61
|
+
Tmpg123_param_flags = Longint;
|
62
|
+
const
|
63
|
+
MPG123_FORCE_MONO = $7;
|
64
|
+
MPG123_MONO_LEFT = $1;
|
65
|
+
MPG123_MONO_RIGHT = $2;
|
66
|
+
MPG123_MONO_MIX = $4;
|
67
|
+
MPG123_FORCE_STEREO = $8;
|
68
|
+
MPG123_FORCE_8BIT = $10;
|
69
|
+
MPG123_QUIET = $20;
|
70
|
+
MPG123_GAPLESS = $40;
|
71
|
+
MPG123_NO_RESYNC = $80;
|
72
|
+
|
73
|
+
type
|
74
|
+
Tmpg123_param_rva = Longint;
|
75
|
+
const
|
76
|
+
MPG123_RVA_OFF = 0;
|
77
|
+
MPG123_RVA_MIX = 1;
|
78
|
+
MPG123_RVA_ALBUM = 2;
|
79
|
+
MPG123_RVA_MAX = MPG123_RVA_ALBUM;
|
80
|
+
|
81
|
+
var
|
82
|
+
mpg123_param: function(mh: Pmpg123_handle; _type: Tmpg123_parms; value: Longint; fvalue: double): Longint; cdecl;
|
83
|
+
|
84
|
+
mpg123_getparam: function(mh: Pmpg123_handle; _type: Tmpg123_parms; val: Plongint; fval: Pdouble): Longint; cdecl;
|
85
|
+
|
86
|
+
type
|
87
|
+
Tmpg123_errors = Longint;
|
88
|
+
const
|
89
|
+
MPG123_DONE = -(12);
|
90
|
+
MPG123_NEW_FORMAT = -(11);
|
91
|
+
MPG123_NEED_MORE = -(10);
|
92
|
+
MPG123_ERR = -(1);
|
93
|
+
MPG123_OK = 0;
|
94
|
+
MPG123_BAD_OUTFORMAT = 1;
|
95
|
+
MPG123_BAD_CHANNEL = 2;
|
96
|
+
MPG123_BAD_RATE = 3;
|
97
|
+
MPG123_ERR_16TO8TABLE = 4;
|
98
|
+
MPG123_BAD_PARAM = 5;
|
99
|
+
MPG123_BAD_BUFFER = 6;
|
100
|
+
MPG123_OUT_OF_MEM = 7;
|
101
|
+
MPG123_NOT_INITIALIZED = 8;
|
102
|
+
MPG123_BAD_DECODER = 9;
|
103
|
+
MPG123_BAD_HANDLE = 10;
|
104
|
+
MPG123_NO_BUFFERS = 11;
|
105
|
+
MPG123_BAD_RVA = 12;
|
106
|
+
MPG123_NO_GAPLESS = 13;
|
107
|
+
MPG123_NO_SPACE = 14;
|
108
|
+
MPG123_BAD_TYPES = 15;
|
109
|
+
MPG123_BAD_BAND = 16;
|
110
|
+
MPG123_ERR_NULL = 17;
|
111
|
+
MPG123_ERR_READER = 18;
|
112
|
+
MPG123_NO_SEEK_FROM_END = 19;
|
113
|
+
MPG123_BAD_WHENCE = 20;
|
114
|
+
MPG123_NO_TIMEOUT = 21;
|
115
|
+
MPG123_BAD_FILE = 22;
|
116
|
+
MPG123_NO_SEEK = 23;
|
117
|
+
MPG123_NO_READER = 24;
|
118
|
+
MPG123_BAD_PARS = 25;
|
119
|
+
MPG123_BAD_INDEX_PAR = 26;
|
120
|
+
MPG123_OUT_OF_SYNC = 27;
|
121
|
+
MPG123_RESYNC_FAIL = 28;
|
122
|
+
|
123
|
+
var
|
124
|
+
mpg123_plain_strerror: function(errcode: Longint): PChar; cdecl;
|
125
|
+
|
126
|
+
mpg123_strerror: function(mh: Pmpg123_handle): PChar; cdecl;
|
127
|
+
|
128
|
+
mpg123_errcode: function(mh: Pmpg123_handle): Longint; cdecl;
|
129
|
+
|
130
|
+
mpg123_decoders: function: PPchar; cdecl;
|
131
|
+
|
132
|
+
mpg123_supported_decoders: function: PPchar; cdecl;
|
133
|
+
|
134
|
+
mpg123_decoder: function(mh: Pmpg123_handle; decoder_name: PChar): Longint; cdecl;
|
135
|
+
|
136
|
+
type
|
137
|
+
Tmpg123_enc_enum = Longint;
|
138
|
+
const
|
139
|
+
MPG123_ENC_16 = $40;
|
140
|
+
MPG123_ENC_SIGNED = $80;
|
141
|
+
MPG123_ENC_8 = $0F;
|
142
|
+
MPG123_ENC_SIGNED_16 = (MPG123_ENC_16 or MPG123_ENC_SIGNED) or $10;
|
143
|
+
MPG123_ENC_UNSIGNED_16 = MPG123_ENC_16 or $20;
|
144
|
+
MPG123_ENC_UNSIGNED_8 = $01;
|
145
|
+
MPG123_ENC_SIGNED_8 = MPG123_ENC_SIGNED or $02;
|
146
|
+
MPG123_ENC_ULAW_8 = $04;
|
147
|
+
MPG123_ENC_ALAW_8 = $08;
|
148
|
+
MPG123_ENC_ANY = ((((MPG123_ENC_SIGNED_16 or MPG123_ENC_UNSIGNED_16) or MPG123_ENC_UNSIGNED_8) or MPG123_ENC_SIGNED_8) or MPG123_ENC_ULAW_8) or MPG123_ENC_ALAW_8;
|
149
|
+
|
150
|
+
type
|
151
|
+
Tmpg123_channelcount = Longint;
|
152
|
+
const
|
153
|
+
MPG123_MONO = 1;
|
154
|
+
MPG123_STEREO = 2;
|
155
|
+
|
156
|
+
var
|
157
|
+
mpg123_rates: procedure(list: PPlongint; number: Psize_t); cdecl;
|
158
|
+
|
159
|
+
mpg123_encodings: procedure(list: PPlongint; number: Psize_t); cdecl;
|
160
|
+
|
161
|
+
mpg123_format_none: function(mh: Pmpg123_handle): Longint; cdecl;
|
162
|
+
|
163
|
+
mpg123_format_all: function(mh: Pmpg123_handle): Longint; cdecl;
|
164
|
+
|
165
|
+
mpg123_format: function(mh: Pmpg123_handle; rate: Longint; channels: Longint; encodings: Longint): Longint; cdecl;
|
166
|
+
|
167
|
+
mpg123_format_support: function(mh: Pmpg123_handle; rate: Longint; encoding: Longint): Longint; cdecl;
|
168
|
+
|
169
|
+
mpg123_getformat: function(mh: Pmpg123_handle; rate: Plongint; channels: Plongint; encoding: Plongint): Longint; cdecl;
|
170
|
+
|
171
|
+
mpg123_open: function(mh: Pmpg123_handle; path: PChar): Longint; cdecl;
|
172
|
+
|
173
|
+
mpg123_open_fd: function(mh: Pmpg123_handle; fd: Longint): Longint; cdecl;
|
174
|
+
|
175
|
+
mpg123_open_feed: function(mh: Pmpg123_handle): Longint; cdecl;
|
176
|
+
|
177
|
+
mpg123_close: function(mh: Pmpg123_handle): Longint; cdecl;
|
178
|
+
|
179
|
+
mpg123_read: function(mh: Pmpg123_handle; outmemory: PByte; outmemsize: size_t; done: Psize_t): Longint; cdecl;
|
180
|
+
|
181
|
+
mpg123_decode: function(mh: Pmpg123_handle; inmemory: PByte; inmemsize: size_t; outmemory: PByte; outmemsize: size_t;
|
182
|
+
done: Psize_t): Longint; cdecl;
|
183
|
+
|
184
|
+
mpg123_decode_frame: function(mh: Pmpg123_handle; num: Poff_t; audio: PPbyte; bytes: Psize_t): Longint; cdecl;
|
185
|
+
|
186
|
+
mpg123_tell: function(mh: Pmpg123_handle): off_t; cdecl;
|
187
|
+
|
188
|
+
mpg123_tellframe: function(mh: Pmpg123_handle): off_t; cdecl;
|
189
|
+
|
190
|
+
mpg123_seek: function(mh: Pmpg123_handle; sampleoff: off_t; whence: Longint): off_t; cdecl;
|
191
|
+
|
192
|
+
mpg123_feedseek: function(mh: Pmpg123_handle; sampleoff: off_t; whence: Longint; input_offset: Poff_t): off_t; cdecl;
|
193
|
+
|
194
|
+
mpg123_seek_frame: function(mh: Pmpg123_handle; frameoff: off_t; whence: Longint): off_t; cdecl;
|
195
|
+
|
196
|
+
mpg123_timeframe: function(mh: Pmpg123_handle; sec: double): off_t; cdecl;
|
197
|
+
|
198
|
+
mpg123_index: function(mh: Pmpg123_handle; offsets: PPoff_t; step: Poff_t; fill: Psize_t): Longint; cdecl;
|
199
|
+
|
200
|
+
mpg123_position: function(mh: Pmpg123_handle; frame_offset: off_t; buffered_bytes: off_t; current_frame: Poff_t; frames_left: Poff_t;
|
201
|
+
current_seconds: Pdouble; seconds_left: Pdouble): Longint; cdecl;
|
202
|
+
|
203
|
+
type
|
204
|
+
Tmpg123_channels = Longint;
|
205
|
+
const
|
206
|
+
MPG123_LEFT = $1;
|
207
|
+
MPG123_RIGHT = $2;
|
208
|
+
|
209
|
+
var
|
210
|
+
mpg123_eq: function(mh: Pmpg123_handle; channel: Tmpg123_channels; band: Longint; val: double): Longint; cdecl;
|
211
|
+
|
212
|
+
mpg123_reset_eq: function(mh: Pmpg123_handle): Longint; cdecl;
|
213
|
+
|
214
|
+
mpg123_volume: function(mh: Pmpg123_handle; vol: double): Longint; cdecl;
|
215
|
+
|
216
|
+
mpg123_volume_change: function(mh: Pmpg123_handle; change: double): Longint; cdecl;
|
217
|
+
|
218
|
+
mpg123_getvolume: function(mh: Pmpg123_handle; base: Pdouble; really: Pdouble; rva_db: Pdouble): Longint; cdecl;
|
219
|
+
|
220
|
+
type
|
221
|
+
Tmpg123_vbr = Longint;
|
222
|
+
const
|
223
|
+
MPG123_CBR = 0;
|
224
|
+
MPG123_VBR = 1;
|
225
|
+
MPG123_ABR = 2;
|
226
|
+
|
227
|
+
type
|
228
|
+
Tmpg123_version = Longint;
|
229
|
+
const
|
230
|
+
MPG123_1_0 = 0;
|
231
|
+
MPG123_2_0 = 1;
|
232
|
+
MPG123_2_5 = 2;
|
233
|
+
|
234
|
+
type
|
235
|
+
Tmpg123_mode = Longint;
|
236
|
+
const
|
237
|
+
MPG123_M_STEREO = 0;
|
238
|
+
MPG123_M_JOINT = 1;
|
239
|
+
MPG123_M_DUAL = 2;
|
240
|
+
MPG123_M_MONO = 3;
|
241
|
+
|
242
|
+
type
|
243
|
+
Tmpg123_flags = Longint;
|
244
|
+
const
|
245
|
+
MPG123_CRC = $1;
|
246
|
+
MPG123_COPYRIGHT = $2;
|
247
|
+
MPG123_PRIVATE = $4;
|
248
|
+
MPG123_ORIGINAL = $8;
|
249
|
+
|
250
|
+
type
|
251
|
+
Pmpg123_frameinfo = ^Tmpg123_frameinfo;
|
252
|
+
Tmpg123_frameinfo = packed record
|
253
|
+
version: Tmpg123_version;
|
254
|
+
layer: Longint;
|
255
|
+
rate: Longint;
|
256
|
+
mode: Tmpg123_mode;
|
257
|
+
mode_ext: Longint;
|
258
|
+
framesize: Longint;
|
259
|
+
Flags: Tmpg123_flags;
|
260
|
+
emphasis: Longint;
|
261
|
+
bitrate: Longint;
|
262
|
+
abr_rate: Longint;
|
263
|
+
vbr: Tmpg123_vbr;
|
264
|
+
end;
|
265
|
+
|
266
|
+
var
|
267
|
+
mpg123_info: function(mh: Pmpg123_handle; mi: Pmpg123_frameinfo): Longint; cdecl;
|
268
|
+
|
269
|
+
mpg123_safe_buffer: function: size_t; cdecl;
|
270
|
+
|
271
|
+
mpg123_scan: function(mh: Pmpg123_handle): Longint; cdecl;
|
272
|
+
|
273
|
+
mpg123_length: function(mh: Pmpg123_handle): off_t; cdecl;
|
274
|
+
|
275
|
+
mpg123_tpf: function(mh: Pmpg123_handle): double; cdecl;
|
276
|
+
|
277
|
+
mpg123_clip: function(mh: Pmpg123_handle): Longint; cdecl;
|
278
|
+
|
279
|
+
type
|
280
|
+
|
281
|
+
Pmpg123_string = ^Tmpg123_string;
|
282
|
+
Tmpg123_string = packed record
|
283
|
+
p: PChar;
|
284
|
+
Size: size_t;
|
285
|
+
fill: size_t;
|
286
|
+
end;
|
287
|
+
|
288
|
+
var
|
289
|
+
mpg123_init_string: procedure(sb: Pmpg123_string); cdecl;
|
290
|
+
|
291
|
+
mpg123_free_string: procedure(sb: Pmpg123_string); cdecl;
|
292
|
+
|
293
|
+
mpg123_resize_string: function(sb: Pmpg123_string; news: size_t): Longint; cdecl;
|
294
|
+
|
295
|
+
mpg123_copy_string: function(from: Pmpg123_string; _to: Pmpg123_string): Longint; cdecl;
|
296
|
+
|
297
|
+
mpg123_add_string: function(sb: Pmpg123_string; stuff: PChar): Longint; cdecl;
|
298
|
+
|
299
|
+
mpg123_set_string: function(sb: Pmpg123_string; stuff: PChar): Longint; cdecl;
|
300
|
+
|
301
|
+
type
|
302
|
+
|
303
|
+
Pmpg123_text = ^Tmpg123_text;
|
304
|
+
Tmpg123_text = packed record
|
305
|
+
lang: array[0..2] of Char;
|
306
|
+
id: array[0..3] of Char;
|
307
|
+
description: Tmpg123_string;
|
308
|
+
Text: Tmpg123_string;
|
309
|
+
end;
|
310
|
+
|
311
|
+
PPmpg123_id3v2 = ^Pmpg123_id3v2;
|
312
|
+
Pmpg123_id3v2 = ^Tmpg123_id3v2;
|
313
|
+
Tmpg123_id3v2 = packed record
|
314
|
+
version: Byte;
|
315
|
+
title: Pmpg123_string;
|
316
|
+
artist: Pmpg123_string;
|
317
|
+
album: Pmpg123_string;
|
318
|
+
year: Pmpg123_string;
|
319
|
+
genre: Pmpg123_string;
|
320
|
+
comment: Pmpg123_string;
|
321
|
+
comment_list: Pmpg123_text;
|
322
|
+
comments: size_t;
|
323
|
+
Text: Pmpg123_text;
|
324
|
+
texts: size_t;
|
325
|
+
extra: Pmpg123_text;
|
326
|
+
extras: size_t;
|
327
|
+
end;
|
328
|
+
|
329
|
+
PPmpg123_id3v1 = ^Pmpg123_id3v1;
|
330
|
+
Pmpg123_id3v1 = ^Tmpg123_id3v1;
|
331
|
+
Tmpg123_id3v1 = packed record
|
332
|
+
tag: array[0..2] of Char;
|
333
|
+
title: array[0..29] of Char;
|
334
|
+
artist: array[0..29] of Char;
|
335
|
+
album: array[0..29] of Char;
|
336
|
+
year: array[0..3] of Char;
|
337
|
+
comment: array[0..29] of Char;
|
338
|
+
genre: Byte;
|
339
|
+
end;
|
340
|
+
|
341
|
+
const
|
342
|
+
MPG123_ID3 = $3;
|
343
|
+
|
344
|
+
MPG123_NEW_ID3 = $1;
|
345
|
+
|
346
|
+
MPG123_ICY = $C;
|
347
|
+
|
348
|
+
MPG123_NEW_ICY = $4;
|
349
|
+
|
350
|
+
var
|
351
|
+
mpg123_meta_check: function(mh: Pmpg123_handle): Longint; cdecl;
|
352
|
+
|
353
|
+
mpg123_id3_: function(mh: Pmpg123_handle; var v1: Pmpg123_id3v1; var v2: Pmpg123_id3v2): Longint; cdecl;
|
354
|
+
|
355
|
+
mpg123_icy_: function(mh: Pmpg123_handle; icy_meta: PPchar): Longint; cdecl;
|
356
|
+
|
357
|
+
type
|
358
|
+
Pmpg123_pars_struct = ^Tmpg123_pars_struct;
|
359
|
+
Tmpg123_pars_struct = packed record
|
360
|
+
{undefined structure}
|
361
|
+
end;
|
362
|
+
|
363
|
+
Tmpg123_pars = Tmpg123_pars_struct;
|
364
|
+
Pmpg123_pars = ^Tmpg123_pars;
|
365
|
+
|
366
|
+
var
|
367
|
+
mpg123_parnew: function(mp: Pmpg123_pars; decoder: PChar; Error: Plongint): Pmpg123_handle; cdecl;
|
368
|
+
|
369
|
+
mpg123_new_pars: function(Error: Plongint): Pmpg123_pars; cdecl;
|
370
|
+
|
371
|
+
mpg123_delete_pars: procedure(mp: Pmpg123_pars); cdecl;
|
372
|
+
|
373
|
+
mpg123_fmt_none: function(mp: Pmpg123_pars): Longint; cdecl;
|
374
|
+
|
375
|
+
mpg123_fmt_all: function(mp: Pmpg123_pars): Longint; cdecl;
|
376
|
+
|
377
|
+
mpg123_fmt: function(mh: Pmpg123_pars; rate: Longint; channels: Longint; encodings: Longint): Longint; cdecl;
|
378
|
+
|
379
|
+
mpg123_fmt_support: function(mh: Pmpg123_pars; rate: Longint; encoding: Longint): Longint; cdecl;
|
380
|
+
|
381
|
+
mpg123_par: function(mp: Pmpg123_pars; _type: Tmpg123_parms; value: Longint; fvalue: double): Longint; cdecl;
|
382
|
+
|
383
|
+
mpg123_getpar: function(mp: Pmpg123_pars; _type: Tmpg123_parms; val: Plongint; fval: Pdouble): Longint; cdecl;
|
384
|
+
|
385
|
+
mpg123_replace_buffer: function(mh: Pmpg123_handle; data: PByte; Size: size_t): Longint; cdecl;
|
386
|
+
|
387
|
+
mpg123_outblock: function(mh: Pmpg123_handle): size_t; cdecl;
|
388
|
+
|
389
|
+
//mpg123_replace_reader : function(mh:Pmpg123_handle; r_read:function (_para1:longint; _para2:pointer; _para3:size_t):Tssize_t; r_lseek:function (_para1:longint; _para2:off_t; _para3:longint):off_t):longint;
|
390
|
+
|
391
|
+
implementation
|
392
|
+
|
393
|
+
var
|
394
|
+
hlib: THandle;
|
395
|
+
|
396
|
+
procedure Freempg123;
|
397
|
+
begin
|
398
|
+
FreeLibrary(hlib);
|
399
|
+
end;
|
400
|
+
|
401
|
+
procedure Loadmpg123(lib: PChar);
|
402
|
+
begin
|
403
|
+
hlib := LoadLibrary(lib);
|
404
|
+
mpg123_init := GetProcAddress(hlib, 'mpg123_init');
|
405
|
+
mpg123_exit := GetProcAddress(hlib, 'mpg123_exit');
|
406
|
+
mpg123_new := GetProcAddress(hlib, 'mpg123_new');
|
407
|
+
mpg123_delete := GetProcAddress(hlib, 'mpg123_delete');
|
408
|
+
mpg123_param := GetProcAddress(hlib, 'mpg123_param');
|
409
|
+
mpg123_getparam := GetProcAddress(hlib, 'mpg123_getparam');
|
410
|
+
mpg123_plain_strerror := GetProcAddress(hlib, 'mpg123_plain_strerror');
|
411
|
+
mpg123_strerror := GetProcAddress(hlib, 'mpg123_strerror');
|
412
|
+
mpg123_errcode := GetProcAddress(hlib, 'mpg123_errcode');
|
413
|
+
mpg123_decoders := GetProcAddress(hlib, 'mpg123_decoders');
|
414
|
+
mpg123_supported_decoders := GetProcAddress(hlib, 'mpg123_supported_decoders');
|
415
|
+
mpg123_decoder := GetProcAddress(hlib, 'mpg123_decoder');
|
416
|
+
mpg123_rates := GetProcAddress(hlib, 'mpg123_rates');
|
417
|
+
mpg123_encodings := GetProcAddress(hlib, 'mpg123_encodings');
|
418
|
+
mpg123_format_none := GetProcAddress(hlib, 'mpg123_format_none');
|
419
|
+
mpg123_format_all := GetProcAddress(hlib, 'mpg123_format_all');
|
420
|
+
mpg123_format := GetProcAddress(hlib, 'mpg123_format');
|
421
|
+
mpg123_format_support := GetProcAddress(hlib, 'mpg123_format_support');
|
422
|
+
mpg123_getformat := GetProcAddress(hlib, 'mpg123_getformat');
|
423
|
+
mpg123_open := GetProcAddress(hlib, 'mpg123_open');
|
424
|
+
mpg123_open_fd := GetProcAddress(hlib, 'mpg123_open_fd');
|
425
|
+
mpg123_open_feed := GetProcAddress(hlib, 'mpg123_open_feed');
|
426
|
+
mpg123_close := GetProcAddress(hlib, 'mpg123_close');
|
427
|
+
mpg123_read := GetProcAddress(hlib, 'mpg123_read');
|
428
|
+
mpg123_decode := GetProcAddress(hlib, 'mpg123_decode');
|
429
|
+
mpg123_decode_frame := GetProcAddress(hlib, 'mpg123_decode_frame');
|
430
|
+
mpg123_tell := GetProcAddress(hlib, 'mpg123_tell');
|
431
|
+
mpg123_tellframe := GetProcAddress(hlib, 'mpg123_tellframe');
|
432
|
+
mpg123_seek := GetProcAddress(hlib, 'mpg123_seek');
|
433
|
+
mpg123_feedseek := GetProcAddress(hlib, 'mpg123_feedseek');
|
434
|
+
mpg123_seek_frame := GetProcAddress(hlib, 'mpg123_seek_frame');
|
435
|
+
mpg123_timeframe := GetProcAddress(hlib, 'mpg123_timeframe');
|
436
|
+
mpg123_index := GetProcAddress(hlib, 'mpg123_index');
|
437
|
+
mpg123_position := GetProcAddress(hlib, 'mpg123_position');
|
438
|
+
mpg123_eq := GetProcAddress(hlib, 'mpg123_eq');
|
439
|
+
mpg123_reset_eq := GetProcAddress(hlib, 'mpg123_reset_eq');
|
440
|
+
mpg123_volume := GetProcAddress(hlib, 'mpg123_volume');
|
441
|
+
mpg123_volume_change := GetProcAddress(hlib, 'mpg123_volume_change');
|
442
|
+
mpg123_getvolume := GetProcAddress(hlib, 'mpg123_getvolume');
|
443
|
+
mpg123_info := GetProcAddress(hlib, 'mpg123_info');
|
444
|
+
mpg123_safe_buffer := GetProcAddress(hlib, 'mpg123_safe_buffer');
|
445
|
+
mpg123_scan := GetProcAddress(hlib, 'mpg123_scan');
|
446
|
+
mpg123_length := GetProcAddress(hlib, 'mpg123_length');
|
447
|
+
mpg123_tpf := GetProcAddress(hlib, 'mpg123_tpf');
|
448
|
+
mpg123_clip := GetProcAddress(hlib, 'mpg123_clip');
|
449
|
+
mpg123_init_string := GetProcAddress(hlib, 'mpg123_init_string');
|
450
|
+
mpg123_free_string := GetProcAddress(hlib, 'mpg123_free_string');
|
451
|
+
mpg123_resize_string := GetProcAddress(hlib, 'mpg123_resize_string');
|
452
|
+
mpg123_copy_string := GetProcAddress(hlib, 'mpg123_copy_string');
|
453
|
+
mpg123_add_string := GetProcAddress(hlib, 'mpg123_add_string');
|
454
|
+
mpg123_set_string := GetProcAddress(hlib, 'mpg123_set_string');
|
455
|
+
mpg123_meta_check := GetProcAddress(hlib, 'mpg123_meta_check');
|
456
|
+
mpg123_id3_ := GetProcAddress(hlib, 'mpg123_id3');
|
457
|
+
mpg123_icy_ := GetProcAddress(hlib, 'mpg123_icy');
|
458
|
+
mpg123_parnew := GetProcAddress(hlib, 'mpg123_parnew');
|
459
|
+
mpg123_new_pars := GetProcAddress(hlib, 'mpg123_new_pars');
|
460
|
+
mpg123_delete_pars := GetProcAddress(hlib, 'mpg123_delete_pars');
|
461
|
+
mpg123_fmt_none := GetProcAddress(hlib, 'mpg123_fmt_none');
|
462
|
+
mpg123_fmt_all := GetProcAddress(hlib, 'mpg123_fmt_all');
|
463
|
+
mpg123_fmt := GetProcAddress(hlib, 'mpg123_fmt');
|
464
|
+
mpg123_fmt_support := GetProcAddress(hlib, 'mpg123_fmt_support');
|
465
|
+
mpg123_par := GetProcAddress(hlib, 'mpg123_par');
|
466
|
+
mpg123_getpar := GetProcAddress(hlib, 'mpg123_getpar');
|
467
|
+
mpg123_replace_buffer := GetProcAddress(hlib, 'mpg123_replace_buffer');
|
468
|
+
mpg123_outblock := GetProcAddress(hlib, 'mpg123_outblock');
|
469
|
+
//mpg123_replace_reader := GetProcAddress(hlib,'mpg123_replace_reader');
|
470
|
+
end;
|
471
|
+
|
472
|
+
initialization
|
473
|
+
Loadmpg123('libmpg123-0.dll');
|
474
|
+
finalization
|
475
|
+
Freempg123;
|
476
|
+
|
477
|
+
end.
|
478
|
+
|