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,48 @@
|
|
1
|
+
/*
|
2
|
+
equalizer: code for loading equalizer settings
|
3
|
+
|
4
|
+
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
5
|
+
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
6
|
+
initially written by Michael Hipp (exported to this file by Thomas Orgis)
|
7
|
+
*/
|
8
|
+
|
9
|
+
#include "mpg123app.h"
|
10
|
+
|
11
|
+
/* Load the settings from the path in the global variable equalfile.
|
12
|
+
If there is no file, restore equalizer defaults. */
|
13
|
+
int load_equalizer(mpg123_handle *mh)
|
14
|
+
{
|
15
|
+
if(equalfile != NULL)
|
16
|
+
{ /* tst; ThOr: not TRUE or FALSE: allocated or not... */
|
17
|
+
FILE *fe;
|
18
|
+
int i;
|
19
|
+
fe = fopen(equalfile,"r");
|
20
|
+
if(fe) {
|
21
|
+
char line[256];
|
22
|
+
for(i=0;i<32;i++) {
|
23
|
+
float e0 = 1.0;
|
24
|
+
float e1 = 1.0; /* %f -> float! */
|
25
|
+
do /* ignore comments */
|
26
|
+
{
|
27
|
+
line[0]=0;
|
28
|
+
fgets(line,255,fe);
|
29
|
+
}
|
30
|
+
while(line[0]=='#');
|
31
|
+
/* Hm, why not use fscanf? Comments... */
|
32
|
+
sscanf(line,"%f %f",&e0,&e1);
|
33
|
+
/* If scanning failed, we have default 1.0 value. */
|
34
|
+
mpg123_eq(mh, MPG123_LEFT, i, e0);
|
35
|
+
mpg123_eq(mh, MPG123_RIGHT, i, e1);
|
36
|
+
}
|
37
|
+
fclose(fe);
|
38
|
+
}
|
39
|
+
else
|
40
|
+
{
|
41
|
+
fprintf(stderr,"Can't open equalizer file '%s'\n",equalfile);
|
42
|
+
return -1;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
else mpg123_reset_eq(mh);
|
46
|
+
|
47
|
+
return 0;
|
48
|
+
}
|
data/mpg123/src/genre.c
ADDED
@@ -0,0 +1,271 @@
|
|
1
|
+
/*
|
2
|
+
genre: id3 genre definition
|
3
|
+
|
4
|
+
copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
|
5
|
+
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
6
|
+
initially written by Shane Wegner
|
7
|
+
*/
|
8
|
+
|
9
|
+
char *genre_table[] =
|
10
|
+
{
|
11
|
+
"Blues",
|
12
|
+
"Classic Rock",
|
13
|
+
"Country",
|
14
|
+
"Dance",
|
15
|
+
"Disco",
|
16
|
+
"Funk",
|
17
|
+
"Grunge",
|
18
|
+
"Hip-Hop",
|
19
|
+
"Jazz",
|
20
|
+
"Metal",
|
21
|
+
"New Age",
|
22
|
+
"Oldies",
|
23
|
+
"Other",
|
24
|
+
"Pop",
|
25
|
+
"R&B",
|
26
|
+
"Rap",
|
27
|
+
"Reggae",
|
28
|
+
"Rock",
|
29
|
+
"Techno",
|
30
|
+
"Industrial",
|
31
|
+
"Alternative",
|
32
|
+
"Ska",
|
33
|
+
"Death Metal",
|
34
|
+
"Pranks",
|
35
|
+
"Soundtrack",
|
36
|
+
"Euro-Techno",
|
37
|
+
"Ambient",
|
38
|
+
"Trip-Hop",
|
39
|
+
"Vocal",
|
40
|
+
"Jazz+Funk",
|
41
|
+
"Fusion",
|
42
|
+
"Trance",
|
43
|
+
"Classical",
|
44
|
+
"Instrumental",
|
45
|
+
"Acid",
|
46
|
+
"House",
|
47
|
+
"Game",
|
48
|
+
"Sound Clip",
|
49
|
+
"Gospel",
|
50
|
+
"Noise",
|
51
|
+
"AlternRock",
|
52
|
+
"Bass",
|
53
|
+
"Soul",
|
54
|
+
"Punk",
|
55
|
+
"Space",
|
56
|
+
"Meditative",
|
57
|
+
"Instrumental Pop",
|
58
|
+
"Instrumental Rock",
|
59
|
+
"Ethnic",
|
60
|
+
"Gothic",
|
61
|
+
"Darkwave",
|
62
|
+
"Techno-Industrial",
|
63
|
+
"Electronic",
|
64
|
+
"Pop-Folk",
|
65
|
+
"Eurodance",
|
66
|
+
"Dream",
|
67
|
+
"Southern Rock",
|
68
|
+
"Comedy",
|
69
|
+
"Cult",
|
70
|
+
"Gangsta",
|
71
|
+
"Top 40",
|
72
|
+
"Christian Rap",
|
73
|
+
"Pop/Funk",
|
74
|
+
"Jungle",
|
75
|
+
"Native American",
|
76
|
+
"Cabaret",
|
77
|
+
"New Wave",
|
78
|
+
"Psychedelic",
|
79
|
+
"Rave",
|
80
|
+
"Showtunes",
|
81
|
+
"Trailer",
|
82
|
+
"Lo-Fi",
|
83
|
+
"Tribal",
|
84
|
+
"Acid Punk",
|
85
|
+
"Acid Jazz",
|
86
|
+
"Polka",
|
87
|
+
"Retro",
|
88
|
+
"Musical",
|
89
|
+
"Rock & Roll",
|
90
|
+
"Hard Rock",
|
91
|
+
"Folk",
|
92
|
+
"Folk/Rock",
|
93
|
+
"National folk",
|
94
|
+
"Swing",
|
95
|
+
"Fast-fusion",
|
96
|
+
"Bebob",
|
97
|
+
"Latin",
|
98
|
+
"Revival",
|
99
|
+
"Celtic",
|
100
|
+
"Bluegrass",
|
101
|
+
"Avantgarde",
|
102
|
+
"Gothic Rock",
|
103
|
+
"Progressive Rock",
|
104
|
+
"Psychedelic Rock",
|
105
|
+
"Symphonic Rock",
|
106
|
+
"Slow Rock",
|
107
|
+
"Big Band",
|
108
|
+
"Chorus",
|
109
|
+
"Easy Listening",
|
110
|
+
"Acoustic",
|
111
|
+
"Humour",
|
112
|
+
"Speech",
|
113
|
+
"Chanson",
|
114
|
+
"Opera",
|
115
|
+
"Chamber Music",
|
116
|
+
"Sonata",
|
117
|
+
"Symphony",
|
118
|
+
"Booty Bass",
|
119
|
+
"Primus",
|
120
|
+
"Porn Groove",
|
121
|
+
"Satire",
|
122
|
+
"Slow Jam",
|
123
|
+
"Club",
|
124
|
+
"Tango",
|
125
|
+
"Samba",
|
126
|
+
"Folklore",
|
127
|
+
"Ballad",
|
128
|
+
"Powder Ballad",
|
129
|
+
"Rhythmic Soul",
|
130
|
+
"Freestyle",
|
131
|
+
"Duet",
|
132
|
+
"Punk Rock",
|
133
|
+
"Drum Solo",
|
134
|
+
"A Capella",
|
135
|
+
"Euro-House",
|
136
|
+
"Dance Hall",
|
137
|
+
"Goa",
|
138
|
+
"Drum & Bass",
|
139
|
+
"Club House",
|
140
|
+
"Hardcore",
|
141
|
+
"Terror",
|
142
|
+
"Indie",
|
143
|
+
"BritPop",
|
144
|
+
"NegerPunk",
|
145
|
+
"Polsk Punk",
|
146
|
+
"Beat",
|
147
|
+
"Christian Gangsta",
|
148
|
+
"Heavy Metal",
|
149
|
+
"Black Metal",
|
150
|
+
"Crossover",
|
151
|
+
"Contemporary C",
|
152
|
+
"Christian Rock",
|
153
|
+
"Merengue",
|
154
|
+
"Salsa",
|
155
|
+
"Thrash Metal",
|
156
|
+
"Anime",
|
157
|
+
"JPop",
|
158
|
+
"SynthPop"
|
159
|
+
/* ,
|
160
|
+
"Unknown",
|
161
|
+
"",
|
162
|
+
"",
|
163
|
+
"",
|
164
|
+
"",
|
165
|
+
"",
|
166
|
+
"",
|
167
|
+
"",
|
168
|
+
"",
|
169
|
+
"",
|
170
|
+
"",
|
171
|
+
"",
|
172
|
+
"",
|
173
|
+
"",
|
174
|
+
"",
|
175
|
+
"",
|
176
|
+
"",
|
177
|
+
"",
|
178
|
+
"",
|
179
|
+
"",
|
180
|
+
"",
|
181
|
+
"",
|
182
|
+
"",
|
183
|
+
"",
|
184
|
+
"",
|
185
|
+
"",
|
186
|
+
"",
|
187
|
+
"",
|
188
|
+
"",
|
189
|
+
"",
|
190
|
+
"",
|
191
|
+
"",
|
192
|
+
"",
|
193
|
+
"",
|
194
|
+
"",
|
195
|
+
"",
|
196
|
+
"",
|
197
|
+
"",
|
198
|
+
"",
|
199
|
+
"",
|
200
|
+
"",
|
201
|
+
"",
|
202
|
+
"",
|
203
|
+
"",
|
204
|
+
"",
|
205
|
+
"",
|
206
|
+
"",
|
207
|
+
"",
|
208
|
+
"",
|
209
|
+
"",
|
210
|
+
"",
|
211
|
+
"",
|
212
|
+
"",
|
213
|
+
"",
|
214
|
+
"",
|
215
|
+
"",
|
216
|
+
"",
|
217
|
+
"",
|
218
|
+
"",
|
219
|
+
"",
|
220
|
+
"",
|
221
|
+
"",
|
222
|
+
"",
|
223
|
+
"",
|
224
|
+
"",
|
225
|
+
"",
|
226
|
+
"",
|
227
|
+
"",
|
228
|
+
"",
|
229
|
+
"",
|
230
|
+
"",
|
231
|
+
"",
|
232
|
+
"",
|
233
|
+
"",
|
234
|
+
"",
|
235
|
+
"",
|
236
|
+
"",
|
237
|
+
"",
|
238
|
+
"",
|
239
|
+
"",
|
240
|
+
"",
|
241
|
+
"",
|
242
|
+
"",
|
243
|
+
"",
|
244
|
+
"",
|
245
|
+
"",
|
246
|
+
"",
|
247
|
+
"",
|
248
|
+
"",
|
249
|
+
"",
|
250
|
+
"",
|
251
|
+
"",
|
252
|
+
"",
|
253
|
+
"",
|
254
|
+
"",
|
255
|
+
"",
|
256
|
+
"",
|
257
|
+
"",
|
258
|
+
"",
|
259
|
+
"",
|
260
|
+
"",
|
261
|
+
"",
|
262
|
+
"",
|
263
|
+
"",
|
264
|
+
"",
|
265
|
+
"",
|
266
|
+
"",
|
267
|
+
""
|
268
|
+
*/
|
269
|
+
};
|
270
|
+
|
271
|
+
const int genre_count = ((int)(sizeof(genre_table)/sizeof(char*))-1);
|
data/mpg123/src/genre.h
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
genre: id3 genre definition
|
3
|
+
|
4
|
+
copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
|
5
|
+
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
6
|
+
initially written by Shane Wegner
|
7
|
+
*/
|
8
|
+
|
9
|
+
#ifndef _MPG123_GENRE_H_
|
10
|
+
#define _MPG123_GENRE_H_
|
11
|
+
|
12
|
+
extern char *genre_table[];
|
13
|
+
extern const int genre_count;
|
14
|
+
|
15
|
+
#endif
|
@@ -0,0 +1,148 @@
|
|
1
|
+
/*
|
2
|
+
getlopt: command line option/parameter parsing
|
3
|
+
|
4
|
+
copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
5
|
+
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
6
|
+
initially written Oliver Fromme
|
7
|
+
old timestamp: Tue Apr 8 07:15:13 MET DST 1997
|
8
|
+
*/
|
9
|
+
|
10
|
+
#include <stdio.h>
|
11
|
+
#include "config.h"
|
12
|
+
#include "getlopt.h"
|
13
|
+
#include "compat.h"
|
14
|
+
#include "debug.h"
|
15
|
+
|
16
|
+
int loptind = 1; /* index in argv[] */
|
17
|
+
int loptchr = 0; /* index in argv[loptind] */
|
18
|
+
char *loptarg; /* points to argument if present, else to option */
|
19
|
+
|
20
|
+
topt *findopt (int islong, char *opt, topt *opts)
|
21
|
+
{
|
22
|
+
if (!opts)
|
23
|
+
return (0);
|
24
|
+
while (opts->lname) {
|
25
|
+
if (islong) {
|
26
|
+
if (!strcmp(opts->lname, opt))
|
27
|
+
return (opts);
|
28
|
+
}
|
29
|
+
else
|
30
|
+
if (opts->sname == *opt)
|
31
|
+
return (opts);
|
32
|
+
opts++;
|
33
|
+
}
|
34
|
+
return (0);
|
35
|
+
}
|
36
|
+
|
37
|
+
int performoption (int argc, char *argv[], topt *opt)
|
38
|
+
{
|
39
|
+
int result = GLO_CONTINUE;
|
40
|
+
/* this really is not supposed to happen, so the exit may be justified to create asap ficing pressure */
|
41
|
+
#define prog_error() \
|
42
|
+
{ \
|
43
|
+
fprintf(stderr, __FILE__ ":%i Option without type flag! This is a programming error! Developer: fix this ASAP to regain your honor.\n", __LINE__); \
|
44
|
+
exit(1); \
|
45
|
+
}
|
46
|
+
|
47
|
+
if (!(opt->flags & GLO_ARG)) { /* doesn't take argument */
|
48
|
+
if (opt->var) {
|
49
|
+
if (opt->flags & GLO_CHAR) /* var is *char */
|
50
|
+
{
|
51
|
+
debug1("char at %p", opt->var);
|
52
|
+
*((char *) opt->var) = (char) opt->value;\
|
53
|
+
}
|
54
|
+
else if(opt->flags & GLO_LONG)
|
55
|
+
{
|
56
|
+
debug1("long at %p", opt->var);
|
57
|
+
*( (long *) opt->var ) = opt->value;
|
58
|
+
}
|
59
|
+
else if(opt->flags & GLO_INT)
|
60
|
+
{
|
61
|
+
debug1("int at %p", opt->var);
|
62
|
+
*( (int *) opt->var ) = (int) opt->value;
|
63
|
+
}
|
64
|
+
/* GLO_DOUBLE is not supported here */
|
65
|
+
else prog_error();
|
66
|
+
|
67
|
+
debug("casting assignment done");
|
68
|
+
}
|
69
|
+
else
|
70
|
+
result = opt->value ? opt->value : opt->sname;
|
71
|
+
}
|
72
|
+
else { /* requires argument */
|
73
|
+
if (loptind >= argc)
|
74
|
+
return (GLO_NOARG);
|
75
|
+
loptarg = argv[loptind++]+loptchr;
|
76
|
+
loptchr = 0;
|
77
|
+
if (opt->var) {
|
78
|
+
if (opt->flags & GLO_CHAR) /* var is *char */
|
79
|
+
*((char **) opt->var) = strdup(loptarg); /* valgrind claims lost memory here */
|
80
|
+
else if(opt->flags & GLO_LONG)
|
81
|
+
*((long *) opt->var) = atol(loptarg);
|
82
|
+
else if(opt->flags & GLO_INT)
|
83
|
+
*((int *) opt->var) = atoi(loptarg);
|
84
|
+
else if(opt->flags & GLO_DOUBLE)
|
85
|
+
*((double *) opt->var) = atof(loptarg);
|
86
|
+
else prog_error();
|
87
|
+
}
|
88
|
+
else
|
89
|
+
result = opt->value ? opt->value : opt->sname;
|
90
|
+
}
|
91
|
+
if (opt->func)
|
92
|
+
opt->func(loptarg);
|
93
|
+
return (result);
|
94
|
+
}
|
95
|
+
|
96
|
+
int getsingleopt (int argc, char *argv[], topt *opts)
|
97
|
+
{
|
98
|
+
char *thisopt;
|
99
|
+
topt *opt;
|
100
|
+
static char shortopt[2] = {0, 0};
|
101
|
+
|
102
|
+
if (loptind >= argc)
|
103
|
+
return (GLO_END);
|
104
|
+
thisopt = argv[loptind];
|
105
|
+
debug1("getsingleopt: %s", thisopt);
|
106
|
+
if (!loptchr) { /* start new option string */
|
107
|
+
if (thisopt[0] != '-' || !thisopt[1]) /* no more options */
|
108
|
+
return (GLO_END);
|
109
|
+
if (thisopt[1] == '-') { /* "--" */
|
110
|
+
if (thisopt[2]) { /* long option */
|
111
|
+
loptarg = thisopt+2;
|
112
|
+
loptind++;
|
113
|
+
if (!(opt = findopt(1, thisopt+2, opts)))
|
114
|
+
return (GLO_UNKNOWN);
|
115
|
+
else
|
116
|
+
return (performoption(argc, argv, opt));
|
117
|
+
}
|
118
|
+
else { /* "--" == end of options */
|
119
|
+
loptind++;
|
120
|
+
return (GLO_END);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
else /* start short option(s) */
|
124
|
+
loptchr = 1;
|
125
|
+
}
|
126
|
+
shortopt[0] = thisopt[loptchr];
|
127
|
+
loptarg = shortopt;
|
128
|
+
opt = findopt(0, thisopt+(loptchr++), opts);
|
129
|
+
if (!thisopt[loptchr]) {
|
130
|
+
loptind++;
|
131
|
+
loptchr = 0;
|
132
|
+
}
|
133
|
+
if (!opt)
|
134
|
+
return (GLO_UNKNOWN);
|
135
|
+
else
|
136
|
+
return (performoption(argc, argv, opt));
|
137
|
+
}
|
138
|
+
|
139
|
+
int getlopt (int argc, char *argv[], topt *opts)
|
140
|
+
{
|
141
|
+
|
142
|
+
int result;
|
143
|
+
|
144
|
+
while ((result = getsingleopt(argc, argv, opts)) == GLO_CONTINUE);
|
145
|
+
return (result);
|
146
|
+
}
|
147
|
+
|
148
|
+
/* EOF */
|