Built SDL2_image and _mixer static
This commit is contained in:
175
libsdl2_mixer/external/mpg123-1.25.6/AUTHORS
vendored
Normal file
175
libsdl2_mixer/external/mpg123-1.25.6/AUTHORS
vendored
Normal file
@ -0,0 +1,175 @@
|
||||
This is an attempt to give credit to the people who contributed in some way to the mpg123 project.
|
||||
There are names and email addresses listed. Please use these addresses only to contact contributors with some question about their mpg123 contribution.
|
||||
You are explicitly not allowed to send them unwanted business offers or to question the quality of their sex life.
|
||||
--------------------
|
||||
|
||||
Being on the list of contributing authors not necessarily means that there
|
||||
is significant copyright in parts of the source code. There are obviously
|
||||
contributions of differing complexity. I try to mention people who motivated
|
||||
changes at least by suggesting some definite code changes, even if their
|
||||
code did not enter the mpg123 source verbatim. Trivial changes like pointing
|
||||
out ovbious syntax errors that make compilers cry do not land here.
|
||||
|
||||
--------------------
|
||||
|
||||
Current maintainers with various sorts of contributions:
|
||||
Thomas Orgis <thomas@orgis.org>
|
||||
Patrick Dehne <patrick@steidle.net>
|
||||
Jonathan Yong <10walls@gmail.com>
|
||||
Taihei Momma <tmkk@mac.com>
|
||||
|
||||
Co-initiator of the revived mpg123 project, but not that involved anymore:
|
||||
Nicholas J Humfrey <njh@ecs.soton.ac.uk>
|
||||
|
||||
Special thanks go to Taihei, the person who keeps the assembly optimisations alive
|
||||
and takes care of portability to OSX/iOS platforms.
|
||||
|
||||
Generic address pointing to the current maintainer (hopefully still works in future in case maintainership will change again): <maintainer@mpg123.org>
|
||||
|
||||
The creator: Michael Hipp (email: hippm@informatik.uni-tuebingen.de - please bother maintainers first)
|
||||
|
||||
Contributions/ideas Thomas Orgis era (includes backports from mhipp trunk):
|
||||
|
||||
Won-Kyu Park <wkpark@gmail.com>: patch to get rid of asm textrels (x86 PIC)
|
||||
Michael Weiser <michaelweiser@users.sf.net>: update of coreaudio output to AudioComponents API
|
||||
Bent Bisballe Nyeng <bbn@dynastrom.com>: patch for MPG123_NO_PEEK_END and MPG123_FORCE_SEEKABLE
|
||||
Eric S. Raymond <esr@thyrsus.com>: man page fixes
|
||||
Tobias Weber <tobiw@suprafluid.com>: patch for --disable-equalizer
|
||||
Hans de Goede <j.w.r.degoede@gmail.com>: patch to skip APE tags
|
||||
Stephan Vedder <stephan.vedder@gmail.com>: MSVC++ 2013 port update
|
||||
Rajeev V. Pillai <rajeevvp@users.sf.net>: pointing out/patching issues in HTTP code and behaviour of mpg123 remote/terminal control
|
||||
Jarno Lehtinen <lehtinen@sci.fi>: tinyalsa output
|
||||
Anthony Wells <borgboyone@yahoo.com>: initial version of ID3v2 APIC patch
|
||||
David Wohlferd <limegreensocks@yahoo.com>: Win32 WaveOut buffer destructor fix.
|
||||
Mike Gorchak <mike.gorchak.qnx@gmail.com>: QNX native audio output (QSA)
|
||||
Dan McGee <dpmcgee@gmail.com>: various patches (also for test suite)
|
||||
Jonathan Yong (jon_y) <10walls@gmail.com>: win32 hacking, win32 wasapi audio.
|
||||
Malcolm Boczek <MBoczek@terraindustries.com>: Common language runtime wrapper
|
||||
Elbert Pol (TeLLie) <elbert.pol@gmail.com>: OS/2 port fixup
|
||||
Jeroen Valkonet <jvalkon@xs4all.nl>: motivate pitch control, suggestive patch for pitch command in generic control interface
|
||||
Andy Hefner <ahefner@gmail.com>: patch for that second UTF16 issue
|
||||
Taihei Monma <tmkk@mac.com>: A whole lot of new/improved assembler code, including Altivec!
|
||||
Christian Weisgerber <naddy@openbsd.org>, Brad Smith: sndio output
|
||||
Patrick Dehne (P4tr3ck) <patrick@steidle.net>: more MSVC++ porting, patch to handle missing bit reservoirs
|
||||
Thorsten Glaser <tg@mirbsd.de>: icy2utf8, suggest utf8 locale stuff
|
||||
Dan Smith <dan@algenta.com>: ABI fixes for ensuring stack alignment (esp. for MinGW-built DLL with MSVC)
|
||||
Michael Ryzhykh <mclroy@gmail.com>: mpg123.spec.in
|
||||
Stefan Lenselink <Stefan@lenselink.org>: initial aRts output
|
||||
Sergej Kvachonok <ravenexp@gmail.com>: win32 audio rewrite
|
||||
Winston: SunOS-4.1.4/gcc-2.7.0 testing and suggestions for fixes (legacy Makefile, integer type headers)
|
||||
Mika Tiainen: pointing out the fix for the UTF to ASCII filtering of tags to actually work
|
||||
Nick Kurshev <nickols_k@mail.ru>: extended 3dnow (from mplayer)
|
||||
Zuxy Meng <zuxy.meng@gmail.com>: SSE (from mplayer)
|
||||
Honza <cundrak@quick.cz>: idea and prototype patch for ICY meta data support
|
||||
Petr Baudis <pasky@ucw.cz>: patches: term sigcont, id3 display unicode fallback and condensed output
|
||||
Petr Salinger <Petr.Salinger@seznam.cz>: i486 enhancement
|
||||
mpdavig@users.sourceforge.net: linux-ppc-nas Makefile.legacy entry
|
||||
Adrian Bacon <adrian.bacon@xs4all.nl>: patched decode_i586_dither (noise shaped float/int rounding)
|
||||
Cool Feet Audio project <nutcase@dtfm.org>: realtime equalizer control
|
||||
Steve Grundell <www@grundell.u-net.com>: clean stdout in control mode with stdout decoding
|
||||
Romain Dolbeau <romain@dolbeau.org>: Altivec support (taken from mplayer)
|
||||
higway <higway@mednet.md>: MMX Patch
|
||||
Clemens Ladisch <clemens@ladisch.de>: ALSA 0.9/1.0 support
|
||||
|
||||
Debian Daniel Kobras <kobras@debian.org> era:
|
||||
|
||||
Steve Kemp <skx@debian.org>
|
||||
Dan Olson <theoddone33@icculus.org>
|
||||
Syuuhei Kashiyama <squash@mb.kcom.ne.jp>
|
||||
Rupert Levene <rupert.debian@hotpop.com>
|
||||
Andreas Dilger <adilger@turbolinux.com>
|
||||
Erik B. Andersen <andersee@debian.org>
|
||||
Chris Butler <chrisb@debian.org>
|
||||
Martin Sjogren <md9ms@mdstud.chalmers.se>
|
||||
Chet Hosey <chosey@budapress.com>
|
||||
Roland Rosenfeld <roland@spinnaker.de>
|
||||
|
||||
|
||||
Debian Colin Watson <cjwatson@debian.org> era:
|
||||
|
||||
Helge Deller <deller@gmx.de>
|
||||
Chet Hosey <chosey@budapress.com>
|
||||
Christopher C. Chimelis <chris@debian.org>
|
||||
Roland Rosenfeld <roland@spinnaker.de>
|
||||
Marcelo E. Magallon <mmagallo@debian.org>
|
||||
|
||||
|
||||
Initial Debianers:
|
||||
|
||||
Tommi Virtanen <tv@debian.org>
|
||||
Paul Haggart <phaggart@debian.org>
|
||||
|
||||
|
||||
Contributions/ideas Michael Hipp era:
|
||||
|
||||
Mikko Tommila: DCT9
|
||||
Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
|
||||
MPEG Software Simulation Group: reference decoder package
|
||||
Tobias Bading: idea for DCT64 in subband synthesis from maplay package
|
||||
Jeff Tsay and Mikko Tommila: MDCT36 from maplay package
|
||||
Philipp Knirsch <phil@mpik-tueb.mpg.de>: DCT36/manual unroll idea
|
||||
Thomas Woerner: SGI Audio
|
||||
Damien Clermonte: HP-UX audio fixes
|
||||
Niclas Lindstrom <nil@wineasy.se>: OS2 port
|
||||
Stefan Bieschewski <stb@acm.org>: Pentium optimizations, decode_i586.s
|
||||
Martin Denn <mdenn@unix-ag.uni-kl.de>: NAS port
|
||||
Niklas Beisert <nbeisert@physik.tu-muenchen.de>: MPEG 2.5 tables
|
||||
<mycroft@NetBSD.ORG> and <augustss@cs.chalmers.se>: NetBSD Patch(es)
|
||||
Kevin Brintnall <kbrint@visi.com>: BSD patch
|
||||
Tony Million: win32 port
|
||||
Steven Tiger Lang: advanced shuffle
|
||||
Eric B. Mitchell: esd port
|
||||
Ryan R. Prosser <prosser@geocities.com>: esd port for Solaris
|
||||
Andreas Neuhaus: initial generic control interface
|
||||
|
||||
(additionally fetched from changelog:)
|
||||
|
||||
Ralf Hildebrandt <R.Hildebrandt@TU-BS.DE>: audio_alib changes
|
||||
<sms@moe.2bsd.com>: BSDOS 4.0 with gcc added to Makefile
|
||||
Bertrand Petit <elrond@phoe.netdev.net>: frontend changes
|
||||
Erik Mouw <J.A.K.Mouw@its.tudelft.nl>: SGI audio fix for non RAD machines
|
||||
Daniel O'Connor <darius@guppy.dons.net.au>: freebsd-esd make-entry
|
||||
D. Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>: enhanced head_check
|
||||
Wilson, Jeff D <jeff.wilson@wilcom.com>: xterm-title
|
||||
Robert Bihlmeyer <robbe@orcus.priv.at>: esd changes
|
||||
Hannu Napari's <Hannu.Napari@hut.fi>: SGI audio patches
|
||||
<Juergen.Schoew@unix-ag.uni-siegen.de>: native AIX support
|
||||
<psst@euskalnet.net>: playlist patch
|
||||
Gilles Zunino <Gilles.Zunino@hei.fupl.asso.fr>: SGI audio patches
|
||||
Matthew Parslow <roy@alpha.alphalink.com.au>: esdserver patch
|
||||
<dlux@dlux.sch.bme.hu>: equalizer patch (equalfile setting)
|
||||
Ducroquet Erwan <ducroque@ufr-info-p7.ibp.fr>: HPUX/ALib support
|
||||
Shane Wegner <shane@CM.NU>: genrepatch
|
||||
Samuel Audet <guardia@step.polymtl.ca>: wav-File patch
|
||||
"J. Dean Brederson" <jdb@cs.utah.edu>: SGI-RAD support
|
||||
Chou Ye-chi <is84002@cis.nctu.edu.tw>: sajberplay/FreeBSD patch
|
||||
Fabrice Bellard <bellard@email.enst.fr>: 486 optimizations
|
||||
A. Hermansen <ahermans@vf.telia.no> and J. Kysela <perex@jcu.cz>: ALSA output
|
||||
KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp>: K6-3DNow
|
||||
Petr Stehlik <stehlik@cas3.zlin.vutbr.cz>: MINT
|
||||
Andy <andy@snoogie.demon.co.uk>: float2int speed up proposal
|
||||
Brian Foutz <foutz@anise.ee.cornell.edu>: TK3Play
|
||||
Thomas Niederreiter <tn@tarantel.rz.fh-muenchen.de>: RIFF header fix
|
||||
Stefan Gybas <cab@studbox.uni-stuttgart.de>: m68k patch
|
||||
Grant Erickson <eric0139@tc.umn.edu>: Linux PPC patch
|
||||
Peter Berger <peterb@hoopoe.psc.edu>: BSDi patch
|
||||
Henrik P Johnson <king@one.se>: HTTP auth
|
||||
Steven Tiger Lang <tiger@tyger.org>: advanced shuffle
|
||||
"Brian J. Swetland" <swetland@uiuc.edu>: front-end (remote) patch
|
||||
<leo@zycad.com>
|
||||
Tillmann Steinbrecher <tst@gmx.de>: shuffle patch
|
||||
M.Stekelenburg <m.stekelenburg@student.utwente.nl>: i386-getbits
|
||||
Antti Andreimann <anttix@cyberix.edu.ee>: outburst patch
|
||||
Hur TaeSung <saturn@arari.snu.ac.kr>: 'http accept' patch
|
||||
|
||||
(from post-0.59 changes that yet have to go into new trunk:)
|
||||
|
||||
Hans Schwengeler <schweng@astro.unibas.ch>: audio_dec additions
|
||||
Wojciech Bara<72>ski's Mp3Play (check the tools folder): Mp3Play frontend
|
||||
Daniel Koukola: audio_oss.c patch
|
||||
Munechika SUMIKAWA <sumikawa@ebina.hitachi.co.jp>: IPv6
|
||||
TEMNOTA <temnota@kmv.ru>: HTTP,FTP patch/playlist fix
|
||||
Peter Surda <shurdeek@panorama.sth.ac.at>: VBR patch
|
||||
Ben <ben@blaukopf.com>: ARM startup time improvements
|
||||
Dave MacKenzie <djm@pix.net>: init_output() patch
|
||||
pasky's <pasky@ju.cz>: close-on-stop patch
|
226
libsdl2_mixer/external/mpg123-1.25.6/Android.mk
vendored
Normal file
226
libsdl2_mixer/external/mpg123-1.25.6/Android.mk
vendored
Normal file
@ -0,0 +1,226 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libmpg123
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/android \
|
||||
$(LOCAL_PATH)/src \
|
||||
$(LOCAL_PATH)/src/compat \
|
||||
$(LOCAL_PATH)/src/libmpg123 \
|
||||
|
||||
DECODER_CFLAGS_NEON := -DOPT_NEON -DREAL_IS_FLOAT
|
||||
|
||||
DECODER_SRC_NEON := \
|
||||
src/libmpg123/stringbuf.c \
|
||||
src/libmpg123/icy.c \
|
||||
src/libmpg123/icy2utf8.c \
|
||||
src/libmpg123/ntom.c \
|
||||
src/libmpg123/synth.c \
|
||||
src/libmpg123/synth_8bit.c \
|
||||
src/libmpg123/layer1.c \
|
||||
src/libmpg123/layer2.c \
|
||||
src/libmpg123/layer3.c \
|
||||
src/libmpg123/dct36_neon.S \
|
||||
src/libmpg123/dct64_neon_float.S \
|
||||
src/libmpg123/synth_neon_float.S \
|
||||
src/libmpg123/synth_neon_s32.S \
|
||||
src/libmpg123/synth_stereo_neon_float.S \
|
||||
src/libmpg123/synth_stereo_neon_s32.S \
|
||||
src/libmpg123/dct64_neon.S \
|
||||
src/libmpg123/synth_neon.S \
|
||||
src/libmpg123/synth_stereo_neon.S \
|
||||
src/libmpg123/synth_s32.c \
|
||||
src/libmpg123/synth_real.c \
|
||||
src/libmpg123/feature.c \
|
||||
|
||||
DECODER_CFLAGS_NEON64 := -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_NEON64 -DREAL_IS_FLOAT
|
||||
|
||||
DECODER_SRC_NEON64 := \
|
||||
src/libmpg123/stringbuf.c \
|
||||
src/libmpg123/icy.c \
|
||||
src/libmpg123/icy2utf8.c \
|
||||
src/libmpg123/ntom.c \
|
||||
src/libmpg123/synth.c \
|
||||
src/libmpg123/synth_8bit.c \
|
||||
src/libmpg123/layer1.c \
|
||||
src/libmpg123/layer2.c \
|
||||
src/libmpg123/layer3.c \
|
||||
src/libmpg123/dct36_neon64.S \
|
||||
src/libmpg123/dct64_neon64_float.S \
|
||||
src/libmpg123/synth_neon64_float.S \
|
||||
src/libmpg123/synth_neon64_s32.S \
|
||||
src/libmpg123/synth_stereo_neon64_float.S \
|
||||
src/libmpg123/synth_stereo_neon64_s32.S \
|
||||
src/libmpg123/dct64_neon64.S \
|
||||
src/libmpg123/synth_neon64.S \
|
||||
src/libmpg123/synth_stereo_neon64.S \
|
||||
src/libmpg123/synth_s32.c \
|
||||
src/libmpg123/synth_real.c \
|
||||
src/libmpg123/dither.c \
|
||||
src/libmpg123/getcpuflags_arm.c \
|
||||
src/libmpg123/check_neon.S \
|
||||
src/libmpg123/feature.c \
|
||||
|
||||
# Unfortunately the assembly isn't relocatable so doesn't work on modern
|
||||
# Android devices
|
||||
DECODER_CFLAGS_X86 := -DOPT_GENERIC -DREAL_IS_FLOAT
|
||||
DECODER_CFLAGS_X86_ASM := -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOW_VINTAGE -DOPT_3DNOWEXT -DOPT_3DNOWEXT_VINTAGE -DOPT_SSE -DOPT_SSE_VINTAGE -DREAL_IS_FLOAT
|
||||
|
||||
DECODER_SRC_X86 := \
|
||||
src/libmpg123/feature.c \
|
||||
src/libmpg123/icy2utf8.c \
|
||||
src/libmpg123/icy.c \
|
||||
src/libmpg123/layer1.c \
|
||||
src/libmpg123/layer2.c \
|
||||
src/libmpg123/layer3.c \
|
||||
src/libmpg123/ntom.c \
|
||||
src/libmpg123/stringbuf.c \
|
||||
src/libmpg123/synth_8bit.c \
|
||||
src/libmpg123/synth.c \
|
||||
src/libmpg123/synth_real.c \
|
||||
src/libmpg123/synth_s32.c \
|
||||
src/libmpg123/dither.c \
|
||||
|
||||
DECODER_SRC_X86_ASM := \
|
||||
src/libmpg123/stringbuf.c \
|
||||
src/libmpg123/icy.c \
|
||||
src/libmpg123/icy2utf8.c \
|
||||
src/libmpg123/ntom.c \
|
||||
src/libmpg123/synth.c \
|
||||
src/libmpg123/synth_8bit.c \
|
||||
src/libmpg123/layer1.c \
|
||||
src/libmpg123/layer2.c \
|
||||
src/libmpg123/layer3.c \
|
||||
src/libmpg123/synth_s32.c \
|
||||
src/libmpg123/synth_real.c \
|
||||
src/libmpg123/dct64_i386.c \
|
||||
src/libmpg123/synth_i586.S \
|
||||
src/libmpg123/synth_i586_dither.S \
|
||||
src/libmpg123/dct64_mmx.S \
|
||||
src/libmpg123/tabinit_mmx.S \
|
||||
src/libmpg123/synth_mmx.S \
|
||||
src/libmpg123/synth_3dnow.S \
|
||||
src/libmpg123/dct64_3dnow.S \
|
||||
src/libmpg123/equalizer_3dnow.S \
|
||||
src/libmpg123/dct36_3dnow.S \
|
||||
src/libmpg123/dct64_3dnowext.S \
|
||||
src/libmpg123/synth_3dnowext.S \
|
||||
src/libmpg123/dct36_3dnowext.S \
|
||||
src/libmpg123/dct64_sse_float.S \
|
||||
src/libmpg123/synth_sse_float.S \
|
||||
src/libmpg123/synth_stereo_sse_float.S \
|
||||
src/libmpg123/synth_sse_s32.S \
|
||||
src/libmpg123/synth_stereo_sse_s32.S \
|
||||
src/libmpg123/dct36_sse.S \
|
||||
src/libmpg123/dct64_sse.S \
|
||||
src/libmpg123/synth_sse.S \
|
||||
src/libmpg123/getcpuflags.S \
|
||||
src/libmpg123/dither.c \
|
||||
src/libmpg123/feature.c \
|
||||
|
||||
DECODER_CFLAGS_X64 := -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT -DOPT_AVX
|
||||
|
||||
DECODER_SRC_X64 := \
|
||||
src/libmpg123/stringbuf.c \
|
||||
src/libmpg123/icy.c \
|
||||
src/libmpg123/icy.h \
|
||||
src/libmpg123/icy2utf8.c \
|
||||
src/libmpg123/icy2utf8.h \
|
||||
src/libmpg123/ntom.c \
|
||||
src/libmpg123/synth.c \
|
||||
src/libmpg123/synth.h \
|
||||
src/libmpg123/synth_8bit.c \
|
||||
src/libmpg123/synth_8bit.h \
|
||||
src/libmpg123/layer1.c \
|
||||
src/libmpg123/layer2.c \
|
||||
src/libmpg123/layer3.c \
|
||||
src/libmpg123/synth_s32.c \
|
||||
src/libmpg123/synth_real.c \
|
||||
src/libmpg123/dct36_x86_64.S \
|
||||
src/libmpg123/dct64_x86_64_float.S \
|
||||
src/libmpg123/synth_x86_64_float.S \
|
||||
src/libmpg123/synth_x86_64_s32.S \
|
||||
src/libmpg123/synth_stereo_x86_64_float.S \
|
||||
src/libmpg123/synth_stereo_x86_64_s32.S \
|
||||
src/libmpg123/synth_x86_64.S \
|
||||
src/libmpg123/dct64_x86_64.S \
|
||||
src/libmpg123/synth_stereo_x86_64.S \
|
||||
src/libmpg123/dither.c \
|
||||
src/libmpg123/dither.h \
|
||||
src/libmpg123/getcpuflags_x86_64.S \
|
||||
src/libmpg123/dct36_avx.S \
|
||||
src/libmpg123/dct64_avx_float.S \
|
||||
src/libmpg123/synth_stereo_avx_float.S \
|
||||
src/libmpg123/synth_stereo_avx_s32.S \
|
||||
src/libmpg123/dct64_avx.S \
|
||||
src/libmpg123/synth_stereo_avx.S \
|
||||
src/libmpg123/feature.c
|
||||
|
||||
DECODER_CFLAGS_MIPS := -DOPT_GENERIC -DREAL_IS_FLOAT
|
||||
|
||||
DECODER_SRC_MIPS := \
|
||||
src/libmpg123/stringbuf.c \
|
||||
src/libmpg123/icy.c \
|
||||
src/libmpg123/icy2utf8.c \
|
||||
src/libmpg123/ntom.c \
|
||||
src/libmpg123/synth.c \
|
||||
src/libmpg123/synth_8bit.c \
|
||||
src/libmpg123/layer1.c \
|
||||
src/libmpg123/layer2.c \
|
||||
src/libmpg123/layer3.c \
|
||||
src/libmpg123/synth_s32.c \
|
||||
src/libmpg123/synth_real.c \
|
||||
src/libmpg123/feature.c
|
||||
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
||||
DECODER_CFLAGS := $(DECODER_CFLAGS_NEON)
|
||||
DECODER_SRC := $(DECODER_SRC_NEON)
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
DECODER_CFLAGS := $(DECODER_CFLAGS_NEON)
|
||||
DECODER_SRC := $(DECODER_SRC_NEON)
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
||||
DECODER_CFLAGS := $(DECODER_CFLAGS_NEON64)
|
||||
DECODER_SRC := $(DECODER_SRC_NEON64)
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
DECODER_CFLAGS := $(DECODER_CFLAGS_X86)
|
||||
DECODER_SRC := $(DECODER_SRC_X86)
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
DECODER_CFLAGS := $(DECODER_CFLAGS_X64)
|
||||
DECODER_SRC := $(DECODER_SRC_X64)
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),mips)
|
||||
DECODER_CFLAGS := $(DECODER_CFLAGS_MIPS)
|
||||
DECODER_SRC := $(DECODER_SRC_MIPS)
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),mips64)
|
||||
DECODER_CFLAGS := $(DECODER_CFLAGS_MIPS)
|
||||
DECODER_SRC := $(DECODER_SRC_MIPS)
|
||||
endif
|
||||
|
||||
LOCAL_CFLAGS := $(DECODER_CFLAGS)
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
src/libmpg123/parse.c \
|
||||
src/libmpg123/frame.c \
|
||||
src/libmpg123/format.c \
|
||||
src/libmpg123/dct64.c \
|
||||
src/libmpg123/equalizer.c \
|
||||
src/libmpg123/id3.c \
|
||||
src/libmpg123/optimize.c \
|
||||
src/libmpg123/readers.c \
|
||||
src/libmpg123/tabinit.c \
|
||||
src/libmpg123/libmpg123.c \
|
||||
src/libmpg123/index.c \
|
||||
src/compat/compat_str.c \
|
||||
src/compat/compat.c \
|
||||
$(DECODER_SRC)
|
||||
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
772
libsdl2_mixer/external/mpg123-1.25.6/COPYING
vendored
Normal file
772
libsdl2_mixer/external/mpg123-1.25.6/COPYING
vendored
Normal file
@ -0,0 +1,772 @@
|
||||
This is the file that contains the terms of use, copying, etc. for the mpg123 distribution package.
|
||||
|
||||
Main message, to include in "About ..." boxes, etc:
|
||||
|
||||
Copyright (c) 1995-2013 by Michael Hipp and others,
|
||||
free software under the terms of the LGPL v2.1
|
||||
|
||||
There is an attempt to cover the actual list of authors in the AUTHORS file.
|
||||
Project maintainer since 2006 is Thomas Orgis and many people have contributed
|
||||
since the Michael Hipp era, but he stays the initial source and it would
|
||||
be impractical to count them all individually, so it's "and others".
|
||||
Source files contain the phrase "the mpg123 project" to the same effect
|
||||
in their license boilerplate; especially those that were added after
|
||||
maintainership changed. The person mainly responsible for the first version
|
||||
is usually named in the phrase "initially written by ...".
|
||||
|
||||
All files in the distribution that don't carry a license note on their own are
|
||||
licensed under the terms of the LGPL 2.1; exceptions may apply, especially to
|
||||
files not in the official distribution but in the revision control repository.
|
||||
|
||||
The formal license text follows.
|
||||
|
||||
=======================
|
||||
1. The LGPL version 2.1
|
||||
=======================
|
||||
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
|
||||
====================
|
||||
2. The GPL version 2
|
||||
====================
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
3
libsdl2_mixer/external/mpg123-1.25.6/ChangeLog
vendored
Normal file
3
libsdl2_mixer/external/mpg123-1.25.6/ChangeLog
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
This is a dummy file. If you want to see the change log, use subversion:
|
||||
|
||||
svn log -v svn://orgis.org/mpg123
|
115
libsdl2_mixer/external/mpg123-1.25.6/INSTALL
vendored
Normal file
115
libsdl2_mixer/external/mpg123-1.25.6/INSTALL
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
mpg123 install hints
|
||||
--------------------
|
||||
|
||||
(This file has very long lines - die-hard terminal nostalgists can be satisfied by `fmt -s -w 75 < INSTALL | less`. I think it's better to let the reader's preference rule than to preformat the stuff to some arbitrary width.)
|
||||
|
||||
|
||||
0. Prerequesites
|
||||
|
||||
You really need:
|
||||
|
||||
- a C compiler; we try to keep the code ANSI C89/ISO C90 compatible
|
||||
gcc from 2.95 on should work, others, too - please report any issues
|
||||
Actually, we have a confirmed working build (svn trunk leading to release 0.67) on SunOS 4.1.4 with gcc-2.7.0 .
|
||||
|
||||
- an (UNIX-like) operating system with standard tools; MinGW32 and Cygwin are working for Microsoft Windows, too. We also have users happily on OS/2.
|
||||
- For the library only, you may get lucky with MSVC++ using the project files under ports/
|
||||
- For other exotic platforms, also see ports/
|
||||
- If building from direct SCM checkout, you need GNU autotools installed (see below).
|
||||
|
||||
You want:
|
||||
|
||||
- working assembler (recent GNU binutils) if using certain CPU optimizations
|
||||
- headers and lib for certain audio output drivers (libasound for alsa, sdl for sdl...)
|
||||
|
||||
1. Build
|
||||
|
||||
There is one main supported way to get your mpg123 installation consisting of
|
||||
|
||||
a) the mpg123 binary file
|
||||
- with libmpg123 as shared library or statically linked
|
||||
- with audio output plugins, or one statically linked
|
||||
b) a man page
|
||||
|
||||
(you may want to copy some of the documentation - README, etc - to /usr/share/doc/mpg123 or the like, too)
|
||||
|
||||
This way is the usual GNU 3-step procedure:
|
||||
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
Run
|
||||
|
||||
./configure --help
|
||||
|
||||
for a list of possible parameters you can specify in the configuration step. The obvious are --prefix and the normal GNU autotool bunch, but others include what audio subsystem to use and what CPU optimizations to build in.
|
||||
For the optimizations (decoder choice), the default is a build that combines all usable optimizations for the platform and chooses one at runtime (see --cpu, --list-cpu and --test-cpu parameters).
|
||||
|
||||
There are various parameters you can tune, but of course the defaults are what is mainly tested.
|
||||
|
||||
Also, various library features can be left out via --disable options (like output formats, resampling modes). That way, you can strive for a minimal build that only does what you really need. Not every combination of library features is tested regularily, so you might hit some speed bumps, but usually stuff that is easily worked out (at least for the mpg123 team when you report it).
|
||||
|
||||
An example (working on mpg123 trunk r3062):
|
||||
|
||||
CFLAGS="-Os -s" ./configure --with-cpu=generic --disable-id3v2 --disable-lfs-alias --disable-feature-report --with-seektable=0 --disable-16bit --disable-32bit --disable-8bit --disable-messages --disable-feeder --disable-ntom --disable-downsample --disable-icy && make
|
||||
|
||||
That, and further application of `strip --strip-unneeded`, yields a lean 93 KiB shared library for MPEG layer I/II/III decoding to floating point on my x86-64 system (it should be a bit smaller on 32 bit systems). When disabling layers I and II, too, that goes down to 81 KiB.
|
||||
|
||||
The shared library of a full build weighs 170 KiB after stripping.
|
||||
|
||||
|
||||
2. Developer build
|
||||
|
||||
This project uses GNU autotools (no specific version, but they should be fairly recent), also libtool. You need to have those installed, as it is usually the case for build environments based on the GNU toolchain.
|
||||
|
||||
One a fresh SCM checkout, or after changing things in configure.ac, you need to run
|
||||
|
||||
autoreconf -iv
|
||||
|
||||
to prepare the configure script. Then you can build as per point 1.
|
||||
|
||||
|
||||
3. Library-only build
|
||||
|
||||
If you do not want to build the whole thing, but only the library, run
|
||||
|
||||
./configure
|
||||
cd src/libmpg123
|
||||
make
|
||||
|
||||
You can then find the library itself under src/libmpg123/.libs (libtool likes to hide things there).
|
||||
|
||||
|
||||
4. Exotic platforms
|
||||
|
||||
See the ports/ directory for some help for building at least libmpg123 without the UNIX shell / autotools. The main strategy is to write a config.h to replace what configure would generate and then have a correct listing of all source files involved in that configuration (there are optional files for different decoder choices, for example).
|
||||
|
||||
Then compile objects, link.
|
||||
|
||||
|
||||
4a. Preparing Win32 binary packages.
|
||||
|
||||
Caution: You should make sure to use some gcc >= 4.2.0, even if it's still the experimental package for MinGW32.
|
||||
This helps preventing incompatibilities between generated DLL files and other compilers (it's about stack alignment).
|
||||
|
||||
Get MinGW/MSYS installed, run the MSYS shell.
|
||||
Enter the mpg123 source directory.
|
||||
Execute sh ./windows-builds.sh .
|
||||
|
||||
After some time, you should have some relevant files under releases/ (or releases\, for Windows people;-).
|
||||
You don't just get one build -- there are several variants, corresponding to what usually is to be found under http://mpg123.org/download/win32 .
|
||||
|
||||
|
||||
5. Note on large file support
|
||||
|
||||
The libmpg123 API includes the generic off_t type for file offsets and thus is subject to shape-shifting on systems that change off_t depending on build flags.
|
||||
To deal with the incompatibilities that can cause, the library needs to separate code paths for small and large off_t.
|
||||
Since version 1.12.0, a large-file-enabled libmpg123 (the default set by configure) provides a dual-mode ABI. Depending on _FILE_OFFSET_BITS, the mpg123.h header file selects different library symbols to use for your app.
|
||||
In both large-file and normal mode, the library should just work for your app.
|
||||
|
||||
6. Security
|
||||
|
||||
If you consider installing the mpg123 binary or any program using libout123 as suid root, please don't. Apart from evaluating MPG123_MODDIR from the environment and thus possibly loading any code, the purpose of libout123 is to write audio data to somewhere. That includes writing raw data to files. Any files you specify to the program. You do not install dd or gzip suid root, do you?
|
||||
|
||||
Programs using libmpg123 should be fine, as that one does not load runtime modules and also only has code to read files, not write them. Still, if your task involves decoding random MPEG audio files from anywhere, it is only sensible to limit the damage of a possible bug triggered by certain crafted files. This is not specific to libmpg123 but generally a good idea working with data from untrusted sources.
|
134
libsdl2_mixer/external/mpg123-1.25.6/Makefile.am
vendored
Normal file
134
libsdl2_mixer/external/mpg123-1.25.6/Makefile.am
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
## Makefile.am: produce Makefile.in from this
|
||||
|
||||
## copyright by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
## see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
## initially written by Nicholas J. Humfrey
|
||||
## reworked for non-recursive make by Thomas Orgis
|
||||
|
||||
# Mention all global variables first before including Make modules.
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
bin_PROGRAMS =
|
||||
EXTRA_PROGRAMS =
|
||||
EXTRA_DIST =
|
||||
pkglib_LTLIBRARIES =
|
||||
lib_LTLIBRARIES =
|
||||
noinst_LIBRARIES =
|
||||
noinst_LTLIBRARIES =
|
||||
nodist_include_HEADERS =
|
||||
include_HEADERS =
|
||||
dist_man_MANS =
|
||||
CLEANFILES =
|
||||
|
||||
AM_CPPFLAGS = -DPKGLIBDIR="\"$(pkglibdir)\""
|
||||
# That can be trimmed down later when adapting the sources to
|
||||
# use relative paths for includes.
|
||||
# Watch out for generated headers (that's why top_builddir is also present).
|
||||
AM_CPPFLAGS += \
|
||||
$(LTDLINCL) \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/src/compat \
|
||||
-I$(top_srcdir)/src/libmpg123 \
|
||||
-I$(top_srcdir)/src/libout123 \
|
||||
-I$(top_builddir)/src/libmpg123 \
|
||||
-I$(top_builddir)/src/libout123
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA =
|
||||
|
||||
# Include Make modules from subdirectories.
|
||||
include src/Makemodule.am
|
||||
include doc/Makemodule.am
|
||||
|
||||
# Stuff from this directory.
|
||||
pkgconfig_DATA += libmpg123.pc libout123.pc
|
||||
|
||||
dist_man_MANS += man1/mpg123.1 man1/out123.1
|
||||
|
||||
# mpg123.spec is autogenerated but needs to be present in tarball!
|
||||
EXTRA_DIST += \
|
||||
mpg123.spec \
|
||||
makedll.sh \
|
||||
windows-builds.sh \
|
||||
equalize.dat \
|
||||
NEWS.libmpg123 \
|
||||
NEWS.libout123 \
|
||||
ports/MSVC++/mpg123.h \
|
||||
ports/MSVC++/config.h \
|
||||
ports/MSVC++/msvc.c \
|
||||
ports/MSVC++/examples/scan.c \
|
||||
ports/MSVC++/examples/feedseek.c \
|
||||
ports/MSVC++/2008clr/2008clr.sln \
|
||||
ports/MSVC++/2008clr/mpg123clr/advanced.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/advanced.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/AssemblyInfo.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/dllmain.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/enum.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/error.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/error.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/id3v1.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/id3v1.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/id3v2.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/id3v2.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/mpg123clr.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/mpg123clr.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/mpg123clr.rc \
|
||||
ports/MSVC++/2008clr/mpg123clr/mpg123clr.vcproj \
|
||||
ports/MSVC++/2008clr/mpg123clr/ReadMe.txt \
|
||||
ports/MSVC++/2008clr/mpg123clr/resource.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/stdafx.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/stdafx.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/string.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/string.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/targetver.h \
|
||||
ports/MSVC++/2008clr/mpg123clr/text.cpp \
|
||||
ports/MSVC++/2008clr/mpg123clr/text.h \
|
||||
ports/MSVC++/2008clr/examples/feedseekclr/feedseekclr.csproj \
|
||||
ports/MSVC++/2008clr/examples/feedseekclr/Program.cs \
|
||||
ports/MSVC++/2008clr/examples/feedseekclr/Properties/AssemblyInfo.cs \
|
||||
ports/MSVC++/2008clr/examples/ReplaceReaderclr/ReplaceReaderclr.csproj \
|
||||
ports/MSVC++/2008clr/examples/ReplaceReaderclr/Program.cs \
|
||||
ports/MSVC++/2008clr/examples/ReplaceReaderclr/Properties/AssemblyInfo.cs \
|
||||
ports/MSVC++/2008clr/examples/scanclr/scanclr.csproj \
|
||||
ports/MSVC++/2008clr/examples/scanclr/Program.cs \
|
||||
ports/MSVC++/2008clr/examples/scanclr/Properties/AssemblyInfo.cs \
|
||||
ports/MSVC++/2015/win32/feedseek \
|
||||
ports/MSVC++/2015/win32/feedseek/feedseek.vcxproj.filters \
|
||||
ports/MSVC++/2015/win32/feedseek/feedseek.vcxproj \
|
||||
ports/MSVC++/2015/win32/libmpg123 \
|
||||
ports/MSVC++/2015/win32/libmpg123/libmpg123.vcxproj \
|
||||
ports/MSVC++/2015/win32/libmpg123/libmpg123.vcxproj.filters \
|
||||
ports/MSVC++/2015/win32/mpg123.sln \
|
||||
ports/MSVC++/2015/win32/dump_seekindex \
|
||||
ports/MSVC++/2015/win32/dump_seekindex/dump_seekindex.vcxproj \
|
||||
ports/MSVC++/2015/win32/dump_seekindex/dump_seekindex.vcxproj.filters \
|
||||
ports/MSVC++/2015/win32/scan \
|
||||
ports/MSVC++/2015/win32/scan/scan.vcxproj.filters \
|
||||
ports/MSVC++/2015/win32/scan/scan.vcxproj \
|
||||
ports/MSVC++/2015/uwp/libmpg123 \
|
||||
ports/MSVC++/2015/uwp/libmpg123/libmpg123.vcxproj \
|
||||
ports/MSVC++/2015/uwp/libmpg123/libmpg123.vcxproj.filters \
|
||||
ports/MSVC++/2015/uwp/libmpg123.sln \
|
||||
ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj \
|
||||
ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE \
|
||||
ports/MSVC++/CMP3Stream/README \
|
||||
ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP \
|
||||
ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP \
|
||||
ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP \
|
||||
ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP \
|
||||
ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H \
|
||||
ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H \
|
||||
ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H \
|
||||
ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H \
|
||||
ports/README \
|
||||
ports/Sony_PSP/config.h \
|
||||
ports/Sony_PSP/README \
|
||||
ports/Sony_PSP/Makefile.psp \
|
||||
ports/Sony_PSP/readers.c.patch \
|
||||
ports/mpg123_.pas \
|
||||
ports/Xcode/config.h \
|
||||
ports/Xcode/mpg123.h \
|
||||
ports/Xcode/mpg123.xcodeproj/project.pbxproj \
|
||||
scripts/benchmark-cpu.pl \
|
||||
scripts/tag_lyrics.py \
|
||||
scripts/conplay \
|
||||
scripts/mpg123info
|
4084
libsdl2_mixer/external/mpg123-1.25.6/Makefile.in
vendored
Normal file
4084
libsdl2_mixer/external/mpg123-1.25.6/Makefile.in
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1942
libsdl2_mixer/external/mpg123-1.25.6/NEWS
vendored
Normal file
1942
libsdl2_mixer/external/mpg123-1.25.6/NEWS
vendored
Normal file
File diff suppressed because it is too large
Load Diff
198
libsdl2_mixer/external/mpg123-1.25.6/NEWS.libmpg123
vendored
Normal file
198
libsdl2_mixer/external/mpg123-1.25.6/NEWS.libmpg123
vendored
Normal file
@ -0,0 +1,198 @@
|
||||
Changes in libmpg123 libtool interface versions...
|
||||
|
||||
44.0.44
|
||||
- added mpg123_getformat2()
|
||||
|
||||
43.0.43
|
||||
- added MPG123_NO_PEEK_END and MPG123_FORCE_SEEKABLE
|
||||
|
||||
42.0.42
|
||||
- added mpg123_framelength()
|
||||
Now mpg123_position() is truly obsolete!
|
||||
- hardened string API to not crash if given NULL pointers
|
||||
(except mpg123_init_string())
|
||||
- equalizer feature optional
|
||||
|
||||
41.0.41
|
||||
- Add checks for NULL handles in some API functions that missed that, changed return value in others to MPG123_BAD_HANDLE where appropriate:
|
||||
- mpg123_format_none(NULL) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_format_all(NULL) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_format(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_reset_eq(NULL) == MPG123_BAD_HANDLE (was: undefined)
|
||||
- mpg123_replace_buffer(NULL, ...) == MPG123_BAD_HANDLE (was: undefined)
|
||||
- mpg123_framedata(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_decoder(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_param(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_getparam(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_getstate(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_eq(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_open(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_open_handle(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_open_feed(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_replace_reader(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_replace_reader_handle(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_decode_frame(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_feed(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_decode(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_info(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_getformat(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_set_filesize(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_scan(NULL) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_id3(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_icy(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_index(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_set_index(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- mpg123_close(NULL, ...) == MPG123_BAD_HANDLE (was: MPG123_ERR)
|
||||
- Changed return value of mpg123_geteq() to 0 for NULL handle to be consistent with itself.
|
||||
|
||||
|
||||
40.0.40
|
||||
- Bump for marking the first actual implementation of A-Law encoding.
|
||||
Not that it matters to anyone, though --- I wonder why not even the
|
||||
Asterisk users wanted this. It's for telephony, dammit!
|
||||
- Added arm_fpu decoder for runtime switch between NEON and generic fpu.
|
||||
|
||||
39.2.39
|
||||
- Added more elaborate post-processing to enable 32 and 24 bit output also with low-precision decoder (16 bit, fixed-point).
|
||||
|
||||
39.0.39
|
||||
- Added MPG123_FRESH_DECODER.
|
||||
- Also containing several regression fixes.
|
||||
|
||||
38.0.38
|
||||
- Added MPG123_PICTURE and associated addition to mpg123_id3v2 struct.
|
||||
|
||||
37.0.37
|
||||
- Added mpg123_chomp_string.
|
||||
|
||||
36.0.36
|
||||
- Extended MPG123_RESYNC_LIMIT to initial header search.
|
||||
- Not cutting decoder delay unconditionally anymore (only in combination with known encoder delay / padding).
|
||||
|
||||
35.0.35
|
||||
- Added mpg123_meta_free().
|
||||
|
||||
34.0.34
|
||||
- Added flag MPG123_AUTO_RESAMPLE.
|
||||
- Changed (improved;-) outbuffer behaviour.
|
||||
|
||||
33.0.33
|
||||
- Added MPG123_BUFFERFILL.
|
||||
|
||||
32.0.32
|
||||
- Added mpg123_framepos()
|
||||
|
||||
31.0.31
|
||||
- Added mpg123_framedata() and MPG123_IGNORE_INFOFRAME.
|
||||
|
||||
30.0.30
|
||||
- Added MPG123_FEEDPOOL and MPG123_FEEDBUFFER.
|
||||
|
||||
29.0.29
|
||||
- New decoder: ARM neon.
|
||||
- Added support for 24 bit output (dumb byte-chopping of 32 bit output).
|
||||
|
||||
28.0.28
|
||||
- Add mpg123_strlen().
|
||||
|
||||
27.0.27
|
||||
- Implictly disable seeking on streams when client enforced ICY parsing.
|
||||
This helps debugging dumps of http streams.
|
||||
|
||||
26.0.26
|
||||
- Added mpg123_encsize().
|
||||
- Added flag MPG123_SKIP_ID3V2.
|
||||
|
||||
25.0.25
|
||||
- Version increase to mark the point where the split between normal and large-file-enabled library vanishes again. The world did not like it.
|
||||
Now Thomas lost some days of recreation and sleep to give it a dual-mode libmpg123 on large-file-sensitive systems.
|
||||
|
||||
24.0.24
|
||||
- Introduce mpg123_replace_reader_handle() and mpg123_open_handle()
|
||||
... this is also in preparation for the next version which will drop the separated large-file library again, due to public display of dismay.
|
||||
- Add the experimental mpg123_framebyframe_decode to the off_t-sensitive functions.
|
||||
|
||||
23.0.23
|
||||
- Version increase to mark the point where the explicit split between normal and large-file-enabled library has been introduced.
|
||||
|
||||
22.0.22
|
||||
- Experimental framebyframe API added.
|
||||
|
||||
21.0.21
|
||||
- Added support of unicode file names under windows via UTF-8 argument to mpg123_open.
|
||||
- Added mpg123_feature(), for example to test for the above behaviour.
|
||||
|
||||
20.0.20
|
||||
- New flag: MPG123_PLAIN_ID3TEXT
|
||||
- Corresponding text encoding handling API added:
|
||||
mpg123_enc_from_id3, mpg123_store_utf8
|
||||
|
||||
19.0.19
|
||||
- Hm, what was it exactly now... there are candidates:
|
||||
- runtime dithering
|
||||
- free format
|
||||
- ARM optimizations
|
||||
|
||||
18.0.18
|
||||
- new parameter: MPG123_PREFRAMES is now tunable (the number of frames to decode and skip before a seek point), also default value increased
|
||||
|
||||
17.0.17
|
||||
- introduction optimized stereo synths
|
||||
|
||||
16.0.16
|
||||
- introducing floating point x86-64 SSE synth
|
||||
|
||||
15.0.15
|
||||
- first addition of x86-64 SSE optimizations
|
||||
|
||||
14.0.14
|
||||
- the first libmpg123 with actually working MPG123_UPSPEED
|
||||
- also important regression fix concerning skipping of frames
|
||||
|
||||
13.0.13
|
||||
- The whole set of output formats is generally available (8, 16 and 32 bit integer, signed/unsigned, float)
|
||||
- Many features can be absent from libary as build decision (minimize binary size).
|
||||
|
||||
12.0.12
|
||||
- added mpg123_current_decoder
|
||||
- fixed value of MPG123_ENC_FLOAT
|
||||
- float output now is a real runtime option
|
||||
|
||||
11.0.11
|
||||
- added mpg123_getstate
|
||||
- run-time tunable frame index
|
||||
- officially configured with largefile support where available
|
||||
|
||||
10.0.10
|
||||
- new flag MPG123_FUZZY (along with the fuzzy seek functionality)
|
||||
|
||||
9.0.9
|
||||
- added mpg123_tell_stream
|
||||
|
||||
8.0.8
|
||||
- added mpg123_get_eq
|
||||
|
||||
7.0.7
|
||||
- added mpg123_set_filesize
|
||||
|
||||
6.0.6
|
||||
- added mpg123_icy2utf8
|
||||
|
||||
5.0.5
|
||||
- added mpg123_feed
|
||||
- input buffers now const
|
||||
|
||||
4.0.4
|
||||
- extended mpg123_string api (mpg123_add_substring, mpg123_grow_string)
|
||||
|
||||
3.0.3
|
||||
- Initial floating point support as compile-time option.
|
||||
|
||||
2.0.2
|
||||
- New flag MPG123_SEEKBUFFER.
|
||||
|
||||
1.0.1
|
||||
- Added MPG123_RESYNC_LIMIT parameter.
|
||||
- Added MPG123_OUT_OF_SYNC and MPG123_RESYNC_FAIL error codes.
|
||||
- Fix for uninitialized framesize value in handle.
|
||||
|
5
libsdl2_mixer/external/mpg123-1.25.6/NEWS.libout123
vendored
Normal file
5
libsdl2_mixer/external/mpg123-1.25.6/NEWS.libout123
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
1.0.1
|
||||
- initial version
|
||||
|
||||
2.0.2
|
||||
- added OUT123_BINDIR
|
203
libsdl2_mixer/external/mpg123-1.25.6/README
vendored
Normal file
203
libsdl2_mixer/external/mpg123-1.25.6/README
vendored
Normal file
@ -0,0 +1,203 @@
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* mpg123 - MPEG 1.0/2.0/2.5 audio player *
|
||||
* README for version 1.x.y, dated at 14.06.2009 *
|
||||
* *
|
||||
* ...still the fastest MPEG audio player for UNIX ;) *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
(This file has very long lines - die-hard terminal nostalgists can be satisfied by `fmt -s -w 75 < README | less`. I think it's better to let the reader's preference rule than to preformat the stuff to some arbitrary width.)
|
||||
|
||||
|
||||
0. Stuff
|
||||
|
||||
For building/installation info see INSTALL.
|
||||
|
||||
The mpg123 project was started by Michel Hipp and is now being maintained by Thomas Orgis and Nicholas J. Humfrey, who initiated the Sourceforge project.
|
||||
The source code contains contributions from quite a few people - see AUTHORS for more info.
|
||||
It is Open Source software licensed mostly under the LGPL with some parts restricted to GPL. See COPYING for details.
|
||||
As for every mp3 player, some of mpg123's functionality may be covered by patents in a country where these are valid. See PATENTS for details.
|
||||
|
||||
Project's official website URL is
|
||||
|
||||
http://mpg123.org
|
||||
(or http://mpg123.orgis.org as fallback address if there is a problem with the DNS forwarding)
|
||||
|
||||
for the traditional home page and
|
||||
|
||||
http://sourceforge.net/projects/mpg123
|
||||
|
||||
for sourceforge.net based services like download mirrors, mailing lists and bug/feature trackers.
|
||||
Please use the sourceforge download mirrors when possible to minimize load on the mpg123.org server.
|
||||
|
||||
|
||||
1. Introduction
|
||||
|
||||
This is a console based decoder/player for mono/stereo mpeg audio files, probably more familiar as MP3 or MP2 files.
|
||||
It's focus is speed. We still need some low-end benchmarks for the current version, but playback should be possible even on i486 CPUs. There is hand-optimized assembly code for i586, MMX, 3DNow, SEE and 3DNowExt instructions, while generic code runs on a variety of different platforms and CPUs.
|
||||
It can play MPEG1.0/2.0/2.5 layer I, II, II (1, 2, 3;-) files (VBR files are fine, too) and produce output on a number of different ways: raw data to stdout and different sound systems depending on your platform (see INSTALL).
|
||||
Most tested are Linux on x86 and Alpha/AXP and MacOSX on ppc as the environments the current developers work in.
|
||||
We are always thankful for user reports on success (and failure) on any platform!
|
||||
|
||||
|
||||
2. Contact
|
||||
|
||||
short:
|
||||
|
||||
mpg123-devel@lists.sourceforge.net
|
||||
mpg123-users@lists.sourceforge.net
|
||||
or
|
||||
maintainer@mpg123.org
|
||||
|
||||
long: see doc/CONTACT
|
||||
|
||||
|
||||
3. Interface/Usage
|
||||
|
||||
Please consult the manpage mpg123(1). Some starter info follows.
|
||||
|
||||
3.1 Simple Console Usage
|
||||
|
||||
Mpg123 is a console program - normally it just plays a list of files you specify on command line and that's it. See the included manpage or
|
||||
|
||||
mpg123 --help
|
||||
|
||||
or, for the full story,
|
||||
|
||||
mpg123 --longhelp
|
||||
|
||||
on command line syntax/options. I encourage you to check out the --gapless and --rva-album/--rva-mix options:-)
|
||||
|
||||
In the simple "mpg123 file1.mp3 file2.mp3" mode, the only thing you can do to interact is to press Ctrl+C to skip to next track or end the whole playback if pressing it twice.
|
||||
|
||||
Note that this Ctrl+C behaviour is special to this mode; when any of the following is activated, Ctrl+C will just kill the program like you would expect normally (this changed from earlier versions).
|
||||
|
||||
3.2 Advanced Console Usage
|
||||
|
||||
You can specify the option -C to enable a terminal control interface enabling to influence playback on current title/playlist by pressing some key:
|
||||
|
||||
-= terminal control keys =-
|
||||
[s] or [ ] interrupt/restart playback (i.e. 'pause')
|
||||
[f] next track
|
||||
[d] previous track
|
||||
[b] back to beginning of track
|
||||
[p] pause while looping current sound chunk
|
||||
[.] forward
|
||||
[,] rewind
|
||||
[:] fast forward
|
||||
[;] fast rewind
|
||||
[>] fine forward
|
||||
[<] fine rewind
|
||||
[+] volume up
|
||||
[-] volume down
|
||||
[r] RVA switch
|
||||
[v] verbose switch
|
||||
[l] list current playlist, indicating current track there
|
||||
[t] display tag info (again)
|
||||
[m] print MPEG header info (again)
|
||||
[h] this help
|
||||
[q] quit
|
||||
|
||||
You can change these bindings to key to your liking by modifying term.h .
|
||||
|
||||
Note: This interface needs not to be available on _every_ platform/build.
|
||||
|
||||
Another note: The volume up and down is performed by changing the scale factor (like the -f parameter) ... so the audio is scaled digitally in the given range of the output format (usually 16bits). That means the lowering the volume will decrease the dynamic range and possibly lessen the quality while increasing volume can in fact increase the dynamic range and thus make it better, if you deal with a silent source and no clipping is necessary.
|
||||
It is a good idea to use RVA values stored in the file for adjusting low volume files, though - mpg123 handles that in addition to your volume setting.
|
||||
|
||||
3.3 Control Interface for Frontends
|
||||
|
||||
There used to be several interfaces for frontends left over from that past, but only one of them remains for the present and future:
|
||||
|
||||
The Generic Control Interface
|
||||
|
||||
It contains of communication of textual messages via standard input to mpg123 and responses to standard output unless the -s switch for output of audio data on stdout is used - then the responses come via stderr.
|
||||
|
||||
See doc/README.remote for usage.
|
||||
|
||||
|
||||
4. Speed
|
||||
|
||||
mpg123 is fast. Any faster software player is probably based on some hacked mpg123;-)
|
||||
MPlayer included mpg123 source code in it's mp3lib and we have to be thankful for the MPlayer folks adding SSE, 3DNowExt and AltiVec optimizations over the years, which we were able to backport.
|
||||
|
||||
mpg123 includes the AltiVec optimization since version 0.61 and the SSE and 3DNowExt optimizations since 0.66 .
|
||||
Also, version 0.66 adds the merged x86 optimization build, which includes every applicable optimization for x86 cpus except the one for i486, wich is a bit special.
|
||||
|
||||
Now mpg123 catched up with MPlayer's mp3lib concerning decoding speed on my Pentium M (which supports SSE):
|
||||
Decoding a certain album (Queensryche's Rage for Order) to /dev/null took 22.4s user time with mpg123-0.66 compared to 24.7s with MPlayer-1.0rc1 .
|
||||
|
||||
Also, beginning with mpg123 1.8.0, there are fresh x86-64 SSE optimizations (provided by Taihei Monma) which make mpg123 the fastest MPEG audio decoder in my knowledge also on current 64bit x86 systems.
|
||||
|
||||
5. Accuracy
|
||||
|
||||
The mpg123 engine is able to decode in full compliance to ISO/IEC 11172-3, for all three layers, using floating point or integer math (the latter since 1.8.1).
|
||||
Accuracy of 16bit output depends on specific optimization in use and compile-time choice about the rounding mode (which is performance relevant).
|
||||
|
||||
The ISO test suite is incorporated in the mpg123 subversion repository under svn://orgis.org/mpg123/test, nightly tests of a build (with high-quality 16bit rounding) are published on the mpg123 website.
|
||||
|
||||
Dithered 16bit output is available as an option (the --cpu choices ending with _dither). See
|
||||
|
||||
http://dither123.dyndns.org
|
||||
|
||||
on the whereabouts.
|
||||
|
||||
6. History
|
||||
|
||||
A looooong time ago (mid-90s), Michael Hipp wrote some initial mpg123 and made it _the_ Unix console mp3 player in the following years.
|
||||
The exact date of birth is fuzzy in human memory, but according to the master himself (Michael) mpg123 started in 1994 as an MP2 player which a year later, 1995, gained MP3 ability.
|
||||
The core decoder files have mostly 1995 as their birth year listed, so one can say that mpg123 as the layer1,2,3 player was born in 1995.
|
||||
In any case, that is a looooong time ago for a media player - especially for one that is still alive!
|
||||
|
||||
This is the historic description:
|
||||
|
||||
This isn't a new player. It's a fully rewritten version originally based
|
||||
on the mpegaudio (FHG-version) package. The DCT algorithm in the
|
||||
synthesis filter is a rewritten version of the DCT first seen in the maplay
|
||||
package, which was written by Tobias Bading (bading@cs.tu-berlin.de). The
|
||||
rewrite was necessary, because the GPL may not allow this copyright mix.
|
||||
The mpegaudio package was written by various people from the MPEG/audio
|
||||
software simulation group. The maplay is under GPL .. You can find the
|
||||
original source code and the mpegaudio package on: ftp.tnt.uni-hannover.de.
|
||||
|
||||
Especially layer3.c common.c and mpg123.h is based on the dist10 package.
|
||||
The code is fully rewritten but I'm using sometimes the
|
||||
same variable names or similar function names as in the
|
||||
original package.
|
||||
|
||||
In the current layer3.c I'm using a DCT36 first seen in Jeff Tsay's
|
||||
(ctsay@pasteur.eecs.berkeley.edu) maplay 1.2+ package. His code is
|
||||
under GPL .. I also tried the enhancement from Mikko Tommila. His
|
||||
code is also in layer3.c (but it's disabled at the moment, because
|
||||
it was slightly slower than the unrolled 9 point DCT (at least on
|
||||
_my_ system)). Theoretically it should be faster. You may try it on
|
||||
your system.
|
||||
|
||||
Well, that's how it started...
|
||||
Official development ceased due to the typical lack-of-time syndrome around 2002 and the free-floating patches began to seize the day.
|
||||
|
||||
But before that, Michael wrote or rewrote the essential code; others contributed their bits.
|
||||
The main message is:
|
||||
|
||||
Code is copyrighted by Michael Hipp, who made it free software under the terms of the LGPL 2.1.
|
||||
|
||||
Please see doc/ROAD_TO_LGPL, COPYING and AUTHORS for details on that. Note that the only notable legacy non-LGPL file was the old alsa output that didn't work with alsa 0.9/1.0 anymore.
|
||||
Also, there has been a libao output in the betas 0.60 for a short period. Libao being generally problematic for us because of its GPL license, this output is not distributed anymore in the release packages. There is now a new, LGPLed alsa output that made both the old alsa and libao obsolete for our purposes.
|
||||
So, the distributed mpg123 releases actually only contain LGPL code, but you get the other files from our subversion repository if you checkout the trunk / version tags.
|
||||
|
||||
There has been quite some confusion about the licensing and "freeness" of mpg123 in the past.
|
||||
The initial "free for private use, ask me when you want to do something commercial" license caused some people to avoid mpg123 and even to write a replacement mimicking the interface but using a different decoding engine - what was not actively developed for too long but entered the "free" software sections.
|
||||
|
||||
The Debian (non-free section) and Gentoo distributions cared about the last stable and the last development release of mpg123 over the years with mainly applying security fixes. Thanks go to the distribution maintainers for not letting it alone to bitrot over the years.
|
||||
|
||||
Thomas Orgis started to hack on mpg123 in 2004 while working on his personal audio experience with mixplayd and later DerMixD, utilizing the generic control interface. In Feb 2005, he crammed control interface improvements together with Debian's r19 fixes and released the personal fork/patch named mpg123-thor.
|
||||
Little later that year, Nicholas J. Humphrey independently created the sourceforge project and released an autotooled 0.59r under official GPL flag with Debian and MacOSX fixes.
|
||||
In the beginning of 2006, Thomas finally decided that he could work "officially" on mpg123 and contacted Michael Hipp for taking over maintainership.
|
||||
Michael was all-positive about letting mpg123 really live again (and perhaps see version 1.0 some time;-) and also pointed at the sourceforge project that didn't see much activity since the initial release.
|
||||
A lot of emails and some weeks later there was the two-developer team of Nicholas and Thomas working on merging their mpg123 variants as well as adding some features and fixes to let it shine again.
|
||||
|
||||
And there we are now...
|
||||
|
||||
7. End
|
||||
|
||||
Have fun!
|
||||
____________
|
||||
Thomas Orgis
|
40
libsdl2_mixer/external/mpg123-1.25.6/TODO
vendored
Normal file
40
libsdl2_mixer/external/mpg123-1.25.6/TODO
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
BEFORE 1.23 RELEASE:
|
||||
|
||||
- add client name as libout123 parameter, to be used by jack backend
|
||||
PID still needed? JACK handles possibly non-unique names.
|
||||
|
||||
Things that need to be done...
|
||||
|
||||
... as always, mostly outdated.
|
||||
|
||||
0. Fix that ugly crash that happens sometimes when Ctrl+C-ing with jack output active:
|
||||
|
||||
Program terminated with signal 11, Segmentation fault.
|
||||
[New process 6293]
|
||||
[New process 6291]
|
||||
[New process 6292]
|
||||
[New process 6284]
|
||||
#0 0x00002aced607695b in memcpy () from /lib/libc.so.6
|
||||
(gdb) bt
|
||||
#0 0x00002aced607695b in memcpy () from /lib/libc.so.6
|
||||
#1 0x00002aced5b4f092 in jack_ringbuffer_read () from /usr/lib/libjack.so.0
|
||||
#2 0x00000000004151dd in process_callback ()
|
||||
#3 0x00002aced5b4bf40 in Jack::JackClient::Execute () from /usr/lib/libjack.so.0
|
||||
#4 0x00002aced5b5f8da in Jack::JackPosixThread::ThreadHandler () from /usr/lib/libjack.so.0
|
||||
#5 0x00002aced6354fa7 in start_thread () from /lib/libpthread.so.0
|
||||
#6 0x00002aced60c802d in clone () from /lib/libc.so.6
|
||||
|
||||
|
||||
1. mpg123 could pick up new sample rates suggested by the output modules (like a jack server fixed to 96kHz) and adapt to that.
|
||||
|
||||
Though the practical rates for MPEG audio are up to 48kHz ... but one could easily upsample.
|
||||
Currently, we detect standard rates and resample when needed... but not new ones.
|
||||
|
||||
4. Prevent ID3v2 tags from being parsed multiple times after seek.
|
||||
|
||||
I need to carry a list of ID3v2 frame addresses that already have been parsed into the data structures.
|
||||
Currently, this is a possible memory leak when the seek index is disabled (tag data at file beginning) or id3 data is just somewhere in the stream.
|
||||
That being said, in the "normal" case, there is no leak.
|
||||
|
||||
5. What's about SINGLE_MIX?
|
||||
Check what is _really_ happening there, make some test file...
|
2303
libsdl2_mixer/external/mpg123-1.25.6/aclocal.m4
vendored
Normal file
2303
libsdl2_mixer/external/mpg123-1.25.6/aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
478
libsdl2_mixer/external/mpg123-1.25.6/android/config.h
vendored
Normal file
478
libsdl2_mixer/external/mpg123-1.25.6/android/config.h
vendored
Normal file
@ -0,0 +1,478 @@
|
||||
/* src/config.h. Generated from config.h.in by configure. */
|
||||
/* src/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if your architecture wants/needs/can use attribute_align_arg and
|
||||
alignment checks. It is for 32bit x86... */
|
||||
/* #undef ABI_ALIGN_FUN */
|
||||
|
||||
/* Define to use proper rounding. */
|
||||
/* #undef ACCURATE_ROUNDING */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
||||
|
||||
/* Define if .balign is present. */
|
||||
#define ASMALIGN_BALIGN 1
|
||||
|
||||
/* Define if .align just takes byte count. */
|
||||
/* #undef ASMALIGN_BYTE */
|
||||
|
||||
/* Define if .align takes 3 for alignment of 2^3=8 bytes instead of 8. */
|
||||
/* #undef ASMALIGN_EXP */
|
||||
|
||||
/* Define if __attribute__((aligned(16))) shall be used */
|
||||
#define CCALIGN 1
|
||||
|
||||
/* Define if debugging is enabled. */
|
||||
/* #undef DEBUG */
|
||||
|
||||
/* The default audio output module(s) to use */
|
||||
#define DEFAULT_OUTPUT_MODULE "oss,esd,pulse"
|
||||
|
||||
/* Define if building with dynamcally linked libmpg123 */
|
||||
#define DYNAMIC_BUILD 1
|
||||
|
||||
/* Use EFBIG as substitude for EOVERFLOW, mingw.org may lack the latter */
|
||||
/* #undef EOVERFLOW */
|
||||
|
||||
/* Define if FIFO support is enabled. */
|
||||
/* #undef FIFO */
|
||||
|
||||
/* Define if frame index should be used. */
|
||||
#define FRAME_INDEX 1
|
||||
|
||||
/* Define if gapless is enabled. */
|
||||
#define GAPLESS 1
|
||||
|
||||
/* Define to 1 if you have the <alc.h> header file. */
|
||||
/* #undef HAVE_ALC_H */
|
||||
|
||||
/* Define to 1 if you have the <Alib.h> header file. */
|
||||
/* #undef HAVE_ALIB_H */
|
||||
|
||||
/* Define to 1 if you have the <AL/alc.h> header file. */
|
||||
/* #undef HAVE_AL_ALC_H */
|
||||
|
||||
/* Define to 1 if you have the <AL/al.h> header file. */
|
||||
/* #undef HAVE_AL_AL_H */
|
||||
|
||||
/* Define to 1 if you have the <al.h> header file. */
|
||||
/* #undef HAVE_AL_H */
|
||||
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||
#define HAVE_ARPA_INET_H 1
|
||||
|
||||
/* Define to 1 if you have the <asm/audioio.h> header file. */
|
||||
/* #undef HAVE_ASM_AUDIOIO_H */
|
||||
|
||||
/* Define to 1 if you have the `atoll' function. */
|
||||
#define HAVE_ATOLL 1
|
||||
|
||||
/* Define to 1 if you have the <audios.h> header file. */
|
||||
/* #undef HAVE_AUDIOS_H */
|
||||
|
||||
/* Define to 1 if you have the <AudioToolbox/AudioToolbox.h> header file. */
|
||||
/* #undef HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H */
|
||||
|
||||
/* Define to 1 if you have the <AudioUnit/AudioUnit.h> header file. */
|
||||
/* #undef HAVE_AUDIOUNIT_AUDIOUNIT_H */
|
||||
|
||||
/* Define to 1 if you have the <CoreServices/CoreServices.h> header file. */
|
||||
/* #undef HAVE_CORESERVICES_CORESERVICES_H */
|
||||
|
||||
/* Define to 1 if you have the <CUlib.h> header file. */
|
||||
/* #undef HAVE_CULIB_H */
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file. */
|
||||
#define HAVE_DIRENT_H 1
|
||||
|
||||
/* Define to 1 if you have the `dlclose' function. */
|
||||
#define HAVE_DLCLOSE 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the `dlopen' function. */
|
||||
#define HAVE_DLOPEN 1
|
||||
|
||||
/* Define to 1 if you have the `dlsym' function. */
|
||||
#define HAVE_DLSYM 1
|
||||
|
||||
/* Define if getaddrinfo accepts the AI_ADDRCONFIG flag */
|
||||
/* #undef HAVE_GAI_ADDRCONFIG */
|
||||
|
||||
/* Define to 1 if you have the `getaddrinfo' function. */
|
||||
#define HAVE_GETADDRINFO 1
|
||||
|
||||
/* Define to 1 if you have the `getpagesize' function. */
|
||||
/* #undef HAVE_GETPAGESIZE */
|
||||
|
||||
/* Define to 1 if you have the `getuid' function. */
|
||||
#define HAVE_GETUID 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <langinfo.h> header file. */
|
||||
/* #undef HAVE_LANGINFO_H */
|
||||
|
||||
/* Define to 1 if you have the `m' library (-lm). */
|
||||
#define HAVE_LIBM 1
|
||||
|
||||
/* Define to 1 if you have the `mx' library (-lmx). */
|
||||
/* #undef HAVE_LIBMX */
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#define HAVE_LIMITS_H 1
|
||||
|
||||
/* Define to 1 if you have the <linux/soundcard.h> header file. */
|
||||
#define HAVE_LINUX_SOUNDCARD_H 1
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#define HAVE_LOCALE_H 1
|
||||
|
||||
/* Define to 1 if you have the <machine/soundcard.h> header file. */
|
||||
/* #undef HAVE_MACHINE_SOUNDCARD_H */
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mkfifo' function. */
|
||||
/* #undef HAVE_MKFIFO */
|
||||
|
||||
/* Define to 1 if you have a working `mmap' system call. */
|
||||
/* #undef HAVE_MMAP */
|
||||
|
||||
/* Define to 1 if you have the <netdb.h> header file. */
|
||||
#define HAVE_NETDB_H 1
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#define HAVE_NETINET_IN_H 1
|
||||
|
||||
/* Define to 1 if you have the <netinet/tcp.h> header file. */
|
||||
/* #undef HAVE_NETINET_TCP_H */
|
||||
|
||||
/* Define to 1 if you have the `nl_langinfo' function. */
|
||||
/* #undef HAVE_NL_LANGINFO */
|
||||
|
||||
/* Define to 1 if you have the <OpenAL/alc.h> header file. */
|
||||
/* #undef HAVE_OPENAL_ALC_H */
|
||||
|
||||
/* Define to 1 if you have the <OpenAL/al.h> header file. */
|
||||
/* #undef HAVE_OPENAL_AL_H */
|
||||
|
||||
/* Define to 1 if you have the <os2me.h> header file. */
|
||||
/* #undef HAVE_OS2ME_H */
|
||||
|
||||
/* Define to 1 if you have the <os2.h> header file. */
|
||||
/* #undef HAVE_OS2_H */
|
||||
|
||||
/* Define to 1 if you have the `random' function. */
|
||||
/* #undef HAVE_RANDOM */
|
||||
|
||||
/* Define to 1 if you have the <sched.h> header file. */
|
||||
#define HAVE_SCHED_H 1
|
||||
|
||||
/* Define to 1 if you have the `sched_setscheduler' function. */
|
||||
#define HAVE_SCHED_SETSCHEDULER 1
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#define HAVE_SETLOCALE 1
|
||||
|
||||
/* Define to 1 if you have the `setpriority' function. */
|
||||
#define HAVE_SETPRIORITY 1
|
||||
|
||||
/* Define to 1 if you have the `setuid' function. */
|
||||
#define HAVE_SETUID 1
|
||||
|
||||
/* Define to 1 if you have the <signal.h> header file. */
|
||||
#define HAVE_SIGNAL_H 1
|
||||
|
||||
/* Define to 1 if you have the <sndio.h> header file. */
|
||||
/* #undef HAVE_SNDIO_H */
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdio.h> header file. */
|
||||
#define HAVE_STDIO_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#define HAVE_STRERROR 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sun/audioio.h> header file. */
|
||||
/* #undef HAVE_SUN_AUDIOIO_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/audioio.h> header file. */
|
||||
/* #undef HAVE_SYS_AUDIOIO_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/audio.h> header file. */
|
||||
/* #undef HAVE_SYS_AUDIO_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
||||
#define HAVE_SYS_IOCTL_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||
#define HAVE_SYS_PARAM_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/resource.h> header file. */
|
||||
#define HAVE_SYS_RESOURCE_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
#define HAVE_SYS_SELECT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/signal.h> header file. */
|
||||
/* #undef HAVE_SYS_SIGNAL_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#define HAVE_SYS_SOCKET_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/soundcard.h> header file. */
|
||||
/* #undef HAVE_SYS_SOUNDCARD_H */
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||
#define HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
||||
#define HAVE_SYS_WAIT_H 1
|
||||
|
||||
/* Define this if you have the POSIX termios library */
|
||||
#define HAVE_TERMIOS 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the <windows.h> header file. */
|
||||
/* #undef HAVE_WINDOWS_H */
|
||||
|
||||
/* Define to 1 if you have the <ws2tcpip.h> header file. */
|
||||
/* #undef HAVE_WS2TCPIP_H */
|
||||
|
||||
/* Define to indicate that float storage follows IEEE754. */
|
||||
#define IEEE_FLOAT 1
|
||||
|
||||
/* size of the frame index seek table */
|
||||
#define INDEX_SIZE 1000
|
||||
|
||||
/* Define if IPV6 support is enabled. */
|
||||
#define IPV6 1
|
||||
|
||||
/* Define this to the size of native offset type in bits, used for LFS alias
|
||||
functions. */
|
||||
#define LFS_ALIAS_BITS 32
|
||||
|
||||
/* Define to the extension used for runtime loadable modules, say, ".so". */
|
||||
#define LT_MODULE_EXT ".so"
|
||||
|
||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||
#define LT_OBJDIR ".libs/"
|
||||
|
||||
/* Define to the shared library suffix, say, ".dylib". */
|
||||
/* #undef LT_SHARED_EXT */
|
||||
|
||||
/* Define to the shared archive member specification, say "(shr.o)". */
|
||||
/* #undef LT_SHARED_LIB_MEMBER */
|
||||
|
||||
/* Define if network support is enabled. */
|
||||
#define NETWORK 1
|
||||
|
||||
/* Define to disable 16 bit integer output. */
|
||||
/* #undef NO_16BIT */
|
||||
|
||||
/* Define to disable 32 bit and 24 bit integer output. */
|
||||
/* #undef NO_32BIT */
|
||||
|
||||
/* Define to disable 8 bit integer output. */
|
||||
/* #undef NO_8BIT */
|
||||
|
||||
/* Define to disable downsampled decoding. */
|
||||
/* #undef NO_DOWNSAMPLE */
|
||||
|
||||
/* Define to disable equalizer. */
|
||||
/* #undef NO_EQUALIZER */
|
||||
|
||||
/* Define to disable error messages in combination with a return value (the
|
||||
return is left intact). */
|
||||
/* #undef NO_ERETURN */
|
||||
|
||||
/* Define to disable error messages. */
|
||||
/* #undef NO_ERRORMSG */
|
||||
|
||||
/* Define to disable feeder and buffered readers. */
|
||||
/* #undef NO_FEEDER */
|
||||
|
||||
/* Define to disable ICY handling. */
|
||||
/* #undef NO_ICY */
|
||||
|
||||
/* Define to disable ID3v2 parsing. */
|
||||
/* #undef NO_ID3V2 */
|
||||
|
||||
/* Define to disable layer I. */
|
||||
/* #undef NO_LAYER1 */
|
||||
|
||||
/* Define to disable layer II. */
|
||||
/* #undef NO_LAYER2 */
|
||||
|
||||
/* Define to disable layer III. */
|
||||
/* #undef NO_LAYER3 */
|
||||
|
||||
/* Define to disable ntom resampling. */
|
||||
/* #undef NO_NTOM */
|
||||
|
||||
/* Define to disable real output. */
|
||||
/* #undef NO_REAL */
|
||||
|
||||
/* Define to disable string functions. */
|
||||
/* #undef NO_STRING */
|
||||
|
||||
/* Define for post-processed 32 bit formats. */
|
||||
/* #undef NO_SYNTH32 */
|
||||
|
||||
/* Define to disable warning messages. */
|
||||
/* #undef NO_WARNING */
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "mpg123"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "maintainer@mpg123.org"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "mpg123"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "mpg123 1.25.6"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "mpg123"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "1.25.6"
|
||||
|
||||
/* Define if portaudio v18 API is wanted. */
|
||||
/* #undef PORTAUDIO18 */
|
||||
|
||||
/* The size of `int32_t', as computed by sizeof. */
|
||||
#define SIZEOF_INT32_T 4
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG 4
|
||||
|
||||
/* The size of `off_t', as computed by sizeof. */
|
||||
#define SIZEOF_OFF_T 4
|
||||
|
||||
/* The size of `size_t', as computed by sizeof. */
|
||||
#define SIZEOF_SIZE_T 4
|
||||
|
||||
/* The size of `ssize_t', as computed by sizeof. */
|
||||
#define SIZEOF_SSIZE_T 4
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Define if modules are enabled */
|
||||
#define USE_MODULES 1
|
||||
|
||||
/* Define for new Huffman decoding scheme. */
|
||||
#define USE_NEW_HUFFTABLE 1
|
||||
|
||||
/* Define to use yasm for assemble AVX sources. */
|
||||
/* #undef USE_YASM_FOR_AVX */
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "1.25.6"
|
||||
|
||||
/* Define to use Win32 named pipes */
|
||||
/* #undef WANT_WIN32_FIFO */
|
||||
|
||||
/* Define to use Win32 sockets */
|
||||
/* #undef WANT_WIN32_SOCKETS */
|
||||
|
||||
/* Define to use Unicode for Windows */
|
||||
/* #undef WANT_WIN32_UNICODE */
|
||||
|
||||
/* WinXP and above for ipv6 */
|
||||
/* #undef WINVER */
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
/* # undef WORDS_BIGENDIAN */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||
# define _DARWIN_USE_64_BIT_INODE 1
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
/* #undef _FILE_OFFSET_BITS */
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
/* #undef _LARGE_FILES */
|
||||
|
||||
/* WinXP and above for ipv6 */
|
||||
/* #undef _WIN32_WINNT */
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
/* #undef const */
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
/* #undef inline */
|
||||
#endif
|
||||
|
||||
/* Define to `short' if <sys/types.h> does not define. */
|
||||
/* #undef int16_t */
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
/* #undef int32_t */
|
||||
|
||||
/* Define to `long long' if <sys/types.h> does not define. */
|
||||
/* #undef int64_t */
|
||||
|
||||
/* Define to the native offset type (long or actually off_t). */
|
||||
#define lfs_alias_t off_t
|
||||
|
||||
/* Define to `long int' if <sys/types.h> does not define. */
|
||||
/* #undef off_t */
|
||||
|
||||
/* Define to `unsigned long' if <sys/types.h> does not define. */
|
||||
/* #undef size_t */
|
||||
|
||||
/* Define to `long' if <sys/types.h> does not define. */
|
||||
/* #undef ssize_t */
|
||||
|
||||
/* Define to `unsigned short' if <sys/types.h> does not define. */
|
||||
/* #undef uint16_t */
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
/* #undef uint32_t */
|
||||
|
||||
/* Define to `unsigned long' if <sys/types.h> does not define. */
|
||||
/* #undef uintptr_t */
|
1441
libsdl2_mixer/external/mpg123-1.25.6/android/mpg123.h
vendored
Normal file
1441
libsdl2_mixer/external/mpg123-1.25.6/android/mpg123.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
347
libsdl2_mixer/external/mpg123-1.25.6/build/compile
vendored
Executable file
347
libsdl2_mixer/external/mpg123-1.25.6/build/compile
vendored
Executable file
@ -0,0 +1,347 @@
|
||||
#! /bin/sh
|
||||
# Wrapper for compilers which do not understand '-c -o'.
|
||||
|
||||
scriptversion=2012-10-14.11; # UTC
|
||||
|
||||
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||
# Written by Tom Tromey <tromey@cygnus.com>.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# This file is maintained in Automake, please report
|
||||
# bugs to <bug-automake@gnu.org> or send patches to
|
||||
# <automake-patches@gnu.org>.
|
||||
|
||||
nl='
|
||||
'
|
||||
|
||||
# We need space, tab and new line, in precisely that order. Quoting is
|
||||
# there to prevent tools from complaining about whitespace usage.
|
||||
IFS=" "" $nl"
|
||||
|
||||
file_conv=
|
||||
|
||||
# func_file_conv build_file lazy
|
||||
# Convert a $build file to $host form and store it in $file
|
||||
# Currently only supports Windows hosts. If the determined conversion
|
||||
# type is listed in (the comma separated) LAZY, no conversion will
|
||||
# take place.
|
||||
func_file_conv ()
|
||||
{
|
||||
file=$1
|
||||
case $file in
|
||||
/ | /[!/]*) # absolute file, and not a UNC file
|
||||
if test -z "$file_conv"; then
|
||||
# lazily determine how to convert abs files
|
||||
case `uname -s` in
|
||||
MINGW*)
|
||||
file_conv=mingw
|
||||
;;
|
||||
CYGWIN*)
|
||||
file_conv=cygwin
|
||||
;;
|
||||
*)
|
||||
file_conv=wine
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
case $file_conv/,$2, in
|
||||
*,$file_conv,*)
|
||||
;;
|
||||
mingw/*)
|
||||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
||||
;;
|
||||
cygwin/*)
|
||||
file=`cygpath -m "$file" || echo "$file"`
|
||||
;;
|
||||
wine/*)
|
||||
file=`winepath -w "$file" || echo "$file"`
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# func_cl_dashL linkdir
|
||||
# Make cl look for libraries in LINKDIR
|
||||
func_cl_dashL ()
|
||||
{
|
||||
func_file_conv "$1"
|
||||
if test -z "$lib_path"; then
|
||||
lib_path=$file
|
||||
else
|
||||
lib_path="$lib_path;$file"
|
||||
fi
|
||||
linker_opts="$linker_opts -LIBPATH:$file"
|
||||
}
|
||||
|
||||
# func_cl_dashl library
|
||||
# Do a library search-path lookup for cl
|
||||
func_cl_dashl ()
|
||||
{
|
||||
lib=$1
|
||||
found=no
|
||||
save_IFS=$IFS
|
||||
IFS=';'
|
||||
for dir in $lib_path $LIB
|
||||
do
|
||||
IFS=$save_IFS
|
||||
if $shared && test -f "$dir/$lib.dll.lib"; then
|
||||
found=yes
|
||||
lib=$dir/$lib.dll.lib
|
||||
break
|
||||
fi
|
||||
if test -f "$dir/$lib.lib"; then
|
||||
found=yes
|
||||
lib=$dir/$lib.lib
|
||||
break
|
||||
fi
|
||||
if test -f "$dir/lib$lib.a"; then
|
||||
found=yes
|
||||
lib=$dir/lib$lib.a
|
||||
break
|
||||
fi
|
||||
done
|
||||
IFS=$save_IFS
|
||||
|
||||
if test "$found" != yes; then
|
||||
lib=$lib.lib
|
||||
fi
|
||||
}
|
||||
|
||||
# func_cl_wrapper cl arg...
|
||||
# Adjust compile command to suit cl
|
||||
func_cl_wrapper ()
|
||||
{
|
||||
# Assume a capable shell
|
||||
lib_path=
|
||||
shared=:
|
||||
linker_opts=
|
||||
for arg
|
||||
do
|
||||
if test -n "$eat"; then
|
||||
eat=
|
||||
else
|
||||
case $1 in
|
||||
-o)
|
||||
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||
eat=1
|
||||
case $2 in
|
||||
*.o | *.[oO][bB][jJ])
|
||||
func_file_conv "$2"
|
||||
set x "$@" -Fo"$file"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
func_file_conv "$2"
|
||||
set x "$@" -Fe"$file"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
-I)
|
||||
eat=1
|
||||
func_file_conv "$2" mingw
|
||||
set x "$@" -I"$file"
|
||||
shift
|
||||
;;
|
||||
-I*)
|
||||
func_file_conv "${1#-I}" mingw
|
||||
set x "$@" -I"$file"
|
||||
shift
|
||||
;;
|
||||
-l)
|
||||
eat=1
|
||||
func_cl_dashl "$2"
|
||||
set x "$@" "$lib"
|
||||
shift
|
||||
;;
|
||||
-l*)
|
||||
func_cl_dashl "${1#-l}"
|
||||
set x "$@" "$lib"
|
||||
shift
|
||||
;;
|
||||
-L)
|
||||
eat=1
|
||||
func_cl_dashL "$2"
|
||||
;;
|
||||
-L*)
|
||||
func_cl_dashL "${1#-L}"
|
||||
;;
|
||||
-static)
|
||||
shared=false
|
||||
;;
|
||||
-Wl,*)
|
||||
arg=${1#-Wl,}
|
||||
save_ifs="$IFS"; IFS=','
|
||||
for flag in $arg; do
|
||||
IFS="$save_ifs"
|
||||
linker_opts="$linker_opts $flag"
|
||||
done
|
||||
IFS="$save_ifs"
|
||||
;;
|
||||
-Xlinker)
|
||||
eat=1
|
||||
linker_opts="$linker_opts $2"
|
||||
;;
|
||||
-*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
|
||||
func_file_conv "$1"
|
||||
set x "$@" -Tp"$file"
|
||||
shift
|
||||
;;
|
||||
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
|
||||
func_file_conv "$1" mingw
|
||||
set x "$@" "$file"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
if test -n "$linker_opts"; then
|
||||
linker_opts="-link$linker_opts"
|
||||
fi
|
||||
exec "$@" $linker_opts
|
||||
exit 1
|
||||
}
|
||||
|
||||
eat=
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: compile [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Wrapper for compilers which do not understand '-c -o'.
|
||||
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
|
||||
arguments, and rename the output as expected.
|
||||
|
||||
If you are trying to build a whole package this is not the
|
||||
right script to run: please start by reading the file 'INSTALL'.
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "compile $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
|
||||
func_cl_wrapper "$@" # Doesn't return...
|
||||
;;
|
||||
esac
|
||||
|
||||
ofile=
|
||||
cfile=
|
||||
|
||||
for arg
|
||||
do
|
||||
if test -n "$eat"; then
|
||||
eat=
|
||||
else
|
||||
case $1 in
|
||||
-o)
|
||||
# configure might choose to run compile as 'compile cc -o foo foo.c'.
|
||||
# So we strip '-o arg' only if arg is an object.
|
||||
eat=1
|
||||
case $2 in
|
||||
*.o | *.obj)
|
||||
ofile=$2
|
||||
;;
|
||||
*)
|
||||
set x "$@" -o "$2"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*.c)
|
||||
cfile=$1
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set x "$@" "$1"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
if test -z "$ofile" || test -z "$cfile"; then
|
||||
# If no '-o' option was seen then we might have been invoked from a
|
||||
# pattern rule where we don't need one. That is ok -- this is a
|
||||
# normal compilation that the losing compiler can handle. If no
|
||||
# '.c' file was seen then we are probably linking. That is also
|
||||
# ok.
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# Name of file we expect compiler to create.
|
||||
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
|
||||
|
||||
# Create the lock directory.
|
||||
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
|
||||
# that we are using for the .o file. Also, base the name on the expected
|
||||
# object file name, since that is what matters with a parallel build.
|
||||
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
|
||||
while true; do
|
||||
if mkdir "$lockdir" >/dev/null 2>&1; then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
# FIXME: race condition here if user kills between mkdir and trap.
|
||||
trap "rmdir '$lockdir'; exit 1" 1 2 15
|
||||
|
||||
# Run the compile.
|
||||
"$@"
|
||||
ret=$?
|
||||
|
||||
if test -f "$cofile"; then
|
||||
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
|
||||
elif test -f "${cofile}bj"; then
|
||||
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
|
||||
fi
|
||||
|
||||
rmdir "$lockdir"
|
||||
exit $ret
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
1421
libsdl2_mixer/external/mpg123-1.25.6/build/config.guess
vendored
Executable file
1421
libsdl2_mixer/external/mpg123-1.25.6/build/config.guess
vendored
Executable file
File diff suppressed because it is too large
Load Diff
1807
libsdl2_mixer/external/mpg123-1.25.6/build/config.sub
vendored
Executable file
1807
libsdl2_mixer/external/mpg123-1.25.6/build/config.sub
vendored
Executable file
File diff suppressed because it is too large
Load Diff
791
libsdl2_mixer/external/mpg123-1.25.6/build/depcomp
vendored
Executable file
791
libsdl2_mixer/external/mpg123-1.25.6/build/depcomp
vendored
Executable file
@ -0,0 +1,791 @@
|
||||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2013-05-30.07; # UTC
|
||||
|
||||
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try '$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||
as side-effects.
|
||||
|
||||
Environment variables:
|
||||
depmode Dependency tracking mode.
|
||||
source Source file read by 'PROGRAMS ARGS'.
|
||||
object Object file output by 'PROGRAMS ARGS'.
|
||||
DEPDIR directory where to store dependencies.
|
||||
depfile Dependency file to output.
|
||||
tmpdepfile Temporary file to use when outputting dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
# Get the directory component of the given path, and save it in the
|
||||
# global variables '$dir'. Note that this directory component will
|
||||
# be either empty or ending with a '/' character. This is deliberate.
|
||||
set_dir_from ()
|
||||
{
|
||||
case $1 in
|
||||
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
|
||||
*) dir=;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Get the suffix-stripped basename of the given path, and save it the
|
||||
# global variable '$base'.
|
||||
set_base_from ()
|
||||
{
|
||||
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
|
||||
}
|
||||
|
||||
# If no dependency file was actually created by the compiler invocation,
|
||||
# we still have to create a dummy depfile, to avoid errors with the
|
||||
# Makefile "include basename.Plo" scheme.
|
||||
make_dummy_depfile ()
|
||||
{
|
||||
echo "#dummy" > "$depfile"
|
||||
}
|
||||
|
||||
# Factor out some common post-processing of the generated depfile.
|
||||
# Requires the auxiliary global variable '$tmpdepfile' to be set.
|
||||
aix_post_process_depfile ()
|
||||
{
|
||||
# If the compiler actually managed to produce a dependency file,
|
||||
# post-process it.
|
||||
if test -f "$tmpdepfile"; then
|
||||
# Each line is of the form 'foo.o: dependency.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# $object: dependency.h
|
||||
# and one to simply output
|
||||
# dependency.h:
|
||||
# which is needed to avoid the deleted-header problem.
|
||||
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
|
||||
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
|
||||
} > "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
}
|
||||
|
||||
# A tabulation character.
|
||||
tab=' '
|
||||
# A newline character.
|
||||
nl='
|
||||
'
|
||||
# Character ranges might be problematic outside the C locale.
|
||||
# These definitions help.
|
||||
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
lower=abcdefghijklmnopqrstuvwxyz
|
||||
digits=0123456789
|
||||
alpha=${upper}${lower}
|
||||
|
||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||
depfile=${depfile-`echo "$object" |
|
||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
|
||||
rm -f "$tmpdepfile"
|
||||
|
||||
# Avoid interferences from the environment.
|
||||
gccflag= dashmflag=
|
||||
|
||||
# Some modes work just like other modes, but use different flags. We
|
||||
# parameterize here, but still list the modes in the big case below,
|
||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
# here, because this file can only contain one case statement.
|
||||
if test "$depmode" = hp; then
|
||||
# HP compiler uses -M and no extra arg.
|
||||
gccflag=-M
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
if test "$depmode" = dashXmstdout; then
|
||||
# This is just like dashmstdout with a different argument.
|
||||
dashmflag=-xM
|
||||
depmode=dashmstdout
|
||||
fi
|
||||
|
||||
cygpath_u="cygpath -u -f -"
|
||||
if test "$depmode" = msvcmsys; then
|
||||
# This is just like msvisualcpp but w/o cygpath translation.
|
||||
# Just convert the backslash-escaped backslashes to single forward
|
||||
# slashes to satisfy depend.m4
|
||||
cygpath_u='sed s,\\\\,/,g'
|
||||
depmode=msvisualcpp
|
||||
fi
|
||||
|
||||
if test "$depmode" = msvc7msys; then
|
||||
# This is just like msvc7 but w/o cygpath translation.
|
||||
# Just convert the backslash-escaped backslashes to single forward
|
||||
# slashes to satisfy depend.m4
|
||||
cygpath_u='sed s,\\\\,/,g'
|
||||
depmode=msvc7
|
||||
fi
|
||||
|
||||
if test "$depmode" = xlc; then
|
||||
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
|
||||
gccflag=-qmakedep=gcc,-MF
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
case "$depmode" in
|
||||
gcc3)
|
||||
## gcc 3 implements dependency tracking that does exactly what
|
||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
|
||||
## the command line argument order; so add the flags where they
|
||||
## appear in depend2.am. Note that the slowdown incurred here
|
||||
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
|
||||
*) set fnord "$@" "$arg" ;;
|
||||
esac
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
done
|
||||
"$@"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
|
||||
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
|
||||
## (see the conditional assignment to $gccflag above).
|
||||
## There are various ways to get dependency output from gcc. Here's
|
||||
## why we pick this rather obscure method:
|
||||
## - Don't want to use -MD because we'd like the dependencies to end
|
||||
## up in a subdir. Having to rename by hand is ugly.
|
||||
## (We might end up doing this anyway to support other compilers.)
|
||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
## -MM, not -M (despite what the docs say). Also, it might not be
|
||||
## supported by the other compilers which use the 'gcc' depmode.
|
||||
## - Using -M directly means running the compiler twice (even worse
|
||||
## than renaming).
|
||||
if test -z "$gccflag"; then
|
||||
gccflag=-MD,
|
||||
fi
|
||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
# The second -e expression handles DOS-style file names with drive
|
||||
# letters.
|
||||
sed -e 's/^[^:]*: / /' \
|
||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
## This next piece of magic avoids the "deleted header file" problem.
|
||||
## The problem is that when a header file which appears in a .P file
|
||||
## is deleted, the dependency causes make to die (because there is
|
||||
## typically no way to rebuild the header). We avoid this by adding
|
||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
## this for us directly.
|
||||
## Some versions of gcc put a space before the ':'. On the theory
|
||||
## that the space means something, we add a space to the output as
|
||||
## well. hp depmode also adds that space, but also prefixes the VPATH
|
||||
## to the object. Take care to not repeat it in the output.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
sgi)
|
||||
if test "$libtool" = yes; then
|
||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
else
|
||||
"$@" -MDupdate "$tmpdepfile"
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
|
||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
echo "$object : \\" > "$depfile"
|
||||
# Clip off the initial element (the dependent). Don't try to be
|
||||
# clever and replace this with sed code, as IRIX sed won't handle
|
||||
# lines with more than a fixed number of characters (4096 in
|
||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
# the IRIX cc adds comments like '#:fec' to the end of the
|
||||
# dependency line.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
|
||||
| tr "$nl" ' ' >> "$depfile"
|
||||
echo >> "$depfile"
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> "$depfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
xlc)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
aix)
|
||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||
# in a .u file. In older versions, this file always lives in the
|
||||
# current directory. Also, the AIX compiler puts '$object:' at the
|
||||
# start of each line; $object doesn't have directory information.
|
||||
# Version 6 uses the directory in both cases.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
if test "$libtool" = yes; then
|
||||
tmpdepfile1=$dir$base.u
|
||||
tmpdepfile2=$base.u
|
||||
tmpdepfile3=$dir.libs/$base.u
|
||||
"$@" -Wc,-M
|
||||
else
|
||||
tmpdepfile1=$dir$base.u
|
||||
tmpdepfile2=$dir$base.u
|
||||
tmpdepfile3=$dir$base.u
|
||||
"$@" -M
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
aix_post_process_depfile
|
||||
;;
|
||||
|
||||
tcc)
|
||||
# tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
|
||||
# FIXME: That version still under development at the moment of writing.
|
||||
# Make that this statement remains true also for stable, released
|
||||
# versions.
|
||||
# It will wrap lines (doesn't matter whether long or short) with a
|
||||
# trailing '\', as in:
|
||||
#
|
||||
# foo.o : \
|
||||
# foo.c \
|
||||
# foo.h \
|
||||
#
|
||||
# It will put a trailing '\' even on the last line, and will use leading
|
||||
# spaces rather than leading tabs (at least since its commit 0394caf7
|
||||
# "Emit spaces for -MD").
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
|
||||
# We have to change lines of the first kind to '$object: \'.
|
||||
sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
|
||||
# And for each line of the second kind, we have to emit a 'dep.h:'
|
||||
# dummy dependency, to avoid the deleted-header problem.
|
||||
sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
## The order of this option in the case statement is important, since the
|
||||
## shell code in configure will try each of these formats in the order
|
||||
## listed in this file. A plain '-MD' option would be understood by many
|
||||
## compilers, so we must ensure this comes after the gcc and icc options.
|
||||
pgcc)
|
||||
# Portland's C compiler understands '-MD'.
|
||||
# Will always output deps to 'file.d' where file is the root name of the
|
||||
# source file under compilation, even if file resides in a subdirectory.
|
||||
# The object file name does not affect the name of the '.d' file.
|
||||
# pgcc 10.2 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using '\' :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
set_dir_from "$object"
|
||||
# Use the source, not the object, to determine the base name, since
|
||||
# that's sadly what pgcc will do too.
|
||||
set_base_from "$source"
|
||||
tmpdepfile=$base.d
|
||||
|
||||
# For projects that build the same source file twice into different object
|
||||
# files, the pgcc approach of using the *source* file root name can cause
|
||||
# problems in parallel builds. Use a locking strategy to avoid stomping on
|
||||
# the same $tmpdepfile.
|
||||
lockdir=$base.d-lock
|
||||
trap "
|
||||
echo '$0: caught signal, cleaning up...' >&2
|
||||
rmdir '$lockdir'
|
||||
exit 1
|
||||
" 1 2 13 15
|
||||
numtries=100
|
||||
i=$numtries
|
||||
while test $i -gt 0; do
|
||||
# mkdir is a portable test-and-set.
|
||||
if mkdir "$lockdir" 2>/dev/null; then
|
||||
# This process acquired the lock.
|
||||
"$@" -MD
|
||||
stat=$?
|
||||
# Release the lock.
|
||||
rmdir "$lockdir"
|
||||
break
|
||||
else
|
||||
# If the lock is being held by a different process, wait
|
||||
# until the winning process is done or we timeout.
|
||||
while test -d "$lockdir" && test $i -gt 0; do
|
||||
sleep 1
|
||||
i=`expr $i - 1`
|
||||
done
|
||||
fi
|
||||
i=`expr $i - 1`
|
||||
done
|
||||
trap - 1 2 13 15
|
||||
if test $i -le 0; then
|
||||
echo "$0: failed to acquire lock after $numtries attempts" >&2
|
||||
echo "$0: check lockdir '$lockdir'" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each line is of the form `foo.o: dependent.h',
|
||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp2)
|
||||
# The "hp" stanza above does not work with aCC (C++) and HP's ia64
|
||||
# compilers, which have integrated preprocessors. The correct option
|
||||
# to use with these is +Maked; it writes dependencies to a file named
|
||||
# 'foo.d', which lands next to the object file, wherever that
|
||||
# happens to be.
|
||||
# Much of this is similar to the tru64 case; see comments there.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
if test "$libtool" = yes; then
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir.libs/$base.d
|
||||
"$@" -Wc,+Maked
|
||||
else
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
"$@" +Maked
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
|
||||
# Add 'dependent.h:' lines.
|
||||
sed -ne '2,${
|
||||
s/^ *//
|
||||
s/ \\*$//
|
||||
s/$/:/
|
||||
p
|
||||
}' "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
make_dummy_depfile
|
||||
fi
|
||||
rm -f "$tmpdepfile" "$tmpdepfile2"
|
||||
;;
|
||||
|
||||
tru64)
|
||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
# effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
|
||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
# dependencies in 'foo.d' instead, so we check for that too.
|
||||
# Subdirectories are respected.
|
||||
set_dir_from "$object"
|
||||
set_base_from "$object"
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# Libtool generates 2 separate objects for the 2 libraries. These
|
||||
# two compilations output dependencies in $dir.libs/$base.o.d and
|
||||
# in $dir$base.o.d. We have to check for both files, because
|
||||
# one of the two compilations can be disabled. We should prefer
|
||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||
# the former would cause a distcleancheck panic.
|
||||
tmpdepfile1=$dir$base.o.d # libtool 1.5
|
||||
tmpdepfile2=$dir.libs/$base.o.d # Likewise.
|
||||
tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1=$dir$base.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
tmpdepfile3=$dir$base.d
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
# Same post-processing that is required for AIX mode.
|
||||
aix_post_process_depfile
|
||||
;;
|
||||
|
||||
msvc7)
|
||||
if test "$libtool" = yes; then
|
||||
showIncludes=-Wc,-showIncludes
|
||||
else
|
||||
showIncludes=-showIncludes
|
||||
fi
|
||||
"$@" $showIncludes > "$tmpdepfile"
|
||||
stat=$?
|
||||
grep -v '^Note: including file: ' "$tmpdepfile"
|
||||
if test $stat -ne 0; then
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
# The first sed program below extracts the file names and escapes
|
||||
# backslashes for cygpath. The second sed program outputs the file
|
||||
# name when reading, but also accumulates all include files in the
|
||||
# hold buffer in order to output them again at the end. This only
|
||||
# works with sed implementations that can handle large buffers.
|
||||
sed < "$tmpdepfile" -n '
|
||||
/^Note: including file: *\(.*\)/ {
|
||||
s//\1/
|
||||
s/\\/\\\\/g
|
||||
p
|
||||
}' | $cygpath_u | sort -u | sed -n '
|
||||
s/ /\\ /g
|
||||
s/\(.*\)/'"$tab"'\1 \\/p
|
||||
s/.\(.*\) \\/\1:/
|
||||
H
|
||||
$ {
|
||||
s/.*/'"$tab"'/
|
||||
G
|
||||
p
|
||||
}' >> "$depfile"
|
||||
echo >> "$depfile" # make sure the fragment doesn't end with a backslash
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvc7msys)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
#nosideeffect)
|
||||
# This comment above is used by automake to tell side-effect
|
||||
# dependency tracking mechanisms from slower ones.
|
||||
|
||||
dashmstdout)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove '-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
test -z "$dashmflag" && dashmflag=-M
|
||||
# Require at least two characters before searching for ':'
|
||||
# in the target name. This is to cope with DOS-style filenames:
|
||||
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
|
||||
"$@" $dashmflag |
|
||||
sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this sed invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
tr ' ' "$nl" < "$tmpdepfile" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
dashXmstdout)
|
||||
# This case only exists to satisfy depend.m4. It is never actually
|
||||
# run, as this mode is specially recognized in the preamble.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
makedepend)
|
||||
"$@" || exit $?
|
||||
# Remove any Libtool call
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
# X makedepend
|
||||
shift
|
||||
cleared=no eat=no
|
||||
for arg
|
||||
do
|
||||
case $cleared in
|
||||
no)
|
||||
set ""; shift
|
||||
cleared=yes ;;
|
||||
esac
|
||||
if test $eat = yes; then
|
||||
eat=no
|
||||
continue
|
||||
fi
|
||||
case "$arg" in
|
||||
-D*|-I*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
# Strip any option that makedepend may not understand. Remove
|
||||
# the object too, otherwise makedepend will parse it as a source file.
|
||||
-arch)
|
||||
eat=yes ;;
|
||||
-*|$object)
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
esac
|
||||
done
|
||||
obj_suffix=`echo "$object" | sed 's/^.*\././'`
|
||||
touch "$tmpdepfile"
|
||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
rm -f "$depfile"
|
||||
# makedepend may prepend the VPATH from the source file name to the object.
|
||||
# No need to regex-escape $object, excess matching of '.' is harmless.
|
||||
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process the last invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed '1,2d' "$tmpdepfile" \
|
||||
| tr ' ' "$nl" \
|
||||
| sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
|
||||
| sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
;;
|
||||
|
||||
cpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove '-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
"$@" -E \
|
||||
| sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
| sed '$ s: \\$::' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
cat < "$tmpdepfile" >> "$depfile"
|
||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvisualcpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test "X$1" != 'X--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case "$arg" in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
set fnord "$@"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
"$@" -E 2>/dev/null |
|
||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
|
||||
echo "$tab" >> "$depfile"
|
||||
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvcmsys)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
none)
|
||||
exec "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown depmode $depmode" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
501
libsdl2_mixer/external/mpg123-1.25.6/build/install-sh
vendored
Executable file
501
libsdl2_mixer/external/mpg123-1.25.6/build/install-sh
vendored
Executable file
@ -0,0 +1,501 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2013-12-25.23; # UTC
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
# following copyright and license.
|
||||
#
|
||||
# Copyright (C) 1994 X Consortium
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the X Consortium shall not
|
||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
# ings in this Software without prior written authorization from the X Consor-
|
||||
# tium.
|
||||
#
|
||||
#
|
||||
# FSF changes to this file are in the public domain.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# 'make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch.
|
||||
|
||||
tab=' '
|
||||
nl='
|
||||
'
|
||||
IFS=" $tab$nl"
|
||||
|
||||
# Set DOITPROG to "echo" to test this script.
|
||||
|
||||
doit=${DOITPROG-}
|
||||
doit_exec=${doit:-exec}
|
||||
|
||||
# Put in absolute file names if you don't have them in your path;
|
||||
# or use environment vars.
|
||||
|
||||
chgrpprog=${CHGRPPROG-chgrp}
|
||||
chmodprog=${CHMODPROG-chmod}
|
||||
chownprog=${CHOWNPROG-chown}
|
||||
cmpprog=${CMPPROG-cmp}
|
||||
cpprog=${CPPROG-cp}
|
||||
mkdirprog=${MKDIRPROG-mkdir}
|
||||
mvprog=${MVPROG-mv}
|
||||
rmprog=${RMPROG-rm}
|
||||
stripprog=${STRIPPROG-strip}
|
||||
|
||||
posix_mkdir=
|
||||
|
||||
# Desired mode of installed file.
|
||||
mode=0755
|
||||
|
||||
chgrpcmd=
|
||||
chmodcmd=$chmodprog
|
||||
chowncmd=
|
||||
mvcmd=$mvprog
|
||||
rmcmd="$rmprog -f"
|
||||
stripcmd=
|
||||
|
||||
src=
|
||||
dst=
|
||||
dir_arg=
|
||||
dst_arg=
|
||||
|
||||
copy_on_change=false
|
||||
is_target_a_directory=possibly
|
||||
|
||||
usage="\
|
||||
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||
or: $0 [OPTION]... -d DIRECTORIES...
|
||||
|
||||
In the 1st form, copy SRCFILE to DSTFILE.
|
||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||
In the 4th, create DIRECTORIES.
|
||||
|
||||
Options:
|
||||
--help display this help and exit.
|
||||
--version display version info and exit.
|
||||
|
||||
-c (ignored)
|
||||
-C install only if different (preserve the last data modification time)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-s $stripprog installed files.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
|
||||
RMPROG STRIPPROG
|
||||
"
|
||||
|
||||
while test $# -ne 0; do
|
||||
case $1 in
|
||||
-c) ;;
|
||||
|
||||
-C) copy_on_change=true;;
|
||||
|
||||
-d) dir_arg=true;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift;;
|
||||
|
||||
--help) echo "$usage"; exit $?;;
|
||||
|
||||
-m) mode=$2
|
||||
case $mode in
|
||||
*' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
|
||||
echo "$0: invalid mode: $mode" >&2
|
||||
exit 1;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift;;
|
||||
|
||||
-s) stripcmd=$stripprog;;
|
||||
|
||||
-t)
|
||||
is_target_a_directory=always
|
||||
dst_arg=$2
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $dst_arg in
|
||||
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-T) is_target_a_directory=never;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
--) shift
|
||||
break;;
|
||||
|
||||
-*) echo "$0: invalid option: $1" >&2
|
||||
exit 1;;
|
||||
|
||||
*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# We allow the use of options -d and -T together, by making -d
|
||||
# take the precedence; this is for compatibility with GNU install.
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
if test -n "$dst_arg"; then
|
||||
echo "$0: target directory not allowed when installing a directory." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
||||
# When -d is used, all remaining arguments are directories to create.
|
||||
# When -t is used, the destination is already specified.
|
||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||
for arg
|
||||
do
|
||||
if test -n "$dst_arg"; then
|
||||
# $@ is not empty: it contains at least $arg.
|
||||
set fnord "$@" "$dst_arg"
|
||||
shift # fnord
|
||||
fi
|
||||
shift # arg
|
||||
dst_arg=$arg
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $dst_arg in
|
||||
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
if test $# -eq 0; then
|
||||
if test -z "$dir_arg"; then
|
||||
echo "$0: no input file specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
# It's OK to call 'install-sh -d' without argument.
|
||||
# This can happen when creating conditional directories.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if test -z "$dir_arg"; then
|
||||
if test $# -gt 1 || test "$is_target_a_directory" = always; then
|
||||
if test ! -d "$dst_arg"; then
|
||||
echo "$0: $dst_arg: Is not a directory." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -z "$dir_arg"; then
|
||||
do_exit='(exit $ret); exit $ret'
|
||||
trap "ret=129; $do_exit" 1
|
||||
trap "ret=130; $do_exit" 2
|
||||
trap "ret=141; $do_exit" 13
|
||||
trap "ret=143; $do_exit" 15
|
||||
|
||||
# Set umask so as not to create temps with too-generous modes.
|
||||
# However, 'strip' requires both read and write access to temps.
|
||||
case $mode in
|
||||
# Optimize common cases.
|
||||
*644) cp_umask=133;;
|
||||
*755) cp_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw='% 200'
|
||||
fi
|
||||
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
|
||||
*)
|
||||
if test -z "$stripcmd"; then
|
||||
u_plus_rw=
|
||||
else
|
||||
u_plus_rw=,u+rw
|
||||
fi
|
||||
cp_umask=$mode$u_plus_rw;;
|
||||
esac
|
||||
fi
|
||||
|
||||
for src
|
||||
do
|
||||
# Protect names problematic for 'test' and other utilities.
|
||||
case $src in
|
||||
-* | [=\(\)!]) src=./$src;;
|
||||
esac
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
dst=$src
|
||||
dstdir=$dst
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
else
|
||||
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
if test ! -f "$src" && test ! -d "$src"; then
|
||||
echo "$0: $src does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$dst_arg"; then
|
||||
echo "$0: no destination specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
dst=$dst_arg
|
||||
|
||||
# If destination is a directory, append the input filename; won't work
|
||||
# if double slashes aren't ignored.
|
||||
if test -d "$dst"; then
|
||||
if test "$is_target_a_directory" = never; then
|
||||
echo "$0: $dst_arg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dstdir=$dst
|
||||
dst=$dstdir/`basename "$src"`
|
||||
dstdir_status=0
|
||||
else
|
||||
dstdir=`dirname "$dst"`
|
||||
test -d "$dstdir"
|
||||
dstdir_status=$?
|
||||
fi
|
||||
fi
|
||||
|
||||
obsolete_mkdir_used=false
|
||||
|
||||
if test $dstdir_status != 0; then
|
||||
case $posix_mkdir in
|
||||
'')
|
||||
# Create intermediate dirs using mode 755 as modified by the umask.
|
||||
# This is like FreeBSD 'install' as of 1997-10-28.
|
||||
umask=`umask`
|
||||
case $stripcmd.$umask in
|
||||
# Optimize common cases.
|
||||
*[2367][2367]) mkdir_umask=$umask;;
|
||||
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
|
||||
|
||||
*[0-7])
|
||||
mkdir_umask=`expr $umask + 22 \
|
||||
- $umask % 100 % 40 + $umask % 20 \
|
||||
- $umask % 10 % 4 + $umask % 2
|
||||
`;;
|
||||
*) mkdir_umask=$umask,go-w;;
|
||||
esac
|
||||
|
||||
# With -d, create the new directory with the user-specified mode.
|
||||
# Otherwise, rely on $mkdir_umask.
|
||||
if test -n "$dir_arg"; then
|
||||
mkdir_mode=-m$mode
|
||||
else
|
||||
mkdir_mode=
|
||||
fi
|
||||
|
||||
posix_mkdir=false
|
||||
case $umask in
|
||||
*[123567][0-7][0-7])
|
||||
# POSIX mkdir -p sets u+wx bits regardless of umask, which
|
||||
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
|
||||
;;
|
||||
*)
|
||||
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
|
||||
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
|
||||
|
||||
if (umask $mkdir_umask &&
|
||||
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
|
||||
then
|
||||
if test -z "$dir_arg" || {
|
||||
# Check for POSIX incompatibilities with -m.
|
||||
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
|
||||
# other-writable bit of parent directory when it shouldn't.
|
||||
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
|
||||
ls_ld_tmpdir=`ls -ld "$tmpdir"`
|
||||
case $ls_ld_tmpdir in
|
||||
d????-?r-*) different_mode=700;;
|
||||
d????-?--*) different_mode=755;;
|
||||
*) false;;
|
||||
esac &&
|
||||
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
|
||||
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
|
||||
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
|
||||
}
|
||||
}
|
||||
then posix_mkdir=:
|
||||
fi
|
||||
rmdir "$tmpdir/d" "$tmpdir"
|
||||
else
|
||||
# Remove any dirs left behind by ancient mkdir implementations.
|
||||
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
|
||||
fi
|
||||
trap '' 0;;
|
||||
esac;;
|
||||
esac
|
||||
|
||||
if
|
||||
$posix_mkdir && (
|
||||
umask $mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
|
||||
)
|
||||
then :
|
||||
else
|
||||
|
||||
# The umask is ridiculous, or mkdir does not conform to POSIX,
|
||||
# or it failed possibly due to a race condition. Create the
|
||||
# directory the slow way, step by step, checking for races as we go.
|
||||
|
||||
case $dstdir in
|
||||
/*) prefix='/';;
|
||||
[-=\(\)!]*) prefix='./';;
|
||||
*) prefix='';;
|
||||
esac
|
||||
|
||||
oIFS=$IFS
|
||||
IFS=/
|
||||
set -f
|
||||
set fnord $dstdir
|
||||
shift
|
||||
set +f
|
||||
IFS=$oIFS
|
||||
|
||||
prefixes=
|
||||
|
||||
for d
|
||||
do
|
||||
test X"$d" = X && continue
|
||||
|
||||
prefix=$prefix$d
|
||||
if test -d "$prefix"; then
|
||||
prefixes=
|
||||
else
|
||||
if $posix_mkdir; then
|
||||
(umask=$mkdir_umask &&
|
||||
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
|
||||
# Don't fail if two instances are running concurrently.
|
||||
test -d "$prefix" || exit 1
|
||||
else
|
||||
case $prefix in
|
||||
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
|
||||
*) qprefix=$prefix;;
|
||||
esac
|
||||
prefixes="$prefixes '$qprefix'"
|
||||
fi
|
||||
fi
|
||||
prefix=$prefix/
|
||||
done
|
||||
|
||||
if test -n "$prefixes"; then
|
||||
# Don't fail if two instances are running concurrently.
|
||||
(umask $mkdir_umask &&
|
||||
eval "\$doit_exec \$mkdirprog $prefixes") ||
|
||||
test -d "$dstdir" || exit 1
|
||||
obsolete_mkdir_used=true
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
|
||||
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
|
||||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
|
||||
else
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=$dstdir/_inst.$$_
|
||||
rmtmp=$dstdir/_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||
#
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
|
||||
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
|
||||
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
|
||||
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
|
||||
|
||||
# If -C, don't bother to copy if it wouldn't change the file.
|
||||
if $copy_on_change &&
|
||||
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
|
||||
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
|
||||
set -f &&
|
||||
set X $old && old=:$2:$4:$5:$6 &&
|
||||
set X $new && new=:$2:$4:$5:$6 &&
|
||||
set +f &&
|
||||
test "$old" = "$new" &&
|
||||
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
|
||||
then
|
||||
rm -f "$dsttmp"
|
||||
else
|
||||
# Rename the file to the real destination.
|
||||
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
|
||||
|
||||
# The rename failed, perhaps because mv can't rename something else
|
||||
# to itself, or perhaps because mv is so ancient that it does not
|
||||
# support -f.
|
||||
{
|
||||
# Now remove or move aside any old file at destination location.
|
||||
# We try this two ways since rm can't unlink itself on some
|
||||
# systems and the destination file might be busy for other
|
||||
# reasons. In this case, the final cleanup might fail but the new
|
||||
# file should still install successfully.
|
||||
{
|
||||
test ! -f "$dst" ||
|
||||
$doit $rmcmd -f "$dst" 2>/dev/null ||
|
||||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
|
||||
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
|
||||
} ||
|
||||
{ echo "$0: cannot unlink or rename $dst" >&2
|
||||
(exit 1); exit 1
|
||||
}
|
||||
} &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
$doit $mvcmd "$dsttmp" "$dst"
|
||||
}
|
||||
fi || exit 1
|
||||
|
||||
trap '' 0
|
||||
fi
|
||||
done
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
11147
libsdl2_mixer/external/mpg123-1.25.6/build/ltmain.sh
vendored
Normal file
11147
libsdl2_mixer/external/mpg123-1.25.6/build/ltmain.sh
vendored
Normal file
File diff suppressed because it is too large
Load Diff
215
libsdl2_mixer/external/mpg123-1.25.6/build/missing
vendored
Executable file
215
libsdl2_mixer/external/mpg123-1.25.6/build/missing
vendored
Executable file
@ -0,0 +1,215 @@
|
||||
#! /bin/sh
|
||||
# Common wrapper for a few potentially missing GNU programs.
|
||||
|
||||
scriptversion=2013-10-28.13; # UTC
|
||||
|
||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try '$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
|
||||
--is-lightweight)
|
||||
# Used by our autoconf macros to check whether the available missing
|
||||
# script is modern enough.
|
||||
exit 0
|
||||
;;
|
||||
|
||||
--run)
|
||||
# Back-compat with the calling convention used by older automake.
|
||||
shift
|
||||
;;
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
|
||||
to PROGRAM being missing or too old.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal autoconf autoheader autom4te automake makeinfo
|
||||
bison yacc flex lex help2man
|
||||
|
||||
Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
|
||||
'g' are ignored when checking the name.
|
||||
|
||||
Send bug reports to <bug-automake@gnu.org>."
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing $scriptversion (GNU Automake)"
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: unknown '$1' option"
|
||||
echo 1>&2 "Try '$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# Run the given program, remember its exit status.
|
||||
"$@"; st=$?
|
||||
|
||||
# If it succeeded, we are done.
|
||||
test $st -eq 0 && exit 0
|
||||
|
||||
# Also exit now if we it failed (or wasn't found), and '--version' was
|
||||
# passed; such an option is passed most likely to detect whether the
|
||||
# program is present and works.
|
||||
case $2 in --version|--help) exit $st;; esac
|
||||
|
||||
# Exit code 63 means version mismatch. This often happens when the user
|
||||
# tries to use an ancient version of a tool on a file that requires a
|
||||
# minimum version.
|
||||
if test $st -eq 63; then
|
||||
msg="probably too old"
|
||||
elif test $st -eq 127; then
|
||||
# Program was missing.
|
||||
msg="missing on your system"
|
||||
else
|
||||
# Program was found and executed, but failed. Give up.
|
||||
exit $st
|
||||
fi
|
||||
|
||||
perl_URL=http://www.perl.org/
|
||||
flex_URL=http://flex.sourceforge.net/
|
||||
gnu_software_URL=http://www.gnu.org/software
|
||||
|
||||
program_details ()
|
||||
{
|
||||
case $1 in
|
||||
aclocal|automake)
|
||||
echo "The '$1' program is part of the GNU Automake package:"
|
||||
echo "<$gnu_software_URL/automake>"
|
||||
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
|
||||
echo "<$gnu_software_URL/autoconf>"
|
||||
echo "<$gnu_software_URL/m4/>"
|
||||
echo "<$perl_URL>"
|
||||
;;
|
||||
autoconf|autom4te|autoheader)
|
||||
echo "The '$1' program is part of the GNU Autoconf package:"
|
||||
echo "<$gnu_software_URL/autoconf/>"
|
||||
echo "It also requires GNU m4 and Perl in order to run:"
|
||||
echo "<$gnu_software_URL/m4/>"
|
||||
echo "<$perl_URL>"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
give_advice ()
|
||||
{
|
||||
# Normalize program name to check for.
|
||||
normalized_program=`echo "$1" | sed '
|
||||
s/^gnu-//; t
|
||||
s/^gnu//; t
|
||||
s/^g//; t'`
|
||||
|
||||
printf '%s\n' "'$1' is $msg."
|
||||
|
||||
configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
|
||||
case $normalized_program in
|
||||
autoconf*)
|
||||
echo "You should only need it if you modified 'configure.ac',"
|
||||
echo "or m4 files included by it."
|
||||
program_details 'autoconf'
|
||||
;;
|
||||
autoheader*)
|
||||
echo "You should only need it if you modified 'acconfig.h' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'autoheader'
|
||||
;;
|
||||
automake*)
|
||||
echo "You should only need it if you modified 'Makefile.am' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'automake'
|
||||
;;
|
||||
aclocal*)
|
||||
echo "You should only need it if you modified 'acinclude.m4' or"
|
||||
echo "$configure_deps."
|
||||
program_details 'aclocal'
|
||||
;;
|
||||
autom4te*)
|
||||
echo "You might have modified some maintainer files that require"
|
||||
echo "the 'autom4te' program to be rebuilt."
|
||||
program_details 'autom4te'
|
||||
;;
|
||||
bison*|yacc*)
|
||||
echo "You should only need it if you modified a '.y' file."
|
||||
echo "You may want to install the GNU Bison package:"
|
||||
echo "<$gnu_software_URL/bison/>"
|
||||
;;
|
||||
lex*|flex*)
|
||||
echo "You should only need it if you modified a '.l' file."
|
||||
echo "You may want to install the Fast Lexical Analyzer package:"
|
||||
echo "<$flex_URL>"
|
||||
;;
|
||||
help2man*)
|
||||
echo "You should only need it if you modified a dependency" \
|
||||
"of a man page."
|
||||
echo "You may want to install the GNU Help2man package:"
|
||||
echo "<$gnu_software_URL/help2man/>"
|
||||
;;
|
||||
makeinfo*)
|
||||
echo "You should only need it if you modified a '.texi' file, or"
|
||||
echo "any other file indirectly affecting the aspect of the manual."
|
||||
echo "You might want to install the Texinfo package:"
|
||||
echo "<$gnu_software_URL/texinfo/>"
|
||||
echo "The spurious makeinfo call might also be the consequence of"
|
||||
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
|
||||
echo "want to install GNU make:"
|
||||
echo "<$gnu_software_URL/make/>"
|
||||
;;
|
||||
*)
|
||||
echo "You might have modified some files without having the proper"
|
||||
echo "tools for further handling them. Check the 'README' file, it"
|
||||
echo "often tells you about the needed prerequisites for installing"
|
||||
echo "this package. You may also peek at any GNU archive site, in"
|
||||
echo "case some other package contains this missing '$1' program."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
give_advice "$1" | sed -e '1s/^/WARNING: /' \
|
||||
-e '2,$s/^/ /' >&2
|
||||
|
||||
# Propagate the correct exit status (expected to be 127 for a program
|
||||
# not found, 63 for a program that failed due to version mismatch).
|
||||
exit $st
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-time-zone: "UTC"
|
||||
# time-stamp-end: "; # UTC"
|
||||
# End:
|
22094
libsdl2_mixer/external/mpg123-1.25.6/configure
vendored
Executable file
22094
libsdl2_mixer/external/mpg123-1.25.6/configure
vendored
Executable file
File diff suppressed because it is too large
Load Diff
2496
libsdl2_mixer/external/mpg123-1.25.6/configure.ac
vendored
Normal file
2496
libsdl2_mixer/external/mpg123-1.25.6/configure.ac
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
libsdl2_mixer/external/mpg123-1.25.6/doc/ACCURACY
vendored
Normal file
2
libsdl2_mixer/external/mpg123-1.25.6/doc/ACCURACY
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
We do regular testing of ISO MPEG compliant decoder accuracy, automatic with snapshot generation each night at least, with results shown on the front page of http://mpg123.org .
|
||||
Since version 1.8.0, mpg123 really looks fine in that area... it's fast and sounds good;-)
|
110
libsdl2_mixer/external/mpg123-1.25.6/doc/BENCHMARKING
vendored
Normal file
110
libsdl2_mixer/external/mpg123-1.25.6/doc/BENCHMARKING
vendored
Normal file
@ -0,0 +1,110 @@
|
||||
O-tone Michael Hipp: The mp3 benchmarking lie?
|
||||
----------------------------------------------
|
||||
|
||||
Let's write a few notes about benchmarking the different mp3 decoders,
|
||||
which are available. 'top' is NOT a benchmark, it's a simple check
|
||||
how a program performs. The sad thing with 'top' is, that it has some
|
||||
problems with the measurement of threaded programs of programs only
|
||||
requesting short chunks of processor time. So, the only real test is
|
||||
probably decoding a stream without threads with 100% CPU time and
|
||||
measure the time how long your machine needs for it.
|
||||
You can do this with mpg123 by doing a
|
||||
time mpg123 -t mp3stream.mp3
|
||||
or
|
||||
time mpg123 -s mp3stream.mp3 > /dev/null
|
||||
if you additionally want to measure the I/O time.
|
||||
|
||||
If you find a player, which claims to be 10 or even more times faster than the
|
||||
current players: just don't believe it. A factor of 2 MAY BE possible.
|
||||
|
||||
|
||||
Thomas's mpg123 decision process
|
||||
--------------------------------
|
||||
|
||||
I made some tests back then when I wondered if there is a point in using another "modern" mp3 decoder for my mixing daemon. This was around Dec. 2004 till Feb. 2005 with current versions (0.59r-thorX in the case of mpg123). What follows is a copy of the DECODERS file in the dermixd distribution:
|
||||
|
||||
What decoder should one use?
|
||||
|
||||
-----
|
||||
MP3
|
||||
-----
|
||||
|
||||
mpg123 is the old-fashioned way, uncertain license, may have some problems with extraordinary files (huge id3v2 tags, other specialities?), but fast. Has EQ control; interactive frontend interface (in parts hacked by me...).
|
||||
|
||||
mpg321: is popular these days... interface? speed?
|
||||
|
||||
madplay: is becoming popular these days, handles RVA2 by itself... can't provide an interface nor EQ
|
||||
|
||||
|
||||
speed:
|
||||
|
||||
decoding Dirty Guitar with NULL output, pentium-optimized (not more):
|
||||
|
||||
decoder user time/s
|
||||
mpg123 23
|
||||
madplay(hq) 46
|
||||
madplay(speed) 34
|
||||
mpg321(hq) 62
|
||||
mpg321(speed) 49
|
||||
|
||||
|
||||
So, there is still a strong technical point in using mpg123... even when my 366MHz-Laptop can easily handle several decoders at once with either of the programs, every percent cpu usage drags on the battery... and takes the cpu time from the real work
|
||||
|
||||
-----
|
||||
OGG
|
||||
-----
|
||||
|
||||
7,9M /tmp/dirty_guitar-q3.ogg
|
||||
11M /tmp/dirty_guitar-q5.ogg
|
||||
13M /tmp/dirty_guitar-q6.ogg
|
||||
15M /tmp/dirty_guitar-q7.ogg
|
||||
22M /tmp/dirty_guitar-q9.ogg
|
||||
29M /tmp/dirty_guitar-q10.ogg
|
||||
14M /tmp/dirty_guitar-std.mp3
|
||||
101M /tmp/dirty_guitar.wav
|
||||
|
||||
speed of ogg123:
|
||||
|
||||
quality user time/s
|
||||
3 31
|
||||
5 36
|
||||
6 38
|
||||
7 39
|
||||
10 55
|
||||
|
||||
So, with similar care as mpg123 concerning some (assembler?) optimization, ogg could well come close to "fast" mp3 decoding.
|
||||
Does ist sound better, then?
|
||||
|
||||
|
||||
A review from the new maintainer
|
||||
--------------------------------
|
||||
|
||||
Now it's 2006, 23th of July. Still the same laptop, still the same mp3 file.
|
||||
I just want to update the number for current mpg123 with the mmx optimization.
|
||||
I should also see if competition (well, ogg, at least?) improved in the year that passed... but looking only at mp3, that reduces to the question if mpg123 got faster or slower.
|
||||
Neither on the mpg321 site or the MAD site (ftp dir) did I find any new version. MAD is still 0.15.1b (0.15.2b for madplay), mpg321 still 0.2.10 .
|
||||
Well, I can look at mplayer's mpg123 spawn called mp3lib that has been taken care for over the time.
|
||||
But apart from that, will mpg123 stand alone on the field of console mp3 engines that are actively maintained???
|
||||
To have at least some twist, I now measured the output of raw data to stdout (to /dev/null) instead of decoding alone. The hardware and largely the software is still the same (now kernel 2.6.11 instead of 2.6.?).
|
||||
I've only used the "high quality" mad players - the earlier measurements give a hint about the difference to the "speed" variant.
|
||||
|
||||
mpg123-0.60-beta1, underworld_@_dirty_guitar.mp3
|
||||
|
||||
gcc-3.3.3
|
||||
CFLAGS=-O2 -finline-functions -march=pentium2
|
||||
built with the new autoconf/make system
|
||||
machine in X11 running fluxbox, no active load (like a year ago)
|
||||
measuring second run (with cached file)
|
||||
|
||||
time for -s > /dev/null decode...
|
||||
pentium: 24s
|
||||
pentium, MMX: 19s
|
||||
pentium, MMX, gapless (runtime-disabled): 19s
|
||||
pentium, MMX, gapless (also runtime-enabled): 19s
|
||||
mpg321 0.2.10, high quality: 64s
|
||||
madplay 0.15.2b, high quality: 56s
|
||||
|
||||
With the file length being m:s 9:58 (598s), for mpg123 that makes theoretical realtime cpu 3-4% for the PII-366.
|
||||
Incidentally, `top` agrees there: it shows 3.0-3.3% CPU usage for the MMX/gapless binary during normal OSS playback.
|
||||
|
||||
I feel unable to benchmark the mp3 playback of mplayer - I don't see an option to make it decode audio as fast as possible (I only know -benhcmark and -noaudio; with esp. the latter not helping me there).
|
3
libsdl2_mixer/external/mpg123-1.25.6/doc/BUGS
vendored
Normal file
3
libsdl2_mixer/external/mpg123-1.25.6/doc/BUGS
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
If you find a bug, please check for and report it in the sourceforge bug tracking system:
|
||||
|
||||
http://sourceforge.net/tracker/?atid=733194&group_id=135704&func=browse
|
17
libsdl2_mixer/external/mpg123-1.25.6/doc/CONTACT
vendored
Normal file
17
libsdl2_mixer/external/mpg123-1.25.6/doc/CONTACT
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
If you have a problem with some mp3 file or with your platform that should be supported by mpg123, please post on the mpg123 user mailing list
|
||||
|
||||
mpg123-users@lists.sourceforge.net
|
||||
|
||||
Any ideas for feature improvements or any other suggestions concerning development may be better placed at
|
||||
|
||||
mpg123-devel@lists.sourceforge.net
|
||||
|
||||
If you don't want to subscribe to these, you can also drop a note to
|
||||
|
||||
maintainer@mpg123.org
|
||||
|
||||
But if you want to subscribe and participate in the open discussion or just browse the mailing list archives, see
|
||||
|
||||
http://sourceforge.net/mail/?group_id=135704
|
||||
|
||||
(or just http://sourceforge.net/projects/mpg123 and click through).
|
82
libsdl2_mixer/external/mpg123-1.25.6/doc/LARGEFILE
vendored
Normal file
82
libsdl2_mixer/external/mpg123-1.25.6/doc/LARGEFILE
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
Regarding largefile setup, client apps can be built three ways:
|
||||
|
||||
1. _FILE_OFFSET_BITS == 64 (header maps to mpg123_open_64)
|
||||
2. _FILE_OFFSET_BITS == 32 (header maps to mpg123_open_32)
|
||||
3. _FILE_OFFSET_BITS == <nothing> (header maps to mpg123_open)
|
||||
|
||||
The libmpg123 build needs to be prepared for everything. Also, it needs to keep
|
||||
in mind the days before introducing large file support --- binaries should still
|
||||
work with updated libmpg123. So, mpg123_open should always match what is the
|
||||
default build on a platform without added settings. Those are the platform
|
||||
variants:
|
||||
|
||||
1. 64 bit native system, long == off_t
|
||||
libmpg123: mpg123_open
|
||||
lfs_alias: mpg123_open_64 -> mpg123_open
|
||||
lfs_wrap: <none>
|
||||
|
||||
2. largefile-sensitive, long = 32, off_t = 64 (if enabled)
|
||||
libmpg123: mpg123_open_64
|
||||
lfs_alias: mpg123_open_32 -> mpg123_open
|
||||
lfs_wrap: mpg123_open -> mpg123_open_64
|
||||
|
||||
3. largefile, long = 32, off_t = 64 (FreeBSD)
|
||||
libmpg123: mpg123_open
|
||||
lfs_alias: mpg123_open_64 -> mpg123_open
|
||||
lfs_wrap: <none>
|
||||
|
||||
This is what mpg123 does in version 1.15.4 and it works. Well, for cases 1
|
||||
(Linux/Solaris x86-64) and 2 (Linux/Solaris x86). Case 3 needs to be added
|
||||
properly. Actually, let's have a second look at case 2: When mpg123 is built
|
||||
with --disable-largefile:
|
||||
|
||||
2a. largefile-sensitive, mpg123 built with off_t = 32 == long
|
||||
libmpg123: mpg123_open
|
||||
lfs_alias: mpg123_open_32 -> mpg123_open
|
||||
lfs_wrap: <none>
|
||||
|
||||
So, this is still correct. Now, what about case 3? What does mpg123 do
|
||||
currently, as of 1.15.4?
|
||||
|
||||
3a. largefile, long = 32, off_t = 64 (... and mpg123 not really aware of that)
|
||||
libmpg123: mpg123_open
|
||||
lfs_alias: mpg123_open_32(long) -> mpg123_open(off_t)
|
||||
lfs_wrap: <none>
|
||||
|
||||
This is _wrong_. Luckily, this does not cause binary compatibility issues, as
|
||||
mpg123_open_32 won't be called by anyone unless that someone tries to define
|
||||
_FILE_OFFSET_BITS=32, which is nonsense. Perhaps old FreeBSD binaries before
|
||||
LFS times? Well, back then, there was no libmpg123. So let's ignore that case.
|
||||
The issue at hand is that the alias should be from mpg123_open_64 to
|
||||
mpg123_open, for clients that insist on defining _FILE_OFFSET_BITS=64.
|
||||
|
||||
The change needed now is to fix the naming and also change the type the
|
||||
alias functions use: It is not long int anymore!
|
||||
|
||||
Let's revisit case 1 for a moment: My old lfs_alias.c provides for the case
|
||||
lfs_alias: mpg123_open -> mpg123_open_64. Is that actually possible?
|
||||
What means enforcing _FILE_OFFSET_BITS=64 from the outside, which _could_
|
||||
happen when libmpg123 is included someplace and folks are on the wrong side
|
||||
of paranoid regarding this. So, there is
|
||||
|
||||
1a. 64 bit native system, long == off_t = 64 and _FILE_OFFSET_BITS=64
|
||||
libmpg123: mpg123_open_64
|
||||
lfs_alias: mpg123_open -> mpg123_open_64
|
||||
lfs_wrap: <none>
|
||||
|
||||
(Works also for any system with long == off_t in any width)
|
||||
Likewise, there is largefile-sensitive system with enforced 32 bits:
|
||||
|
||||
2b. largefile-sensitive, mpg123 with enforced _FILE_OFFSET_BITS=32
|
||||
libmpg123: mpg123_open_32
|
||||
lfs_alias: mpg123_open -> mpg123_open_32
|
||||
lfs_wrap: <none>
|
||||
|
||||
All cases are supported with this significant change from 1.15.4:
|
||||
Make the aliases use a defined lfs_alias_t, which can be long or off_t,
|
||||
depending on what is the default type for offsets on the platform.
|
||||
Folks who try _FILE_OFFSET_BITS=32 on a system that only supports
|
||||
64 bit get a linking error during mpg123 build (from the _64 aliases),
|
||||
which I consider to be a feature.
|
||||
|
||||
I salute anyone who is not confused after reading this.
|
22
libsdl2_mixer/external/mpg123-1.25.6/doc/LICENSE
vendored
Normal file
22
libsdl2_mixer/external/mpg123-1.25.6/doc/LICENSE
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
GNU says that the license terms go into a file called COPYING.
|
||||
Go over to COPYING to read the license, then.
|
||||
|
||||
Or...
|
||||
|
||||
You stay a bit with me here and read some not really important text.
|
||||
You could imagine that there was some important text here, though.
|
||||
You could also imagine that you were not sitting
|
||||
in your office / living room / bathroom
|
||||
in front of one of these evil electronic brains
|
||||
(you didn't _print_ this file, did you?)
|
||||
but being at some happy place, far, far away.
|
||||
You could also imagine being at some unhappy place.
|
||||
If you indeed are at such an unhappy place, imagine you were sitting
|
||||
in your office / living room / bathroom
|
||||
in front of this shiny, though evil, electronic brain.
|
||||
Reading this pointless text.
|
||||
Wondering about what you could have achieved in the past moments
|
||||
if you wouldn't have continued reading this pointless text.
|
||||
Wondering if anything is worth being achieved at all.
|
||||
Or if it all is just...
|
||||
pointless.
|
29
libsdl2_mixer/external/mpg123-1.25.6/doc/Makemodule.am
vendored
Normal file
29
libsdl2_mixer/external/mpg123-1.25.6/doc/Makemodule.am
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# Module for non-recursive mpg123 build system.
|
||||
|
||||
EXTRA_DIST += \
|
||||
doc/BENCHMARKING \
|
||||
doc/BUGS \
|
||||
doc/CONTACT \
|
||||
doc/PATENTS \
|
||||
doc/README.3DNOW \
|
||||
doc/README.gain \
|
||||
doc/README.remote \
|
||||
doc/ROAD_TO_LGPL \
|
||||
doc/TODO \
|
||||
doc/LICENSE \
|
||||
doc/THANKS \
|
||||
doc/ACCURACY \
|
||||
doc/LARGEFILE \
|
||||
doc/libmpg123_speed.txt \
|
||||
doc/doxyhead.xhtml \
|
||||
doc/doxyfoot.xhtml \
|
||||
doc/doxy_examples.c \
|
||||
doc/doxygen.conf \
|
||||
doc/examples/mpg123_to_out123.c \
|
||||
doc/examples/scan.c \
|
||||
doc/examples/mpglib.c \
|
||||
doc/examples/id3dump.c \
|
||||
doc/examples/feedseek.c \
|
||||
doc/examples/dump_seekindex.c \
|
||||
doc/examples/extract_frames.c \
|
||||
doc/examples/Makefile
|
39
libsdl2_mixer/external/mpg123-1.25.6/doc/PATENTS
vendored
Normal file
39
libsdl2_mixer/external/mpg123-1.25.6/doc/PATENTS
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
Some notes about patents and mpg123 by Thomas Orgis
|
||||
---------------------------------------------------
|
||||
|
||||
There has been a lot of confusion over mp3 (or more generic mpeg audio) patents and licensing issues due to the patents held by Fraunhofer and marketed by Thomson.
|
||||
So, yes, there are patents held by Fraunhofer that are claimed to cover mpeg audio technology. There are also claims that they cover any similar technology (like OGG).
|
||||
You may argue if these patents are valid at all (being illegal software patents, or being preceeded by known scientific publications), but they are internationally accepted by patent authorities and if you want to use mp3 commercially you should check
|
||||
|
||||
http://www.mp3licensing.org
|
||||
|
||||
for the Fraunhofer/Thomson opinion and their terms.
|
||||
|
||||
Since mpg123 is only a mpeg audio player, a good deal of patents that describe the encoding process (the tricky part) will not apply.
|
||||
Also, statements from the patent holders up to now always allowed the non-commercial distribution of mpeg audio decoders without any fee.
|
||||
They want you to pay for a license when you want to make money by selling a decoder, though. We don't sell mpg123.
|
||||
Additionally, one should not forget the fact that the ideas are getting old; the basic (funded by government, btw.) research was somewhen back around the 80s and many patents are going to expire soon, best example in Germany:
|
||||
|
||||
P/DE 35 06 912 Method of transmission of an audio signal using grouping of amplitude values
|
||||
|
||||
Application was 22.02.1986 in Germany (and around Europe in the same time Jan/Feb 1986).
|
||||
German patents last 20 years... now we have 24.07.2006. Time has come...
|
||||
|
||||
The idea of a patent is to make the inventor open the invention to the public by giving him some safe time to turn this invention into economical benefit.
|
||||
People using (and improving!) the technology freely after that time is _the_ most important aspect of that idea.
|
||||
|
||||
Oh, I should mention the "core" mp3 patent (from http://gauss.ffii.org/PatentView/EP287578):
|
||||
|
||||
DE 3629434 / EP287578 Digital coding process
|
||||
|
||||
Application date in Germany was 29.08.1986 - that means that in a month from now (remember: 24.07.2006) this patent finds its natural end.
|
||||
|
||||
Then, there are other patents listed on the Fraunhofer/Thomson website that came very late... The one about join stereo coding was aplied for in Feb 1995. Did mpg123 implement that already back then? History is a bit blurry there...
|
||||
There is a patent applied for in 1997, but probably covering encoding only. Still, even if that weren't the case - the basic decoding functionality of mpg123 didn't change that much after 1997; and they couldn't have patented existing functionality.
|
||||
In general, few patents seem to cover decoders at all. Of course, with me being no lawyer, that statement is not trustworthy...
|
||||
|
||||
Bottom line is:
|
||||
|
||||
While Fraunhofer/Thomson don't want to charge free software players - they said that a long time ago, the time for they being able to place such charges is expiring or has already expired. One should really think before adding mp3pro/surround support to mpg123, though, since there are for sure more recent patents for that.
|
||||
|
||||
And don't forget: The progress bar is covered by a patent, too.
|
56
libsdl2_mixer/external/mpg123-1.25.6/doc/README.3DNOW
vendored
Normal file
56
libsdl2_mixer/external/mpg123-1.25.6/doc/README.3DNOW
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
************************************************************************
|
||||
* 3DNow! support by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> *
|
||||
* <kim@comtec.co.jp> *
|
||||
* (http://hannah.ipc.miyakyo-u.ac.jp/kim/) *
|
||||
* Syuuhei Kashiyama <squash@mb.kcom.ne.jp> *
|
||||
* (http://user.ecc.u-tokyo.ac.jp/~g810370/)*
|
||||
************************************************************************
|
||||
|
||||
-----------------------------
|
||||
What's new in patch for 0.59r
|
||||
-----------------------------
|
||||
- 3DNow! optimized decode routine (decode_3dnow.s,dct36_3dnow.s ;
|
||||
these code based Syuuhei Kashiyama's 3DNow! patch for mpg123-0.59o)
|
||||
- 3DNow! optimized equalizer (equalizer_3dnow.s ; do_equalizer() only)
|
||||
- target "linux-3dnow-alsa" "linux-3dnow-esd" added (untested)
|
||||
- automatic detect 3DNow! support CPU from CPUFLAGS (getcpuflags.s)
|
||||
(i.e. use floating-pointer decode routine if your CPU isn't support
|
||||
3DNow! or MMX instructions)
|
||||
|
||||
-------------
|
||||
Added options
|
||||
-------------
|
||||
"--test-3dnow" : display result of autodetect and exit
|
||||
"--force-3dnow" : force use of 3DNow! optimized decoder
|
||||
(it will cause SIGILL if your CPU isn't support 3DNow! or MMX
|
||||
instructions)
|
||||
"--no-3dnow" : force use of floating-pointer decoder
|
||||
|
||||
-----------
|
||||
How to make
|
||||
-----------
|
||||
[1] To make 3DNow! optimized mpg123,you need binutils-2.9.1.0.15 or later.
|
||||
You can find the most recent binutils (2.9.1.0.25 until 23.Jun.1999) at
|
||||
- kernel.org (and mirrors) : /pub/linux/devel/gcc/
|
||||
- http://hannah.ipc.miyakyo-u.ac.jp/kim/Linux/binutils/
|
||||
(Takuhiro's local copy)
|
||||
etc.
|
||||
[2] Type "make linux-3dnow" (OSS)
|
||||
or "make linux-3dnow-alsa" (ALSA).
|
||||
[3] Enjoy!
|
||||
|
||||
------------------
|
||||
Precompiled binary
|
||||
------------------
|
||||
You can get precompiled binary of mpg123 (with 3DNow! support) from
|
||||
http://hannah.ipc.miyakyo-u.ac.jp/kim/Linux/mpg123/
|
||||
|
||||
----------
|
||||
References
|
||||
----------
|
||||
Useful sources of information on optimizing 3DNow! code include:
|
||||
- AMD 3DNow! Technology Manual (Publication #21928)
|
||||
English: http://www.amd.com/K6/k6docs/pdf/21928d.pdf
|
||||
(Japanese: http://www.amd.com/japan/K6/k6docs/j21928c.pdf)
|
||||
- AMD-K6-2 Processor Code Optimization Application Note (Publication #21924)
|
||||
English: http://www.amd.com/K6/k6docs/pdf/21924b.pdf
|
171
libsdl2_mixer/external/mpg123-1.25.6/doc/README.gain
vendored
Normal file
171
libsdl2_mixer/external/mpg123-1.25.6/doc/README.gain
vendored
Normal file
@ -0,0 +1,171 @@
|
||||
Thomas Orgis on RVA, Gain and Pain
|
||||
|
||||
|
||||
Ok, so I'm going to add RVA/ReplayGain support... the problem there is not to read these valus from ID3 or Lame, not even to do the adjustment itself.
|
||||
The problem is more to figure out how to interpret the dB values one gets there.
|
||||
|
||||
Main players in the field of relative volume adjustment / soft gain (without modifying actual audio data):
|
||||
|
||||
http://www1.cs.columbia.edu/~cvaill/normalize/
|
||||
...writing RVA2 ID3v2tags for dB offset to user target amplitude, default being -12dB(FS)
|
||||
http://www.replaygain.org/
|
||||
...store the difference to reference of 83dB(SPL) ... somewhere
|
||||
|
||||
Both calculate some running RMS and do statistics with this - the main difference is the potentially different target level.
|
||||
Also both know two basic types of adjustment: Per track to make all tracks sound at the same sevel (track / radio) and the one with default meaning to keep the loudness relations over albums (batch / audiophile).
|
||||
|
||||
dB can mean many things and also the raw value of a PCM sample doesn't equal directly to loudness (power of a wave != amplitude).
|
||||
|
||||
So that says the ReplayGain about applying the adjustment:
|
||||
|
||||
scale=10.^(replay_gain/20);
|
||||
|
||||
luckily, this is the same that I worked out on my own for the normalize RVA values in my mixplayer script:
|
||||
|
||||
return 10**($s/20);
|
||||
|
||||
I'll take that interpretaion of dB -> linear scale factor for samples for granted, then.
|
||||
|
||||
The replay_gain value is meant in the standard to represent the offset to 83dB(SPL - depending on your amplifier...), having in mind that actual most wanted average playback level should be 83dB(SPL) (defined by movie ppl as the loudness of a -20dB(FS) signal, leaving room for louder stuff).
|
||||
But then there is the proposal to add 6dB preamp for pop music - am I judging music types with mpg123??
|
||||
These 6dB are in fact the real world since lots of programs use 89dB(SPL...) as reference.
|
||||
Thus, lame since 3.95.1 (according to MADplay's Rob Leslie who discussed with Lame ppl, verified in 3.96 source) stores the adjustment to 89dB.
|
||||
To make that all sound the same, one should add 6bB to lame <3.95.1 ReplayGain values and use later ones verbatim - achieving 89dB everytime, whatever that may mean in reality out of my speakers (my Marantz' volume knob doesn't have a scale at all - be it dB or percent;-).
|
||||
|
||||
A funny aspect of this 6dB issue is to tell lame 3.95.1 from lame 3.95
|
||||
|
||||
As for normalize... the desired playback level is essentially undefined. Ignoring that and realizing that mpg123 has no way to determine real world sound power anyway, one has to just take the provided dB values and apply with the formula above.
|
||||
The user is responsible for providing files with his desired settings... for that reason I also won't follow the ReplayGain demand/suggestion that a player should apply an average of gains of previous tracks if the current one lacks a setting.
|
||||
|
||||
So, well. Considering that ReplayGain (at least the radio one) being stored by current lame on encoding, I suppose that if there are RVA2 values in ID3v2 tags, these were added by a conscious user act and are overriding the ReplayGain ones.
|
||||
|
||||
I already read ReplayGain entries in Lame tag... should add ID3v2 parsing. Especially since the lame tag is ambignous because of the 6dB issue... I cannot distinguish 3.95.1 from 3.95 by reading the tag - frick!
|
||||
But wait... 6dB?
|
||||
|
||||
[thomas@thorvas /home/thomas-data/mpg123-neu/lame-3.96.1]$ frontend/lame --cbr -T /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3 ../testfiles/happy_man_lame-3.96.1.mp3
|
||||
ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
|
||||
LAME version 3.96.1 (http://lame.sourceforge.net/)
|
||||
Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
|
||||
Encoding /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3
|
||||
to ../testfiles/happy_man_lame-3.96.1.mp3
|
||||
Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
|
||||
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
|
||||
6371/6374 (100%)| 1:41/ 1:41| 1:47/ 1:47| 1.6353x| 0:00
|
||||
average: 128.0 kbps LR: 754 (11.83%) MS: 5620 (88.17%)
|
||||
|
||||
Writing LAME Tag...done
|
||||
ReplayGain: -7.4dB
|
||||
revmethod = 1
|
||||
encoder padding: 1728
|
||||
|
||||
[thomas@thorvas /home/thomas-data/mpg123-neu/lame-3.95.1]$ frontend/lame --cbr -T /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3 ../testfiles/happy_man.mp3
|
||||
ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
|
||||
LAME version 3.95 (http://www.mp3dev.org/)
|
||||
Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
|
||||
Encoding /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3
|
||||
to ../testfiles/happy_man.mp3
|
||||
Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
|
||||
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
|
||||
6371/6374 (100%)| 1:36/ 1:36| 1:48/ 1:48| 1.7289x| 0:00
|
||||
average: 128.0 kbps LR: 759 (11.91%) MS: 5615 (88.09%)
|
||||
|
||||
Writing LAME Tag...done
|
||||
ReplayGain: -7.4dB
|
||||
|
||||
[thomas@thorvas /home/thomas-data/mpg123-neu/lame-3.95]$ frontend/lame --cbr -T /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3 ../testfiles/happy_man_lame-3.95.mp3
|
||||
ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
|
||||
LAME version 3.95 (http://www.mp3dev.org/)
|
||||
Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
|
||||
Encoding /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3
|
||||
to ../testfiles/happy_man_lame-3.95.mp3
|
||||
Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
|
||||
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
|
||||
6371/6374 (100%)| 1:37/ 1:37| 1:43/ 1:43| 1.7041x| 0:00
|
||||
average: 128.0 kbps LR: 759 (11.91%) MS: 5615 (88.09%)
|
||||
|
||||
Writing LAME Tag...done
|
||||
ReplayGain: -13.4dB
|
||||
|
||||
|
||||
Together with the gain values read from tags:
|
||||
|
||||
3.96.1: -1.0dB (claimed -7.4dB)
|
||||
3.95: -1.0dB (claimed -7.4dB)
|
||||
3.95: -0.6dB (claimed -13.4dB)
|
||||
|
||||
So, the difference of 6dB shows in the values lame prints on the command line... but the lame tags only have 0.4dB difference and are much lower anyway - do I parse them correctly?
|
||||
|
||||
Opinion of normalize of these files: -2dB. Great. I guess the -1 is what lame really meant, then...
|
||||
|
||||
|
||||
Storage places
|
||||
==============
|
||||
|
||||
Points 1, 2 and 4 implemented to some respect.
|
||||
|
||||
|
||||
1. Lame/Info tag
|
||||
|
||||
supposedly in format according to the proposed standard - but I yet have to verify if Lame really does this.
|
||||
see http://gabriel.mp3-tech.org/mp3infotag.html
|
||||
|
||||
|
||||
2. ID3v2 RVA2 frame(s)
|
||||
|
||||
Normalize does that. Rare is the software reading that.
|
||||
I've never seen those frames since id3v2 -l doesn't know them.
|
||||
|
||||
|
||||
3. APE tags
|
||||
|
||||
Gah, another Tag format. Foobar2000 uses this as default.
|
||||
It's getting real-hy messy folks
|
||||
|
||||
|
||||
4. Per convention in ID3 tags
|
||||
|
||||
Well, I myself once used the ID3v1 comment field for storing the mix rva value (textual) ... but that is a tad too unspecific.
|
||||
I then also used user-defined ID3v2 comments like that:
|
||||
|
||||
[thomas@thorvas /home/thomas-data/mpg123-neu/svn/trunk]$ id3v2 -l /mnt/knecht_mp3/music/underworld/second_toughest_in_the_infants/02-banstyle_sappys_curry.mp3
|
||||
id3v1 tag info for /mnt/knecht_mp3/music/underworld/second_toughest_in_the_infants/02-banstyle_sappys_curry.mp3:
|
||||
Title : banstyle sappys curry Artist: underworld
|
||||
Album : second toughest in the infants Year: 0 , Genre: Other (12)
|
||||
Comment: Created by Grip Track: 2
|
||||
id3v2 tag info for /mnt/knecht_mp3/music/underworld/second_toughest_in_the_infants/02-banstyle_sappys_curry.mp3:
|
||||
TYER (Year): 0
|
||||
TRCK (Track number/Position in set): 2
|
||||
COMM (Comments): (ID3v1 Comment)[XXX]: Created by Grip
|
||||
TCON (Content type): Other (12)
|
||||
TPE1 (Lead performer(s)/Soloist(s)): underworld
|
||||
TALB (Album/Movie/Show title): second toughest in the infants
|
||||
TIT2 (Title/songname/content description): banstyle sappys curry
|
||||
COMM (Comments): (RVA)[]: 4.3291
|
||||
COMM (Comments): (RVA_ALBUM)[]: 3.666101
|
||||
|
||||
That still doesn't look like a bad Idea to me. Not bothering with byte ordering and whatnot. Just atof(id3v2_comm_rva).
|
||||
One could still add dB, though.
|
||||
|
||||
Another convention is (rockbox mailinglist, not checked myself) used by Foobar:
|
||||
|
||||
TXXX (User defined text information): (replaygain_track_gain): -7.17 dB
|
||||
TXXX (User defined text information): (replaygain_track_peak): 1.057122
|
||||
TXXX (User defined text information): (replaygain_album_gain): -6.53 dB
|
||||
TXXX (User defined text information): (replaygain_album_peak): 1.107456
|
||||
|
||||
So what are custom comment fields for when there are also custom text fields? They look very similar to me.
|
||||
|
||||
|
||||
5. Leave the haunted music file alone and store metadata externally.
|
||||
|
||||
That's the only sane way for stuff like album art... and it's the way I do it in my music archive. the wrapper script reads the adjustment values and then sets an adjusted volume.
|
||||
That's fine for my mixing daemon that manupulates the pcm data anyway, but it would be nice to have this functionality in the minimalist console mode. too.
|
||||
Even more since it can be done without additional cpu power during decoding (well, one-time set up of the decode tables is needed for every track) similar to the equalizer.
|
||||
I could simply start with text files with lines like
|
||||
|
||||
RVA_MIX: 3.4dB
|
||||
RVA_ALBUM: 1.7dB
|
||||
|
||||
Prob here is that the effort to open and parse that extra file may hinder gapless decoding between tracks...
|
||||
Well, one could parse all metadata files for a list of tracks before playback starts.
|
||||
But all this won't work for streams via stdin (hm, one could argue if the stream needs RVA at all).
|
218
libsdl2_mixer/external/mpg123-1.25.6/doc/README.remote
vendored
Normal file
218
libsdl2_mixer/external/mpg123-1.25.6/doc/README.remote
vendored
Normal file
@ -0,0 +1,218 @@
|
||||
Control interface to generic frontends
|
||||
|
||||
The generic remote interface allows frontends to easily control
|
||||
mpg123 by commands through stdin/stdout. To start the generic
|
||||
remote interface, start mpg123 with parameter -R.
|
||||
|
||||
In case of a frontend that starts mpg123 with the -s option to read the audio from stdout, the --remote-err option is automatically activated to send responses to stderr so that stdout stays clean for audio.
|
||||
|
||||
(Still the case?)
|
||||
As an example it's used by IRMP3, a tool that allows you to
|
||||
control mpg123 with a standard infrared remote control. See
|
||||
http://www.fasta.fh-dortmund.de/users/andy/irmp3/ for more
|
||||
information.
|
||||
|
||||
You can also specify --fifo <path> to create a named pipe at <path> and listen on that for commands instead stdin.
|
||||
That way, you can deliberately control mpg123 by echoing into the named pipe from any terminal / program.
|
||||
The command respones are still sent to standard out or standard error (depending on -s or --remote-err switches).
|
||||
|
||||
|
||||
COMMAND CODES
|
||||
-------------
|
||||
|
||||
You can get this info via the control command "help".
|
||||
|
||||
HELP/H: command listing (LONG/SHORT forms), command case insensitve
|
||||
|
||||
LOAD/L <trackname>: load and start playing resource <trackname>
|
||||
|
||||
LOADPAUSED/LP <trackname>: load but do not start playing resource <trackname>
|
||||
|
||||
LOADLIST/LL <entry> <url>: load a playlist from given <url>, and display its entries, optionally load and play one of these specificed by the integer <entry> (<0: just list, 0: play last track, >0:play track with that position in list)
|
||||
|
||||
PAUSE/P: pause playback
|
||||
|
||||
STOP/S: stop playback (closes file)
|
||||
|
||||
JUMP/J <frame>|<+offset>|<-offset>|<[+|-]seconds>s: jump to mpeg frame <frame> or change position by offset, same in seconds if number followed by "s"
|
||||
|
||||
VOLUME/V <percent>: set volume in % (0..100...); float value
|
||||
|
||||
RVA off|(mix|radio)|(album|audiophile): set rva mode
|
||||
|
||||
EQ/E <channel> <band> <value>: set equalizer value for frequency band 0 to 31 on channel 1 (left) or 2 (right) or 3 (both)
|
||||
|
||||
EQFILE <filename>: load EQ settings from a file
|
||||
|
||||
SHOWEQ: show all equalizer settings (as <channel> <band> <value> lines in a SHOWEQ block (like TAG))
|
||||
|
||||
SEEK/K <sample>|<+offset>|<-offset>: jump to output sample position <samples> or change position by offset
|
||||
|
||||
SCAN: scan through the file, building seek index
|
||||
|
||||
SAMPLE: print out the sample position and total number of samples
|
||||
|
||||
SEQ <bass> <mid> <treble>: simple eq setting...
|
||||
|
||||
PITCH <[+|-]value>: adjust playback speed (+0.01 is 1 % faster)
|
||||
|
||||
SILENCE: be silent during playback (meaning silence in text form)
|
||||
|
||||
STATE: Print auxilliary state info in several lines (just try it to see what info is there).
|
||||
|
||||
TAG/T: Print all available (ID3) tag info, for ID3v2 that gives output of all collected text fields, using the ID3v2.3/4 4-character names.
|
||||
The output is multiple lines, begin marked by "@T {", end by "@T }".
|
||||
ID3v1 data is like in the @I info lines (see below), just with "@T" in front.
|
||||
An ID3v2 data field is introduced via ([ ... ] means optional):
|
||||
@T ID3v2.<NAME>[ [lang(<LANG>)] desc(<description>)]:
|
||||
The lines of data follow with "=" prefixed:
|
||||
@T =<one line of content in UTF-8 encoding>
|
||||
meaning of the @S stream info:
|
||||
|
||||
S <mpeg-version> <layer> <sampling freq> <mode(stereo/mono/...)> <mode_ext> <framesize> <stereo> <copyright> <error_protected> <emphasis> <bitrate> <extension> <vbr(0/1=yes/no)>
|
||||
The @I lines after loading a track give some ID3 info, the format:
|
||||
@I ID3:artist album year comment genretext
|
||||
where artist,album and comment are exactly 30 characters each, year is 4 characters, genre text unspecified.
|
||||
You will encounter "@I ID3.genre:<number>" and "@I ID3.track:<number>".
|
||||
Then, there is an excerpt of ID3v2 info in the structure
|
||||
@I ID3v2.title:Blabla bla Bla
|
||||
for every line of the "title" data field. Likewise for other fields (author, album, etc).
|
||||
|
||||
|
||||
RESPONSE CODES
|
||||
--------------
|
||||
|
||||
Note: mpg123 returns errors on stderr, so your frontend should
|
||||
look not only at stdout but also at stderr for responses.
|
||||
It is a good idea to use --remote-err and just look at stderr.
|
||||
|
||||
@R MPG123 (ThOr) v7
|
||||
Startup version message. Everything after MPG123 is auxilliary information about behaviour and command support, ID3v2 tag support is new in v3.
|
||||
|
||||
@I ID3:<a><b><c>
|
||||
Status message after loading a song (ID3 song info)
|
||||
a = title (exactly 30 chars)
|
||||
b = artist (exactly 30 chars)
|
||||
c = album (exactly 30 chars)
|
||||
d = year (exactly 4 chars)
|
||||
e = comment (exactly 30 chars)
|
||||
f = genre (string)
|
||||
|
||||
@I ID3.genre:<number>
|
||||
@I ID3.track:<number>
|
||||
Optional lines with additional ID3v1 info (if present): Genre ID and track number in set.
|
||||
|
||||
@I ID3v2.title:<text>
|
||||
After loading a track with ID3v2 info, such lines occur for every line of the "title" data field and likewise for other fields (author, album, etc).
|
||||
|
||||
@I <a>
|
||||
Status message after loading a song (no ID3 song info)
|
||||
a = filename without path and extension
|
||||
|
||||
@I LISTENTRY <n>: <url>
|
||||
printout of playlists loaded with LOADLIST
|
||||
|
||||
@S <a> <b> ...
|
||||
Stream info at beginning of playback, meaning
|
||||
S <mpeg-version> <layer> <sampling freq> <mode(stereo/mono/...)> <mode_ext> <framesize> <stereo> <copyright> <error_protected> <emphasis> <bitrate> <extension> <vbr(0/1=yes/no)>
|
||||
|
||||
@S <a> <b> <c> <d> <e> <f> <g> <h> <i> <j> <k> <l>
|
||||
Status message after loading a song (stream info)
|
||||
a = mpeg type (string)
|
||||
b = layer (int)
|
||||
c = sampling frequency (int)
|
||||
d = mode (string)
|
||||
e = mode extension (int)
|
||||
f = framesize (int)
|
||||
g = stereo (int)
|
||||
h = copyright (int)
|
||||
i = error protection (int)
|
||||
j = emphasis (int)
|
||||
k = bitrate (int)
|
||||
l = extension (int)
|
||||
|
||||
@F <a> <b> <c> <d>
|
||||
Status message during playing (frame info)
|
||||
a = framecount (int)
|
||||
b = frames left this song (int)
|
||||
c = seconds (float)
|
||||
d = seconds left (float)
|
||||
|
||||
@P <a>
|
||||
Playing status
|
||||
a = 0: playing stopped
|
||||
a = 1: playing paused
|
||||
a = 2: playing unpaused
|
||||
|
||||
@E <a>
|
||||
An error occured
|
||||
Errors may be also reported by mpg123 through
|
||||
stderr (without @E)
|
||||
a = error message (string)
|
||||
|
||||
@J <n>
|
||||
Jumped to frame n.
|
||||
|
||||
@RVA <mode>
|
||||
Switched to specified RVA mode.
|
||||
|
||||
@V <volume>%
|
||||
Set volume to specified value (float, percent).
|
||||
|
||||
@<x> : <y> : <z>
|
||||
Set equalizer value z for band y of channel x.
|
||||
|
||||
@bass: <b> mid: <m> treble: <t>
|
||||
Set simple equalizer control for bass, mid, treble.
|
||||
|
||||
@T <response from TAG command>
|
||||
The output is multiple lines, begin marked by "@T {", end by "@T }".
|
||||
ID3v1 data is like in the @I info lines, just with "@T" in front.
|
||||
An ID3v2 data field is introduced via ([ ... ] means optional):
|
||||
@T ID3v2.<NAME>[ [lang(<LANG>)] desc(<description>)]:
|
||||
The lines of data follow with "=" prefixed:
|
||||
@T =<one line of content in UTF-8 encoding>
|
||||
|
||||
|
||||
EQUALIZER CONTROL (History)
|
||||
---------------------------
|
||||
|
||||
WARNING: The interpretation of the command arguments changed. The channel is either 1 or 2 or 3 (left, right, both).
|
||||
It used to be 0 or 1 for left or right but the change slipped through during libmpg123 work and now it is a fact.
|
||||
Sorry.
|
||||
|
||||
Cold Feet Audio Patch for MPG123
|
||||
|
||||
10.07.2002
|
||||
|
||||
This is a dirty little hack to enable the equalizer in mpg123's
|
||||
generic_control interface. It works like this, there are two
|
||||
different channels on the equalizer and 32 frequencys.
|
||||
|
||||
The hack just enables mpg123's built in equalizer to run real-time.
|
||||
We haven't built in any capability to save the eq, you're frontend
|
||||
will have to handle that part, and init the eq on the startup of
|
||||
mpg123.
|
||||
|
||||
K, it works like this:
|
||||
|
||||
#./mpg123 -R - <---- This command will start mpg123 in 'frontend' mode.
|
||||
|
||||
If you want to send it some eq values you'd send it:
|
||||
eq X Y V[ENTER]
|
||||
|
||||
X = The channel. It can be either 0 or 1. I haven't put any error checking
|
||||
in, so it probably wouldn't be a good idea to go out of bounds. (integer)
|
||||
Y = This is the frequency, it can be 0 to 31. 0 being closer to treble and
|
||||
31 being closer to bass. (integer)
|
||||
V = The raw value of your equalizer setting. I've found that the values work
|
||||
best between 0.00 and 3.00. When mpg123 starts up, all of them are set
|
||||
to 1.00.
|
||||
|
||||
OK, have fun! If you have any questions or found some bugs, please contact
|
||||
nutcase@dtmf.org
|
||||
|
||||
Thanks,
|
||||
nut
|
||||
|
||||
Note by Thomas Orgis: The contact appears to be dead.
|
270
libsdl2_mixer/external/mpg123-1.25.6/doc/ROAD_TO_LGPL
vendored
Normal file
270
libsdl2_mixer/external/mpg123-1.25.6/doc/ROAD_TO_LGPL
vendored
Normal file
@ -0,0 +1,270 @@
|
||||
The License of mpg123
|
||||
=====================
|
||||
|
||||
by Thomas Orgis <thomas@orgis.org>
|
||||
|
||||
1. Story: The Odyssey, The Decision
|
||||
-----------------------------------
|
||||
|
||||
This is the 17th of July in the year 2006, after half a year of preparation and the contributor email campaign running for over 3 months, I'm going to draw a conclusion about the licensing of the mpg123 project.
|
||||
|
||||
|
||||
The license conditions of mpg123 have been subject to dispute and rejection by parts of the free software world in the past...
|
||||
We want to have it straight now.
|
||||
Michael doesn't have much freetime to maintain the code and bother with requests by companies wanting to use mpglib.
|
||||
So, he already decided to place mpglib under LGPL and mpg123 under GPL in the past.
|
||||
Now, after I applied for taking over maintainership we decided on placing as much code of the whole project as possible under LGPL to ease future code migration and merging between mpg123 and mpglib.
|
||||
|
||||
That decision was followed by a lot of work to track down as many contributors to both Michael's development tree and my -thor one as possible to ask them for explicit LGPL support statements.
|
||||
I wrote to every Name/eMail address I could track down (including internet search for new addresses), regardless of the question if there indeed is some code left by that person.
|
||||
I asked them to utter any problem they may have with LGPL license as well as contacting me if there are _no_ issues.
|
||||
|
||||
Of course, without having to ask again, supporters of LGPL are the initial author and the two current maintainers:
|
||||
|
||||
Michael Hipp
|
||||
Nicholas J. Humfrey
|
||||
Thomas Orgis
|
||||
|
||||
Also, new stuff was included with explicit LGPL permission from
|
||||
|
||||
Adrian Bacon
|
||||
Romain Dolbeau
|
||||
Guillaume Outters
|
||||
|
||||
Plus there is stuff pending with permission from
|
||||
|
||||
Zuxy Meng
|
||||
|
||||
Now for the folks having made suggestions and contributions over the years...
|
||||
In the first round starting in March 2006 I wrote the initial mail to anyone I could get. That resulted in some positive responses - examples:
|
||||
|
||||
"I don't remember what I did, but LGPL is fine by me."
|
||||
|
||||
"No problem for me."
|
||||
|
||||
"Any code I may have contributed to the mpg123 project at any time in the
|
||||
past are hereby licensed to you under the GNU Lesser General Public"
|
||||
|
||||
"it's fine with me if mpg123 goes LGPL.
|
||||
However, my contribution to mpg123 was very minor, and I'm not even sure if
|
||||
any of my code is still in the current version."
|
||||
|
||||
A good number of eMail addresses is just broken (years have passed...) and another good number of addresses are either totally unknown or not known to be good or bad since no response (not even bounce - thanks, spam!) came back in over 3 months.
|
||||
|
||||
Some statistics for the first run: 86 total , 15 positive, 37 broken email, 34 unknown
|
||||
|
||||
Positive:
|
||||
Andreas Neuhaus
|
||||
Chris Butler
|
||||
Colin Watson
|
||||
Daniel Kobras
|
||||
Daniel O'Connor
|
||||
Daniel Skarda
|
||||
Erik B. Andersen
|
||||
Helge Deller
|
||||
Juergen Schoew
|
||||
Martin Denn
|
||||
Munechika SUMIKAWA
|
||||
Oliver Fromme
|
||||
Petr Stehlik
|
||||
Robert Bihlmeyer
|
||||
Samuel Audet
|
||||
Shane Wegner
|
||||
Stefan Bieschewski
|
||||
Steven Schultz
|
||||
Tillmann Steinbrecher
|
||||
Tomas Oegren
|
||||
Tommi Virtanen
|
||||
|
||||
Then, an investigation of the code revealed a core of people having actually left traces in the code.
|
||||
Some more effort was put in tracking them down, with the partial success of having found some new, working email addresses and thus having some more positive responses .
|
||||
But also, it showed that the main number of people is not reachable anymore.
|
||||
|
||||
Creators (of a whole file, driver...): 16 total, 5 positive, 2 broken email, 9 unknown
|
||||
|
||||
Positive:
|
||||
Andreas Neuhaus
|
||||
Juergen Schoew
|
||||
Oliver Fromme
|
||||
Petr Stehlik
|
||||
Samuel Audet
|
||||
|
||||
Modders: 7 total, 1 positive, 2 broken mail, 4 unknown
|
||||
|
||||
Positive:
|
||||
Tomas Oegren
|
||||
|
||||
|
||||
That shows two things:
|
||||
|
||||
1. It's impossible to get a response from everyone having contributed in some way.
|
||||
2. Everyone who I reached supports the license change to LGPL
|
||||
|
||||
|
||||
So, for the sake of getting a reasonable step forward, I'm going to close the case.
|
||||
There are three categories of code:
|
||||
|
||||
1. written by Michael or some other contributor who explicitly supports LGPL
|
||||
|
||||
Clear case: LGPL
|
||||
|
||||
2. contributed years ago without license notice
|
||||
|
||||
The grounded assumption of can be made that the contributor accepted Michael's conditions, esp. the part about the software being available without cost.
|
||||
Furthermore they gave the code into Michael's hands or placed patches in the internet without any claims concerning commercial uses - wich were not covered by the old COPYING file.
|
||||
Based on the assumption of acceptance for the mpg123 COPYING file and the included rule of Michael's decision for any further use, this code is to be placed under LGPL by Michael's decision.
|
||||
|
||||
3. contributed with notice
|
||||
|
||||
Some code includes a note about it being GPL. Well, one has to respect that.
|
||||
|
||||
|
||||
That results in the bulk of mpg123 being LGPL and possibly some parts GPL only.
|
||||
|
||||
|
||||
2. The Inventory
|
||||
----------------
|
||||
|
||||
I will now examine the files of the mpg123 svn trunk as of 17.07.2006 with their respective legal status:
|
||||
|
||||
Stuff added by current maintainers, thus being LGPL:
|
||||
|
||||
scripts/debugdef.pl
|
||||
AUTHORS
|
||||
autogen.sh
|
||||
configure.ac
|
||||
Makefile.am
|
||||
MakeLegacy.sh
|
||||
src/audio_jack.c
|
||||
src/audio_libao.c
|
||||
src/Makefile.am
|
||||
src/audio_alsa09.c
|
||||
src/config.h.legacy
|
||||
src/debug.h
|
||||
src/layer3.h
|
||||
|
||||
Non-Code files from Michael, maintainers or just trivial content (safely LGPL, then):
|
||||
|
||||
BENCHMARKING
|
||||
BUGS
|
||||
CHANGES
|
||||
equalize.dat
|
||||
INSTALL
|
||||
mpg123.1
|
||||
COPYING
|
||||
TODO
|
||||
README
|
||||
README.3DNOW
|
||||
README.cfa
|
||||
README.new
|
||||
README.remote
|
||||
README.thor
|
||||
README.WIN32
|
||||
test.pl
|
||||
BENCHMARKING.thor
|
||||
CONTACT
|
||||
|
||||
sources under LGPLv2.1:
|
||||
|
||||
by Michael:
|
||||
|
||||
audio.c
|
||||
audio_dummy.c
|
||||
audio.h
|
||||
audio_hp.c
|
||||
audio_oss.c
|
||||
audio_sun.c
|
||||
common.c
|
||||
common.h
|
||||
dct64.c
|
||||
dct64_i386.c
|
||||
decode_2to1.c
|
||||
decode_4to1.c
|
||||
decode.c
|
||||
decode_i386.c
|
||||
decode_ntom.c
|
||||
Makefile.legacy
|
||||
equalizer.c
|
||||
getbits.c
|
||||
getbits.h
|
||||
huffman.h
|
||||
l2tables.h
|
||||
layer1.c
|
||||
layer2.c
|
||||
layer3.c
|
||||
mpg123.c
|
||||
mpg123.h
|
||||
readers.c
|
||||
system.c
|
||||
tabinit.c
|
||||
term.c
|
||||
term.h
|
||||
|
||||
by contributors:
|
||||
|
||||
audio_aix.c: Juergen Schoew, Tomas Oegren, Niklas Edmundsson
|
||||
audio_alib.c: Erwan Ducroquet
|
||||
audio_esd.c: Eric B. Mitchell
|
||||
audio_macosx.c: Guillaume Outters
|
||||
audio_mint.c: Petr Stehlik
|
||||
audio_nas.c: Martin Denn
|
||||
audio_os2.c: Samuel Audet
|
||||
audio_sgi.c: Thomas Woerner
|
||||
audio_win32.c: Tony Million
|
||||
buffer.c: Oliver Fromme
|
||||
buffer.h: Daniel Kobras / Oliver Fromme
|
||||
control_generic.c: Andreas Neuhaus, Michael Hipp, Thomas Orgis
|
||||
dct36_3dnow.s: Syuuhei Kashiyama
|
||||
dct64_3dnow.s: Syuuhei Kashiyama
|
||||
dct64_altivec.c: Romain Dolbeau
|
||||
dct64_i486.c: Fabrice Bellard
|
||||
decode_3dnow.s: Syuuhei Kashiyama
|
||||
decode_i486.c: Fabrice Bellard
|
||||
decode_i586_dither.s: Stefan Bieschewski, Adrian Bacon
|
||||
decode_i586.s: Stefan Bieschewski
|
||||
decode_MMX.s: higway
|
||||
dct64_MMX.s: higway
|
||||
tabinit_MMX.s: higway
|
||||
equalizer_3dnow.s: KIMURA Takuhiro
|
||||
genre.h: Shane Wegner
|
||||
getcpuflags.s: KIMURA Takuhiro
|
||||
getlopt.c: Oliver Fromme
|
||||
getlopt.h: Oliver Fromme
|
||||
httpget.c: Oliver Fromme
|
||||
wav.c: Samuel Audet
|
||||
xfermem.c: Oliver Fromme
|
||||
xfermem.h: Oliver Fromme
|
||||
Makefile.win32: Michael Hipp / Tony Million
|
||||
|
||||
GPLv2
|
||||
|
||||
audio_alsa.c: by Anders Semb Hermansen, Jaroslav Kysela, Ville Syrjala
|
||||
|
||||
|
||||
To be removed from distribution and thus not licensed in any special way:
|
||||
|
||||
precompiled/
|
||||
tools/
|
||||
|
||||
The mpglib source is not part of the core mpg123 distribution anymore - it's written by Michael, it's LGPL, it shall become a real library with own distribution and be married to mpg123 again.
|
||||
|
||||
|
||||
3. Conclusion
|
||||
-------------
|
||||
|
||||
The decoder core Michael's work and under LGPL without question.
|
||||
Oliver Fromme is more of a co-author than "just" a project contributor, but he explicitly agreed to LGPL anyway.
|
||||
So, the core functionality is really safe without doubt.
|
||||
|
||||
Contributors added mainly output drivers (perhaps coming from some freely available reference implementation) and CPU optimizations.
|
||||
Having explicit permission from a good deal of major contributors, the LGPL is quite comfortable here, too.
|
||||
I won't hide that there are explicit statements missing for MMX and 3DNow! optimizations (and the i486 opt, for that matter) due to unreachable authors.
|
||||
But I feel safe to make it LGPL there, too, because of the argument of them having given the code to Michael to incorporate it into mpg123 - without any own terms, implying that they agree to Michael's terms.
|
||||
|
||||
There is one file left that carries an explicit GPL (_no_ LGPL) statement: the old alsa output. This file won't work on current Linux systems, anyway.
|
||||
Alsa is available through libao. There will probably be a new alsa output.
|
||||
So, even that one GPL exception may vanish in future, but I'll keep it for now as there may be someone who still has an alsa installation for that it works.
|
||||
|
||||
For now that means mpg123 is LGPL with the exception of one file that is GPL only.
|
||||
|
||||
End.
|
13
libsdl2_mixer/external/mpg123-1.25.6/doc/THANKS
vendored
Normal file
13
libsdl2_mixer/external/mpg123-1.25.6/doc/THANKS
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
There are authors who write code and there are people who point us to what code to write, show us our errors and generally are trying hard to compensate the time the developers spent coding and not actually using the software.
|
||||
These people are very valuable, indeed - let's thank our
|
||||
|
||||
Testers (alphapetical):
|
||||
|
||||
- Gabor Z. Papp
|
||||
- "Gates Fan"
|
||||
- JonY
|
||||
- Serge Simon and the R.O.M. 106.5 FM Team (http://www.rom.lu/)
|
||||
who motivated the --loop and --timeout modes and furthermore supported the maintainer with a donation on sf.net and a real bottle of wine from Luxembourg!
|
||||
- Willy Tarreau
|
||||
|
||||
Heck, let's thank all of you who contributed bug reports, suggestions... those who took mpg123 source and compiled it on uncommon platforms.
|
8
libsdl2_mixer/external/mpg123-1.25.6/doc/TODO
vendored
Normal file
8
libsdl2_mixer/external/mpg123-1.25.6/doc/TODO
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
From Michael (some time after/around pre-0.59s):
|
||||
|
||||
- add CRC check.
|
||||
- optimize layer2.c:
|
||||
step_two: fraction as pointer ..
|
||||
process first channel 0 than channel 1
|
||||
copy channel 0 to channel 1 for: i >= jsbound
|
||||
- MPEG system stream decoder
|
21
libsdl2_mixer/external/mpg123-1.25.6/doc/doxy_examples.c
vendored
Normal file
21
libsdl2_mixer/external/mpg123-1.25.6/doc/doxy_examples.c
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
/** \defgroup mpg123_examples example programs using libmpg123 and libout123
|
||||
@{ */
|
||||
|
||||
/** \file mpg123_to_out123.c A simple MPEG audio to WAV converter using libmpg123 (read) and libout123 (write).
|
||||
...an excersize on two simple APIs. */
|
||||
|
||||
/** \file mpglib.c Example program mimicking the old mpglib test program.
|
||||
It takes an MPEG bitstream from standard input and writes raw audio to standard output.
|
||||
This is an use case of the mpg123_decode() in and out function in the feeder mode, quite close to classic mpglib usage and thus a template to convert from that to libmpg123.
|
||||
*/
|
||||
|
||||
/** \file scan.c Example program that examines the exact length of an MPEG file.
|
||||
It opens a list of files and does mpg123_scan() on each and reporting the mpg123_length() before and after that. */
|
||||
|
||||
/** \file id3dump.c Parse ID3 info and print to standard output. */
|
||||
|
||||
/** \file extract_frames.c Parse stream and extract only the valid MPEG frames to standard output. */
|
||||
|
||||
/** \file feedseek.c Fuzzy feeder seeking. */
|
||||
|
||||
/* @} */
|
1
libsdl2_mixer/external/mpg123-1.25.6/doc/doxyfoot.xhtml
vendored
Normal file
1
libsdl2_mixer/external/mpg123-1.25.6/doc/doxyfoot.xhtml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<!--#include virtual="/footer.html" -->
|
52
libsdl2_mixer/external/mpg123-1.25.6/doc/doxygen.conf
vendored
Normal file
52
libsdl2_mixer/external/mpg123-1.25.6/doc/doxygen.conf
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
|
||||
# This file describes the settings to be used by the documentation system
|
||||
# doxygen (www.doxygen.org) for a project
|
||||
#
|
||||
|
||||
PROJECT_NAME = "libmpg123 & libout123"
|
||||
OUTPUT_DIRECTORY = .
|
||||
CREATE_SUBDIRS = NO
|
||||
OUTPUT_LANGUAGE = English
|
||||
FULL_PATH_NAMES = NO
|
||||
|
||||
INPUT = \
|
||||
doxy_examples.c \
|
||||
examples/mpg123_to_out123.c \
|
||||
examples/mpglib.c \
|
||||
examples/scan.c \
|
||||
examples/feedseek.c \
|
||||
examples/extract_frames.c \
|
||||
examples/id3dump.c \
|
||||
../src/libmpg123/mpg123.h \
|
||||
../src/libmpg123/fmt123.h \
|
||||
../src/libout123/out123.h
|
||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
||||
EXTRACT_ALL = NO
|
||||
HIDE_UNDOC_MEMBERS = NO
|
||||
QUIET = YES
|
||||
WARNINGS = YES
|
||||
SOURCE_BROWSER = YES
|
||||
|
||||
GENERATE_HTML = YES
|
||||
HTML_OUTPUT = html
|
||||
DISABLE_INDEX = YES
|
||||
SORT_MEMBER_DOCS = NO
|
||||
SORT_BRIEF_DOCS = NO
|
||||
ENUM_VALUES_PER_LINE = 2
|
||||
|
||||
|
||||
ENABLE_PREPROCESSING = YES
|
||||
MACRO_EXPANSION = YES
|
||||
EXPAND_ONLY_PREDEF = YES
|
||||
PREDEFINED = EXPORT=
|
||||
|
||||
GENERATE_HTML = YES
|
||||
GENERATE_LATEX = NO
|
||||
GENERATE_RTF = NO
|
||||
GENERATE_MAN = YES
|
||||
MAN_LINKS = YES
|
||||
GENERATE_XML = NO
|
||||
|
||||
HTML_HEADER = doxyhead.xhtml
|
||||
HTML_FOOTER = doxyfoot.xhtml
|
||||
HTML_FILE_EXTENSION = .shtml
|
17
libsdl2_mixer/external/mpg123-1.25.6/doc/doxyhead.xhtml
vendored
Normal file
17
libsdl2_mixer/external/mpg123-1.25.6/doc/doxyhead.xhtml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
<!--#include virtual="/header.html" -->
|
||||
<title>$title</title>
|
||||
<link href="/doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<!--#include virtual="/top.shtml" -->
|
||||
<h1>API documentation for libmpg123 and libout123</h1>
|
||||
<div style="padding:1em;">
|
||||
<strong>Note:</strong>
|
||||
This API doc is automatically generated from the current development version that you can get via Subversion or as a daily snapshot from <a href="http://mpg123.org/snapshot">http://mpg123.org/snapshot</a>.
|
||||
There may be differences (additions) compared to the latest stable release. See
|
||||
<a href="http://mpg123.org/cgi-bin/viewvc.cgi/trunk/NEWS.libmpg123?view=markup">NEWS.libmpg123</a>,
|
||||
<a href="http://mpg123.org/cgi-bin/viewvc.cgi/trunk/NEWS.libout123?view=markup">NEWS.libout123</a>,
|
||||
and the overall <a href="http://mpg123.org/cgi-bin/viewvc.cgi/trunk/NEWS?view=markup">NEWS</a> file on libmpg123 versions and important changes between them.<br />
|
||||
Let me emphasize that the policy for libmpg123 and libout123 is to always stay backwards compatible -- only <em>additions</em> are planned (and it's not yet planned to change the plans;-).
|
||||
</div>
|
||||
<div> <!-- for some reason, doxygen closes a div where non is open, bug in my version? -->
|
41
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/dump_seekindex.c
vendored
Normal file
41
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/dump_seekindex.c
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
/*
|
||||
dump_seekindex: Scan a mpeg file and dump its seek index.
|
||||
|
||||
copyright 2010 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
initially written by Patrick Dehne
|
||||
*/
|
||||
|
||||
#include <mpg123.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
mpg123_handle *m;
|
||||
off_t* offsets;
|
||||
off_t step;
|
||||
size_t fill, i;
|
||||
|
||||
if(argc != 2)
|
||||
{
|
||||
fprintf(stderr, "\nI will dump the frame index of an MPEG audio file.\n");
|
||||
fprintf(stderr, "\nUsage: %s <mpeg audio file>\n\n", argv[0]);
|
||||
return -1;
|
||||
}
|
||||
mpg123_init();
|
||||
m = mpg123_new(NULL, NULL);
|
||||
mpg123_param(m, MPG123_RESYNC_LIMIT, -1, 0);
|
||||
mpg123_param(m, MPG123_INDEX_SIZE, -1, 0);
|
||||
mpg123_open(m, argv[1]);
|
||||
mpg123_scan(m);
|
||||
|
||||
mpg123_index(m, &offsets, &step, &fill);
|
||||
for(i=0; i<fill;i++) {
|
||||
printf("Frame number %d: file offset %d\n", i * step, offsets[i]);
|
||||
}
|
||||
|
||||
mpg123_close(m);
|
||||
mpg123_delete(m);
|
||||
mpg123_exit();
|
||||
return 0;
|
||||
}
|
92
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/extract_frames.c
vendored
Normal file
92
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/extract_frames.c
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
extract_frams: utlize the framebyframe API and mpg123_framedata to extract the MPEG frames out of a stream (strip off anything else).
|
||||
|
||||
copyright 2011 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
initially written by Thomas Orgis
|
||||
*/
|
||||
|
||||
#include <mpg123.h>
|
||||
|
||||
/* unistd.h is not available under MSVC,
|
||||
io.h defines the read and write functions */
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int do_work(mpg123_handle *m);
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int ret = 0;
|
||||
mpg123_handle *m;
|
||||
|
||||
mpg123_init();
|
||||
m = mpg123_new(NULL, &ret);
|
||||
|
||||
if(m == NULL)
|
||||
{
|
||||
fprintf(stderr, "Cannot create handle: %s", mpg123_plain_strerror(ret));
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "I'll take your dirty MPEG audio from standard input and will write the extracted pure MPEG data to standard output.\n");
|
||||
if(argc > 1 && strcmp(argv[1], "--noinfo") == 0)
|
||||
{
|
||||
fprintf(stderr, "Enabling parsing/consuming of the Info frame so that it will not appear in output.\n");
|
||||
ret = mpg123_param(m, MPG123_REMOVE_FLAGS, MPG123_IGNORE_INFOFRAME, 0.);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "If you'd have given --noinfo as argument, I would omit a LAME/Xing info frame.\n");
|
||||
ret = mpg123_param(m, MPG123_ADD_FLAGS, MPG123_IGNORE_INFOFRAME, 0.);
|
||||
}
|
||||
if(ret == 0) ret = do_work(m);
|
||||
|
||||
if(ret != 0) fprintf(stderr, "Some error occured: %s\n", mpg123_strerror(m));
|
||||
|
||||
|
||||
mpg123_delete(m); /* Closes, too. */
|
||||
}
|
||||
mpg123_exit();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int do_work(mpg123_handle *m)
|
||||
{
|
||||
int ret;
|
||||
size_t count = 0;
|
||||
ret = mpg123_open_fd(m, STDIN_FILENO);
|
||||
if(ret != MPG123_OK) return ret;
|
||||
|
||||
while( (ret = mpg123_framebyframe_next(m)) == MPG123_OK || ret == MPG123_NEW_FORMAT )
|
||||
{
|
||||
unsigned long header;
|
||||
unsigned char *bodydata;
|
||||
size_t bodybytes;
|
||||
if(mpg123_framedata(m, &header, &bodydata, &bodybytes) == MPG123_OK)
|
||||
{
|
||||
/* Need to extract the 4 header bytes from the native storage in the correct order. */
|
||||
unsigned char hbuf[4];
|
||||
int i;
|
||||
for(i=0; i<4; ++i) hbuf[i] = (unsigned char) ((header >> ((3-i)*8)) & 0xff);
|
||||
|
||||
/* Now write out both header and data, fire and forget. */
|
||||
write(STDOUT_FILENO, hbuf, 4);
|
||||
write(STDOUT_FILENO, bodydata, bodybytes);
|
||||
fprintf(stderr, "%zu: header 0x%08x, %zu body bytes\n", ++count, header, bodybytes);
|
||||
}
|
||||
}
|
||||
|
||||
if(ret != MPG123_DONE)
|
||||
fprintf(stderr, "Some error occured (non-fatal?): %s\n", mpg123_strerror(m));
|
||||
|
||||
fprintf(stderr, "Done with %zu MPEG frames.\n", count);
|
||||
|
||||
return 0;
|
||||
}
|
238
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/feedseek.c
vendored
Normal file
238
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/feedseek.c
vendored
Normal file
@ -0,0 +1,238 @@
|
||||
/*
|
||||
feedseek: test program for libmpg123, showing how to use fuzzy seeking in feeder mode
|
||||
copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
*/
|
||||
|
||||
#include <mpg123.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define INBUFF 16384 * 2 * 2
|
||||
#define WAVE_FORMAT_PCM 0x0001
|
||||
#define WAVE_FORMAT_IEEE_FLOAT 0x0003
|
||||
|
||||
FILE *out;
|
||||
size_t totaloffset, dataoffset;
|
||||
long rate;
|
||||
int channels, enc;
|
||||
unsigned short bitspersample, wavformat;
|
||||
|
||||
// write wav header
|
||||
void initwav()
|
||||
{
|
||||
unsigned int tmp32 = 0;
|
||||
unsigned short tmp16 = 0;
|
||||
|
||||
fwrite("RIFF", 1, 4, out);
|
||||
totaloffset = ftell(out);
|
||||
|
||||
fwrite(&tmp32, 1, 4, out); // total size
|
||||
fwrite("WAVE", 1, 4, out);
|
||||
fwrite("fmt ", 1, 4, out);
|
||||
tmp32 = 16;
|
||||
fwrite(&tmp32, 1, 4, out); // format length
|
||||
tmp16 = wavformat;
|
||||
fwrite(&tmp16, 1, 2, out); // format
|
||||
tmp16 = channels;
|
||||
fwrite(&tmp16, 1, 2, out); // channels
|
||||
tmp32 = rate;
|
||||
fwrite(&tmp32, 1, 4, out); // sample rate
|
||||
tmp32 = rate * bitspersample/8 * channels;
|
||||
fwrite(&tmp32, 1, 4, out); // bytes / second
|
||||
tmp16 = bitspersample/8 * channels; // float 16 or signed int 16
|
||||
fwrite(&tmp16, 1, 2, out); // block align
|
||||
tmp16 = bitspersample;
|
||||
fwrite(&tmp16, 1, 2, out); // bits per sample
|
||||
fwrite("data ", 1, 4, out);
|
||||
tmp32 = 0;
|
||||
dataoffset = ftell(out);
|
||||
fwrite(&tmp32, 1, 4, out); // data length
|
||||
}
|
||||
|
||||
// rewrite wav header with final length infos
|
||||
void closewav()
|
||||
{
|
||||
unsigned int tmp32 = 0;
|
||||
unsigned short tmp16 = 0;
|
||||
|
||||
long total = ftell(out);
|
||||
fseek(out, totaloffset, SEEK_SET);
|
||||
tmp32 = total - (totaloffset + 4);
|
||||
fwrite(&tmp32, 1, 4, out);
|
||||
fseek(out, dataoffset, SEEK_SET);
|
||||
tmp32 = total - (dataoffset + 4);
|
||||
|
||||
fwrite(&tmp32, 1, 4, out);
|
||||
}
|
||||
|
||||
// determine correct wav format and bits per sample
|
||||
// from mpg123 enc value
|
||||
void initwavformat()
|
||||
{
|
||||
if(enc & MPG123_ENC_FLOAT_64)
|
||||
{
|
||||
bitspersample = 64;
|
||||
wavformat = WAVE_FORMAT_IEEE_FLOAT;
|
||||
}
|
||||
else if(enc & MPG123_ENC_FLOAT_32)
|
||||
{
|
||||
bitspersample = 32;
|
||||
wavformat = WAVE_FORMAT_IEEE_FLOAT;
|
||||
}
|
||||
else if(enc & MPG123_ENC_16)
|
||||
{
|
||||
bitspersample = 16;
|
||||
wavformat = WAVE_FORMAT_PCM;
|
||||
}
|
||||
else
|
||||
{
|
||||
bitspersample = 8;
|
||||
wavformat = WAVE_FORMAT_PCM;
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
unsigned char buf[INBUFF];
|
||||
unsigned char *audio;
|
||||
FILE *in;
|
||||
mpg123_handle *m;
|
||||
int ret, state;
|
||||
size_t inc, outc;
|
||||
off_t len, num;
|
||||
size_t bytes;
|
||||
off_t inoffset;
|
||||
inc = outc = 0;
|
||||
|
||||
if(argc < 3)
|
||||
{
|
||||
fprintf(stderr,"Please supply in and out filenames\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
mpg123_init();
|
||||
|
||||
m = mpg123_new(NULL, &ret);
|
||||
if(m == NULL)
|
||||
{
|
||||
fprintf(stderr,"Unable to create mpg123 handle: %s\n", mpg123_plain_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
|
||||
mpg123_param(m, MPG123_VERBOSE, 2, 0);
|
||||
|
||||
ret = mpg123_param(m, MPG123_FLAGS, MPG123_FUZZY | MPG123_SEEKBUFFER | MPG123_GAPLESS, 0);
|
||||
if(ret != MPG123_OK)
|
||||
{
|
||||
fprintf(stderr,"Unable to set library options: %s\n", mpg123_plain_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Let the seek index auto-grow and contain an entry for every frame
|
||||
ret = mpg123_param(m, MPG123_INDEX_SIZE, -1, 0);
|
||||
if(ret != MPG123_OK)
|
||||
{
|
||||
fprintf(stderr,"Unable to set index size: %s\n", mpg123_plain_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = mpg123_format_none(m);
|
||||
if(ret != MPG123_OK)
|
||||
{
|
||||
fprintf(stderr,"Unable to disable all output formats: %s\n", mpg123_plain_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Use float output
|
||||
ret = mpg123_format(m, 44100, MPG123_MONO | MPG123_STEREO, MPG123_ENC_FLOAT_32);
|
||||
if(ret != MPG123_OK)
|
||||
{
|
||||
fprintf(stderr,"Unable to set float output formats: %s\n", mpg123_plain_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = mpg123_open_feed(m);
|
||||
if(ret != MPG123_OK)
|
||||
{
|
||||
fprintf(stderr,"Unable open feed: %s\n", mpg123_plain_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
|
||||
in = fopen(argv[1], "rb");
|
||||
if(in == NULL)
|
||||
{
|
||||
fprintf(stderr,"Unable to open input file %s\n", argv[1]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
out = fopen(argv[2], "wb");
|
||||
if(out == NULL)
|
||||
{
|
||||
fclose(in);
|
||||
fprintf(stderr,"Unable to open output file %s\n", argv[2]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
fprintf(stderr, "Seeking...\n");
|
||||
/* That condition is tricky... parentheses are crucial... */
|
||||
while((ret = mpg123_feedseek(m, 95000, SEEK_SET, &inoffset)) == MPG123_NEED_MORE)
|
||||
{
|
||||
len = fread(buf, sizeof(unsigned char), INBUFF, in);
|
||||
if(len <= 0)
|
||||
break;
|
||||
inc += len;
|
||||
|
||||
state = mpg123_feed(m, buf, len);
|
||||
if(state == MPG123_ERR)
|
||||
{
|
||||
fprintf(stderr, "Error: %s", mpg123_strerror(m));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if(ret == MPG123_ERR)
|
||||
{
|
||||
fprintf(stderr, "Feedseek failed: %s\n", mpg123_strerror(m));
|
||||
return -1;
|
||||
}
|
||||
|
||||
fseek(in, inoffset, SEEK_SET);
|
||||
|
||||
fprintf(stderr, "Starting decode...\n");
|
||||
while(1)
|
||||
{
|
||||
len = fread(buf, sizeof(unsigned char), INBUFF, in);
|
||||
if(len <= 0)
|
||||
break;
|
||||
inc += len;
|
||||
ret = mpg123_feed(m, buf, len);
|
||||
|
||||
while(ret != MPG123_ERR && ret != MPG123_NEED_MORE)
|
||||
{
|
||||
ret = mpg123_decode_frame(m, &num, &audio, &bytes);
|
||||
if(ret == MPG123_NEW_FORMAT)
|
||||
{
|
||||
mpg123_getformat(m, &rate, &channels, &enc);
|
||||
initwavformat();
|
||||
initwav();
|
||||
fprintf(stderr, "New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
|
||||
}
|
||||
fwrite(audio, sizeof(unsigned char), bytes, out);
|
||||
outc += bytes;
|
||||
}
|
||||
|
||||
if(ret == MPG123_ERR)
|
||||
{
|
||||
fprintf(stderr, "Error: %s", mpg123_strerror(m));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stderr, "Finished\n", (unsigned long)inc, (unsigned long)outc);
|
||||
|
||||
closewav();
|
||||
fclose(out);
|
||||
fclose(in);
|
||||
mpg123_delete(m);
|
||||
mpg123_exit();
|
||||
return 0;
|
||||
}
|
178
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/id3dump.c
vendored
Normal file
178
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/id3dump.c
vendored
Normal file
@ -0,0 +1,178 @@
|
||||
/*
|
||||
id3dump: Print ID3 tags of files, scanned using libmpg123.
|
||||
|
||||
copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
initially written by Thomas Orgis
|
||||
*/
|
||||
|
||||
#include "mpg123.h"
|
||||
#include <string.h>
|
||||
#include "stdio.h"
|
||||
#include "sys/types.h"
|
||||
|
||||
/* Helper for v1 printing, get these strings their zero byte. */
|
||||
void safe_print(char* name, char *data, size_t size)
|
||||
{
|
||||
char safe[31];
|
||||
if(size>30) return;
|
||||
|
||||
memcpy(safe, data, size);
|
||||
safe[size] = 0;
|
||||
printf("%s: %s\n", name, safe);
|
||||
}
|
||||
|
||||
/* Print out ID3v1 info. */
|
||||
void print_v1(mpg123_id3v1 *v1)
|
||||
{
|
||||
safe_print("Title", v1->title, sizeof(v1->title));
|
||||
safe_print("Artist", v1->artist, sizeof(v1->artist));
|
||||
safe_print("Album", v1->album, sizeof(v1->album));
|
||||
safe_print("Year", v1->year, sizeof(v1->year));
|
||||
safe_print("Comment", v1->comment, sizeof(v1->comment));
|
||||
printf("Genre: %i", v1->genre);
|
||||
}
|
||||
|
||||
/* Split up a number of lines separated by \n, \r, both or just zero byte
|
||||
and print out each line with specified prefix. */
|
||||
void print_lines(const char* prefix, mpg123_string *inlines)
|
||||
{
|
||||
size_t i;
|
||||
int hadcr = 0, hadlf = 0;
|
||||
char *lines = NULL;
|
||||
char *line = NULL;
|
||||
size_t len = 0;
|
||||
|
||||
if(inlines != NULL && inlines->fill)
|
||||
{
|
||||
lines = inlines->p;
|
||||
len = inlines->fill;
|
||||
}
|
||||
else return;
|
||||
|
||||
line = lines;
|
||||
for(i=0; i<len; ++i)
|
||||
{
|
||||
if(lines[i] == '\n' || lines[i] == '\r' || lines[i] == 0)
|
||||
{
|
||||
char save = lines[i]; /* saving, changing, restoring a byte in the data */
|
||||
if(save == '\n') ++hadlf;
|
||||
if(save == '\r') ++hadcr;
|
||||
if((hadcr || hadlf) && hadlf % 2 == 0 && hadcr % 2 == 0) line = "";
|
||||
|
||||
if(line)
|
||||
{
|
||||
lines[i] = 0;
|
||||
printf("%s%s\n", prefix, line);
|
||||
line = NULL;
|
||||
lines[i] = save;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hadlf = hadcr = 0;
|
||||
if(line == NULL) line = lines+i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Print out the named ID3v2 fields. */
|
||||
void print_v2(mpg123_id3v2 *v2)
|
||||
{
|
||||
print_lines("Title: ", v2->title);
|
||||
print_lines("Artist: ", v2->artist);
|
||||
print_lines("Album: ", v2->album);
|
||||
print_lines("Year: ", v2->year);
|
||||
print_lines("Comment: ", v2->comment);
|
||||
print_lines("Genre: ", v2->genre);
|
||||
}
|
||||
|
||||
/* Print out all stored ID3v2 fields with their 4-character IDs. */
|
||||
void print_raw_v2(mpg123_id3v2 *v2)
|
||||
{
|
||||
size_t i;
|
||||
for(i=0; i<v2->texts; ++i)
|
||||
{
|
||||
char id[5];
|
||||
char lang[4];
|
||||
memcpy(id, v2->text[i].id, 4);
|
||||
id[4] = 0;
|
||||
memcpy(lang, v2->text[i].lang, 3);
|
||||
lang[3] = 0;
|
||||
if(v2->text[i].description.fill)
|
||||
printf("%s language(%s) description(%s)\n", id, lang, v2->text[i].description.p);
|
||||
else printf("%s language(%s)\n", id, lang);
|
||||
|
||||
print_lines(" ", &v2->text[i].text);
|
||||
}
|
||||
for(i=0; i<v2->extras; ++i)
|
||||
{
|
||||
char id[5];
|
||||
memcpy(id, v2->extra[i].id, 4);
|
||||
id[4] = 0;
|
||||
printf( "%s description(%s)\n",
|
||||
id,
|
||||
v2->extra[i].description.fill ? v2->extra[i].description.p : "" );
|
||||
print_lines(" ", &v2->extra[i].text);
|
||||
}
|
||||
for(i=0; i<v2->comments; ++i)
|
||||
{
|
||||
char id[5];
|
||||
char lang[4];
|
||||
memcpy(id, v2->comment_list[i].id, 4);
|
||||
id[4] = 0;
|
||||
memcpy(lang, v2->comment_list[i].lang, 3);
|
||||
lang[3] = 0;
|
||||
printf( "%s description(%s) language(%s): \n",
|
||||
id,
|
||||
v2->comment_list[i].description.fill ? v2->comment_list[i].description.p : "",
|
||||
lang );
|
||||
print_lines(" ", &v2->comment_list[i].text);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
mpg123_handle* m;
|
||||
if(argc < 2)
|
||||
{
|
||||
fprintf(stderr, "\nI will print some ID3 tag fields of MPEG audio files.\n");
|
||||
fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
|
||||
return -1;
|
||||
}
|
||||
mpg123_init();
|
||||
m = mpg123_new(NULL, NULL);
|
||||
|
||||
for(i=1; i < argc; ++i)
|
||||
{
|
||||
mpg123_id3v1 *v1;
|
||||
mpg123_id3v2 *v2;
|
||||
int meta;
|
||||
if(mpg123_open(m, argv[i]) != MPG123_OK)
|
||||
{
|
||||
fprintf(stderr, "Cannot open %s: %s\n", argv[i], mpg123_strerror(m));
|
||||
continue;
|
||||
}
|
||||
mpg123_scan(m);
|
||||
meta = mpg123_meta_check(m);
|
||||
if(meta & MPG123_ID3 && mpg123_id3(m, &v1, &v2) == MPG123_OK)
|
||||
{
|
||||
printf("Tag data on %s:\n", argv[i]);
|
||||
printf("\n==== ID3v1 ====\n");
|
||||
if(v1 != NULL) print_v1(v1);
|
||||
|
||||
printf("\n==== ID3v2 ====\n");
|
||||
if(v2 != NULL) print_v2(v2);
|
||||
|
||||
printf("\n==== ID3v2 Raw frames ====\n");
|
||||
if(v2 != NULL) print_raw_v2(v2);
|
||||
}
|
||||
else printf("Nothing found for %s.\n", argv[i]);
|
||||
|
||||
mpg123_close(m);
|
||||
}
|
||||
mpg123_delete(m);
|
||||
mpg123_exit();
|
||||
return 0;
|
||||
}
|
164
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/mpg123_to_out123.c
vendored
Normal file
164
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/mpg123_to_out123.c
vendored
Normal file
@ -0,0 +1,164 @@
|
||||
/*
|
||||
mpg123_to_wav.c
|
||||
|
||||
copyright 2007-2016 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
initially written by Nicholas Humfrey
|
||||
|
||||
The most complicated part is about the choices to make about output format,
|
||||
and prepare for the unlikely case a bastard mp3 might file change it.
|
||||
*/
|
||||
|
||||
#include <out123.h>
|
||||
#include <mpg123.h>
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
|
||||
void usage(const char *cmd)
|
||||
{
|
||||
printf("Usage: %s <input> [<driver> [<output> [encoding [buffersize]]]]\n"
|
||||
, cmd);
|
||||
printf( "\nPlay MPEG audio from intput file to output file/device using\n"
|
||||
"specified out123 driver, sample encoding and buffer size optional.\n\n" );
|
||||
exit(99);
|
||||
}
|
||||
|
||||
void cleanup(mpg123_handle *mh, out123_handle *ao)
|
||||
{
|
||||
out123_del(ao);
|
||||
/* It's really to late for error checks here;-) */
|
||||
mpg123_close(mh);
|
||||
mpg123_delete(mh);
|
||||
mpg123_exit();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
mpg123_handle *mh = NULL;
|
||||
out123_handle *ao = NULL;
|
||||
char *infile = NULL;
|
||||
char *driver = NULL;
|
||||
char *outfile = NULL;
|
||||
unsigned char* buffer = NULL;
|
||||
const char *encname;
|
||||
size_t buffer_size = 0;
|
||||
size_t done = 0;
|
||||
int channels = 0;
|
||||
int encoding = 0;
|
||||
int framesize = 1;
|
||||
long rate = 0;
|
||||
int err = MPG123_OK;
|
||||
off_t samples = 0;
|
||||
|
||||
if(argc<2)
|
||||
usage(argv[0]);
|
||||
|
||||
infile = argv[1];
|
||||
if(argc >= 3)
|
||||
driver = argv[2];
|
||||
if(argc >= 4)
|
||||
outfile = argv[3];
|
||||
printf("Input file: %s\n", infile);
|
||||
printf("Output driver: %s\n", driver ? driver : "<nil> (default)");
|
||||
printf("Output file: %s\n", outfile ? outfile : "<nil> (default)");
|
||||
|
||||
err = mpg123_init();
|
||||
if(err != MPG123_OK || (mh = mpg123_new(NULL, &err)) == NULL)
|
||||
{
|
||||
fprintf(stderr, "Basic setup goes wrong: %s", mpg123_plain_strerror(err));
|
||||
cleanup(mh, ao);
|
||||
return -1;
|
||||
}
|
||||
|
||||
ao = out123_new();
|
||||
if(!ao)
|
||||
{
|
||||
fprintf(stderr, "Cannot create output handle.\n");
|
||||
cleanup(mh, ao);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(argc >= 5)
|
||||
{ /* Make mpg123 support the desired encoding only for all rates. */
|
||||
const long *rates;
|
||||
size_t rate_count;
|
||||
size_t i;
|
||||
int enc;
|
||||
/* If that is zero, you'll get the error soon enough from mpg123. */
|
||||
enc = out123_enc_byname(argv[4]);
|
||||
mpg123_format_none(mh);
|
||||
mpg123_rates(&rates, &rate_count);
|
||||
for(i=0; i<rate_count; ++i)
|
||||
mpg123_format(mh, rates[i], MPG123_MONO|MPG123_STEREO, enc);
|
||||
}
|
||||
|
||||
/* Let mpg123 work with the file, that excludes MPG123_NEED_MORE messages. */
|
||||
if( mpg123_open(mh, infile) != MPG123_OK
|
||||
/* Peek into track and get first output format. */
|
||||
|| mpg123_getformat(mh, &rate, &channels, &encoding) != MPG123_OK )
|
||||
{
|
||||
fprintf( stderr, "Trouble with mpg123: %s\n", mpg123_strerror(mh) );
|
||||
cleanup(mh, ao);
|
||||
return -1;
|
||||
}
|
||||
if(out123_open(ao, driver, outfile) != OUT123_OK)
|
||||
{
|
||||
fprintf(stderr, "Trouble with out123: %s\n", out123_strerror(ao));
|
||||
cleanup(mh, ao);
|
||||
return -1;
|
||||
}
|
||||
/* It makes no sense for that to give an error now. */
|
||||
out123_driver_info(ao, &driver, &outfile);
|
||||
printf("Effective output driver: %s\n", driver ? driver : "<nil> (default)");
|
||||
printf("Effective output file: %s\n", outfile ? outfile : "<nil> (default)");
|
||||
|
||||
/* Ensure that this output format will not change
|
||||
(it might, when we allow it). */
|
||||
mpg123_format_none(mh);
|
||||
mpg123_format(mh, rate, channels, encoding);
|
||||
|
||||
encname = out123_enc_name(encoding);
|
||||
printf( "Playing with %i channels and %li Hz, encoding %s.\n"
|
||||
, channels, rate, encname ? encname : "???" );
|
||||
if( out123_start(ao, rate, channels, encoding)
|
||||
|| out123_getformat(ao, NULL, NULL, NULL, &framesize) )
|
||||
{
|
||||
fprintf(stderr, "Cannot start output / get framesize: %s\n"
|
||||
, out123_strerror(ao));
|
||||
cleanup(mh, ao);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Buffer could be almost any size here, mpg123_outblock() is just some
|
||||
recommendation. The size should be a multiple of the PCM frame size. */
|
||||
buffer_size = argc >= 6 ? atol(argv[5]) : mpg123_outblock(mh);
|
||||
buffer = malloc( buffer_size );
|
||||
|
||||
do
|
||||
{
|
||||
size_t played;
|
||||
err = mpg123_read( mh, buffer, buffer_size, &done );
|
||||
played = out123_play(ao, buffer, done);
|
||||
if(played != done)
|
||||
{
|
||||
fprintf(stderr
|
||||
, "Warning: written less than gotten from libmpg123: %li != %li\n"
|
||||
, (long)played, (long)done);
|
||||
}
|
||||
samples += played/framesize;
|
||||
/* We are not in feeder mode, so MPG123_OK, MPG123_ERR and
|
||||
MPG123_NEW_FORMAT are the only possibilities.
|
||||
We do not handle a new format, MPG123_DONE is the end... so
|
||||
abort on anything not MPG123_OK. */
|
||||
} while (done && err==MPG123_OK);
|
||||
|
||||
free(buffer);
|
||||
|
||||
if(err != MPG123_DONE)
|
||||
fprintf( stderr, "Warning: Decoding ended prematurely because: %s\n",
|
||||
err == MPG123_ERR ? mpg123_strerror(mh) : mpg123_plain_strerror(err) );
|
||||
|
||||
printf("%li samples written.\n", (long)samples);
|
||||
cleanup(mh, ao);
|
||||
return 0;
|
||||
}
|
92
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/mpglib.c
vendored
Normal file
92
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/mpglib.c
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
mpglib: test program for libmpg123, in the style of the legacy mpglib test program
|
||||
|
||||
copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
initially written by Thomas Orgis
|
||||
*/
|
||||
|
||||
#include <mpg123.h>
|
||||
|
||||
/* unistd.h is not available under MSVC,
|
||||
io.h defines the read and write functions */
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define INBUFF 16384
|
||||
#define OUTBUFF 32768
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
size_t size;
|
||||
unsigned char buf[INBUFF]; /* input buffer */
|
||||
unsigned char out[OUTBUFF]; /* output buffer */
|
||||
ssize_t len;
|
||||
int ret;
|
||||
size_t in = 0, outc = 0;
|
||||
mpg123_handle *m;
|
||||
|
||||
#ifdef _WIN32
|
||||
_setmode(_fileno(stdin),_O_BINARY);
|
||||
_setmode(_fileno(stdout),_O_BINARY);
|
||||
#endif
|
||||
|
||||
mpg123_init();
|
||||
m = mpg123_new(argc > 1 ? argv[1] : NULL, &ret);
|
||||
if(m == NULL)
|
||||
{
|
||||
fprintf(stderr,"Unable to create mpg123 handle: %s\n", mpg123_plain_strerror(ret));
|
||||
return -1;
|
||||
}
|
||||
mpg123_param(m, MPG123_VERBOSE, 2, 0); /* Brabble a bit about the parsing/decoding. */
|
||||
|
||||
/* Now mpg123 is being prepared for feeding. The main loop will read chunks from stdin and feed them to mpg123;
|
||||
then take decoded data as available to write to stdout. */
|
||||
mpg123_open_feed(m);
|
||||
if(m == NULL) return -1;
|
||||
|
||||
fprintf(stderr, "Feed me some MPEG audio to stdin, I will decode to stdout.\n");
|
||||
while(1) /* Read and write until everything is through. */
|
||||
{
|
||||
len = read(0,buf,INBUFF);
|
||||
if(len <= 0)
|
||||
{
|
||||
fprintf(stderr, "input data end\n");
|
||||
break;
|
||||
}
|
||||
in += len;
|
||||
/* Feed input chunk and get first chunk of decoded audio. */
|
||||
ret = mpg123_decode(m,buf,len,out,OUTBUFF,&size);
|
||||
if(ret == MPG123_NEW_FORMAT)
|
||||
{
|
||||
long rate;
|
||||
int channels, enc;
|
||||
mpg123_getformat(m, &rate, &channels, &enc);
|
||||
fprintf(stderr, "New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
|
||||
}
|
||||
write(1,out,size);
|
||||
outc += size;
|
||||
while(ret != MPG123_ERR && ret != MPG123_NEED_MORE)
|
||||
{ /* Get all decoded audio that is available now before feeding more input. */
|
||||
ret = mpg123_decode(m,NULL,0,out,OUTBUFF,&size);
|
||||
write(1,out,size);
|
||||
outc += size;
|
||||
}
|
||||
if(ret == MPG123_ERR){ fprintf(stderr, "some error: %s", mpg123_strerror(m)); break; }
|
||||
}
|
||||
fprintf(stderr, "%lu bytes in, %lu bytes out\n", (unsigned long)in, (unsigned long)outc);
|
||||
|
||||
/* Done decoding, now just clean up and leave. */
|
||||
mpg123_delete(m);
|
||||
mpg123_exit();
|
||||
return 0;
|
||||
}
|
47
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/scan.c
vendored
Normal file
47
libsdl2_mixer/external/mpg123-1.25.6/doc/examples/scan.c
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
scan: Estimate length (sample count) of a mpeg file and compare to length from exact scan.
|
||||
|
||||
copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
initially written by Thomas Orgis
|
||||
*/
|
||||
|
||||
/* Note the lack of error checking here.
|
||||
While it would be nicer to inform the user about troubles, libmpg123 is designed _not_ to bite you on operations with invalid handles , etc.
|
||||
You just jet invalid results on invalid operations... */
|
||||
|
||||
#include <mpg123.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
mpg123_handle *m;
|
||||
int i;
|
||||
if(argc < 2)
|
||||
{
|
||||
fprintf(stderr, "\nI will give you the estimated and exact sample lengths of MPEG audio files.\n");
|
||||
fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
|
||||
return -1;
|
||||
}
|
||||
mpg123_init();
|
||||
m = mpg123_new(NULL, NULL);
|
||||
mpg123_param(m, MPG123_RESYNC_LIMIT, -1, 0); /* New in library version 0.0.1 . */
|
||||
for(i = 1; i < argc; ++i)
|
||||
{
|
||||
off_t a, b;
|
||||
|
||||
mpg123_open(m, argv[i]);
|
||||
|
||||
a = mpg123_length(m);
|
||||
mpg123_scan(m);
|
||||
b = mpg123_length(m);
|
||||
|
||||
mpg123_close(m);
|
||||
|
||||
printf("File %i: estimated %li vs. scanned %li\n", i, (long)a, (long)b);
|
||||
}
|
||||
|
||||
mpg123_delete(m);
|
||||
mpg123_exit();
|
||||
return 0;
|
||||
}
|
84
libsdl2_mixer/external/mpg123-1.25.6/doc/libmpg123_speed.txt
vendored
Normal file
84
libsdl2_mixer/external/mpg123-1.25.6/doc/libmpg123_speed.txt
vendored
Normal file
@ -0,0 +1,84 @@
|
||||
This is historic... one should make a new investigation.
|
||||
What I can say that a quick test of pre0.59s versus 1.7.3 with generic decoder on my x86-64 GNU/Linux box is not able to call a winner (or looser, for that matter).
|
||||
Though, 1.8.0 will make the new libmpg123 a winner, because there is new optimization code going on!
|
||||
|
||||
The move to libmpg123 means some more code separation / interfacing and especially the move of any local static variables into the mpg123_handle to make multiple stream handling possible.
|
||||
That may very well have an impact on performance of the mpg123 decoder.
|
||||
I made some tests, even using gcc's -pg option and gprof, with mixed result: SSE and MMX on my Thinkpad X31 are slower, especially the asm synth funtion, while the generic code is fine.
|
||||
On the other hand, on a K6-3+ using the same gcc version 4.1.2, the library based mpg123 is _faster_ for MMX and 3DNowExt.
|
||||
Epecially the mmx synth is faster... while the 3DNowExt synth is slower, too (it's the same code as SSE synth, just calling different dct64) - but speedups in other regions still make 3DNowExt of the library mpg123 more efficient.
|
||||
|
||||
What I can clearly say is that dropping the multi-cpu support via ./configure --with-cpu does help in for both monolithic and library mpg123, but that is no wonder as it removes indirection.
|
||||
The main point stays, though: On my Thinkpad the library is slow, on the K6-3+ it's fast.
|
||||
|
||||
What's the point to get here? I am not sure. We're depending on the compiler optimization (btw: Intel Compiler doesn't change the relation for the Thinkpad; not tested on the K6).
|
||||
I guess that for my Thinkpad another gcc version could invert the picture again...
|
||||
Also, I am not sure how far I should trust the gprof analysis... but it can be right; even when there is no apparent cause for the speed difference in the code itself, it could be some effect of cache and memory access.
|
||||
Some reordering of instructions and data... for sure that happened.
|
||||
|
||||
I'll need further numbers to conclude anything about the (positive/negative) impact my code changes have.
|
||||
|
||||
OK, ran the test of trunk against branches/mpg123lib on my media box with AMD Geode (AthlonXP, actually):
|
||||
|
||||
thomas@kiste:~$ for i in mpg123-lib mpg123-trunk; do for cpu in mmx 3dnowext sse; do echo $i $cpu; time $i/src/mpg123 --cpu $cpu -q -t /thorma/var/music/metallica/ride_the_lightning/*.mp3; done; done
|
||||
mpg123-lib mmx
|
||||
|
||||
real 0m25.949s
|
||||
user 0m25.395s
|
||||
sys 0m0.534s
|
||||
mpg123-lib 3dnowext
|
||||
|
||||
real 0m25.442s
|
||||
user 0m24.863s
|
||||
sys 0m0.558s
|
||||
mpg123-lib sse
|
||||
|
||||
real 0m25.794s
|
||||
user 0m25.214s
|
||||
sys 0m0.562s
|
||||
mpg123-trunk mmx
|
||||
|
||||
real 0m26.650s
|
||||
user 0m26.004s
|
||||
sys 0m0.626s
|
||||
mpg123-trunk 3dnowext
|
||||
|
||||
real 0m25.886s
|
||||
user 0m25.262s
|
||||
sys 0m0.600s
|
||||
mpg123-trunk sse
|
||||
|
||||
real 0m25.695s
|
||||
user 0m25.136s
|
||||
sys 0m0.539s
|
||||
thomas@kiste:~$ for i in mpg123-lib mpg123-trunk; do for cpu in 3dnow; do echo $i $cpu; time $i/src/mpg123 --cpu $cpu -q -t /thorma/var/music/metallica/ride_the_lightning/*.mp3; done; done
|
||||
mpg123-lib 3dnow
|
||||
|
||||
real 0m33.011s
|
||||
user 0m32.365s
|
||||
sys 0m0.621s
|
||||
mpg123-trunk 3dnow
|
||||
|
||||
real 0m32.830s
|
||||
user 0m32.192s
|
||||
sys 0m0.619s
|
||||
|
||||
|
||||
You can't really make a decision there. It's tight.
|
||||
What worries me a bit is the total loose of 3DNow against MMX - should it be that drastic?
|
||||
Well, it's higher quality, at least.
|
||||
|
||||
|
||||
Addendum: The game on an K6-3+
|
||||
|
||||
On mpg123 < 1.8.0, he 3DNowExt decoder used to be slower than the 3DNow decoder. Only recently it has been observed, that the simplification of the runtime decoder choice code sped up that one significantly, towards the same performance level as the single-decoder build of mpg123 1.6.4 (-with-cpu=3dnowext_alone having broken build in later versions:-/).
|
||||
We are talking about a difference of 20% here... there is something special about the K6-3+ that makes is that sensitive to how the function pointers get thrown around.
|
||||
|
||||
Example numbers: Dynamic x86 build of 1.6.4, 3DNowExt needs 5.9 s, 3DNow 5.6 s.
|
||||
3DNowExt-only build: 4.9 s
|
||||
3DNow-only build: 5.6 s
|
||||
Now... dynamic build of mpg123 trunk of 2010-05-24: 3DNowExt 4.9 s, 3DNow 5.6 s. That's how it should be. One might investigate how exactly the old ways before mpg123 1.8 worked against the K6-3+ ... possibly helping performance issues seen with the mpg123 coded for MPlayer on that CPU.
|
||||
|
||||
--
|
||||
Thomas.
|
||||
|
37
libsdl2_mixer/external/mpg123-1.25.6/equalize.dat
vendored
Normal file
37
libsdl2_mixer/external/mpg123-1.25.6/equalize.dat
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
# in every line, there are two values. One for the left
|
||||
# and one for the right cahnnel.
|
||||
# the first line is the multiplicator for the lowest frequency band
|
||||
# the 32th line for the highest freq. band
|
||||
#
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
||||
1.0 1.0
|
11
libsdl2_mixer/external/mpg123-1.25.6/libmpg123.pc.in
vendored
Normal file
11
libsdl2_mixer/external/mpg123-1.25.6/libmpg123.pc.in
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: libmpg123
|
||||
Description: An optimised MPEG Audio decoder
|
||||
Requires:
|
||||
Version: @PACKAGE_VERSION@
|
||||
Libs: -L${libdir} -lmpg123
|
||||
Cflags: -I${includedir}
|
11
libsdl2_mixer/external/mpg123-1.25.6/libout123.pc.in
vendored
Normal file
11
libsdl2_mixer/external/mpg123-1.25.6/libout123.pc.in
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: libout123
|
||||
Description: A streaming audio output API derived from mpg123
|
||||
Requires:
|
||||
Version: @PACKAGE_VERSION@
|
||||
Libs: -L${libdir} -lout123
|
||||
Cflags: -I${includedir}
|
34
libsdl2_mixer/external/mpg123-1.25.6/m4/addrconfig.m4
vendored
Normal file
34
libsdl2_mixer/external/mpg123-1.25.6/m4/addrconfig.m4
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
dnl Check whether the AI_ADDRCONFIG flag can be used with getaddrinfo
|
||||
dnl Taken from APR ...
|
||||
AC_DEFUN([APR_CHECK_GETADDRINFO_ADDRCONFIG], [
|
||||
AC_CACHE_CHECK(for working AI_ADDRCONFIG, apr_cv_gai_addrconfig, [
|
||||
AC_TRY_RUN([
|
||||
#ifdef HAVE_NETDB_H
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
struct addrinfo hints, *ai;
|
||||
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_flags = AI_ADDRCONFIG;
|
||||
return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
|
||||
}], [apr_cv_gai_addrconfig=yes],
|
||||
[apr_cv_gai_addrconfig=no],
|
||||
[apr_cv_gai_addrconfig=no])])
|
||||
|
||||
if test $apr_cv_gai_addrconfig = yes; then
|
||||
AC_DEFINE(HAVE_GAI_ADDRCONFIG, 1, [Define if getaddrinfo accepts the AI_ADDRCONFIG flag])
|
||||
fi
|
||||
])
|
8369
libsdl2_mixer/external/mpg123-1.25.6/m4/libtool.m4
vendored
Normal file
8369
libsdl2_mixer/external/mpg123-1.25.6/m4/libtool.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
437
libsdl2_mixer/external/mpg123-1.25.6/m4/ltoptions.m4
vendored
Normal file
437
libsdl2_mixer/external/mpg123-1.25.6/m4/ltoptions.m4
vendored
Normal file
@ -0,0 +1,437 @@
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
|
||||
# Foundation, Inc.
|
||||
# Written by Gary V. Vaughan, 2004
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 8 ltoptions.m4
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
||||
|
||||
|
||||
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
||||
# ------------------------------------------
|
||||
m4_define([_LT_MANGLE_OPTION],
|
||||
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
|
||||
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
||||
# ---------------------------------------
|
||||
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
||||
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
||||
# saved as a flag.
|
||||
m4_define([_LT_SET_OPTION],
|
||||
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
||||
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
||||
_LT_MANGLE_DEFUN([$1], [$2]),
|
||||
[m4_warning([Unknown $1 option '$2'])])[]dnl
|
||||
])
|
||||
|
||||
|
||||
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
||||
# ------------------------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
m4_define([_LT_IF_OPTION],
|
||||
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
||||
|
||||
|
||||
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
||||
# -------------------------------------------------------
|
||||
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
||||
# are set.
|
||||
m4_define([_LT_UNLESS_OPTIONS],
|
||||
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
||||
[m4_define([$0_found])])])[]dnl
|
||||
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
||||
])[]dnl
|
||||
])
|
||||
|
||||
|
||||
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
||||
# ----------------------------------------
|
||||
# OPTION-LIST is a space-separated list of Libtool options associated
|
||||
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
||||
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
||||
# the unknown option and exit.
|
||||
m4_defun([_LT_SET_OPTIONS],
|
||||
[# Set options
|
||||
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||
[_LT_SET_OPTION([$1], _LT_Option)])
|
||||
|
||||
m4_if([$1],[LT_INIT],[
|
||||
dnl
|
||||
dnl Simply set some default values (i.e off) if boolean options were not
|
||||
dnl specified:
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
||||
])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
||||
])
|
||||
dnl
|
||||
dnl If no reference was made to various pairs of opposing options, then
|
||||
dnl we run the default mode handler for the pair. For example, if neither
|
||||
dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
|
||||
dnl archives by default:
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
||||
[_LT_ENABLE_FAST_INSTALL])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
|
||||
[_LT_WITH_AIX_SONAME([aix])])
|
||||
])
|
||||
])# _LT_SET_OPTIONS
|
||||
|
||||
|
||||
## --------------------------------- ##
|
||||
## Macros to handle LT_INIT options. ##
|
||||
## --------------------------------- ##
|
||||
|
||||
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
||||
# -----------------------------------------
|
||||
m4_define([_LT_MANGLE_DEFUN],
|
||||
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
||||
|
||||
|
||||
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
||||
# -----------------------------------------------
|
||||
m4_define([LT_OPTION_DEFINE],
|
||||
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
||||
])# LT_OPTION_DEFINE
|
||||
|
||||
|
||||
# dlopen
|
||||
# ------
|
||||
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
||||
])
|
||||
|
||||
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
||||
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the 'dlopen' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
||||
|
||||
|
||||
# win32-dll
|
||||
# ---------
|
||||
# Declare package support for building win32 dll's.
|
||||
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
||||
[enable_win32_dll=yes
|
||||
|
||||
case $host in
|
||||
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
||||
AC_CHECK_TOOL(AS, as, false)
|
||||
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
||||
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
||||
;;
|
||||
esac
|
||||
|
||||
test -z "$AS" && AS=as
|
||||
_LT_DECL([], [AS], [1], [Assembler program])dnl
|
||||
|
||||
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
||||
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
|
||||
|
||||
test -z "$OBJDUMP" && OBJDUMP=objdump
|
||||
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
|
||||
])# win32-dll
|
||||
|
||||
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
||||
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the 'win32-dll' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
||||
|
||||
|
||||
# _LT_ENABLE_SHARED([DEFAULT])
|
||||
# ----------------------------
|
||||
# implement the --enable-shared flag, and supports the 'shared' and
|
||||
# 'disable-shared' LT_INIT options.
|
||||
# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
|
||||
m4_define([_LT_ENABLE_SHARED],
|
||||
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||
AC_ARG_ENABLE([shared],
|
||||
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
||||
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
||||
[p=${PACKAGE-default}
|
||||
case $enableval in
|
||||
yes) enable_shared=yes ;;
|
||||
no) enable_shared=no ;;
|
||||
*)
|
||||
enable_shared=no
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
||||
for pkg in $enableval; do
|
||||
IFS=$lt_save_ifs
|
||||
if test "X$pkg" = "X$p"; then
|
||||
enable_shared=yes
|
||||
fi
|
||||
done
|
||||
IFS=$lt_save_ifs
|
||||
;;
|
||||
esac],
|
||||
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
||||
|
||||
_LT_DECL([build_libtool_libs], [enable_shared], [0],
|
||||
[Whether or not to build shared libraries])
|
||||
])# _LT_ENABLE_SHARED
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
||||
|
||||
# Old names:
|
||||
AC_DEFUN([AC_ENABLE_SHARED],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_DISABLE_SHARED],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
||||
])
|
||||
|
||||
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
||||
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
||||
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
||||
|
||||
|
||||
|
||||
# _LT_ENABLE_STATIC([DEFAULT])
|
||||
# ----------------------------
|
||||
# implement the --enable-static flag, and support the 'static' and
|
||||
# 'disable-static' LT_INIT options.
|
||||
# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
|
||||
m4_define([_LT_ENABLE_STATIC],
|
||||
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||
AC_ARG_ENABLE([static],
|
||||
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
||||
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
||||
[p=${PACKAGE-default}
|
||||
case $enableval in
|
||||
yes) enable_static=yes ;;
|
||||
no) enable_static=no ;;
|
||||
*)
|
||||
enable_static=no
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
||||
for pkg in $enableval; do
|
||||
IFS=$lt_save_ifs
|
||||
if test "X$pkg" = "X$p"; then
|
||||
enable_static=yes
|
||||
fi
|
||||
done
|
||||
IFS=$lt_save_ifs
|
||||
;;
|
||||
esac],
|
||||
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
||||
|
||||
_LT_DECL([build_old_libs], [enable_static], [0],
|
||||
[Whether or not to build static libraries])
|
||||
])# _LT_ENABLE_STATIC
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
||||
|
||||
# Old names:
|
||||
AC_DEFUN([AC_ENABLE_STATIC],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_DISABLE_STATIC],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
||||
])
|
||||
|
||||
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
||||
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
||||
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
||||
|
||||
|
||||
|
||||
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
||||
# ----------------------------------
|
||||
# implement the --enable-fast-install flag, and support the 'fast-install'
|
||||
# and 'disable-fast-install' LT_INIT options.
|
||||
# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
|
||||
m4_define([_LT_ENABLE_FAST_INSTALL],
|
||||
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||
AC_ARG_ENABLE([fast-install],
|
||||
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
||||
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
||||
[p=${PACKAGE-default}
|
||||
case $enableval in
|
||||
yes) enable_fast_install=yes ;;
|
||||
no) enable_fast_install=no ;;
|
||||
*)
|
||||
enable_fast_install=no
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
||||
for pkg in $enableval; do
|
||||
IFS=$lt_save_ifs
|
||||
if test "X$pkg" = "X$p"; then
|
||||
enable_fast_install=yes
|
||||
fi
|
||||
done
|
||||
IFS=$lt_save_ifs
|
||||
;;
|
||||
esac],
|
||||
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
||||
|
||||
_LT_DECL([fast_install], [enable_fast_install], [0],
|
||||
[Whether or not to optimize for fast installation])dnl
|
||||
])# _LT_ENABLE_FAST_INSTALL
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
||||
|
||||
# Old names:
|
||||
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||
the 'fast-install' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||
the 'disable-fast-install' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
||||
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
||||
|
||||
|
||||
# _LT_WITH_AIX_SONAME([DEFAULT])
|
||||
# ----------------------------------
|
||||
# implement the --with-aix-soname flag, and support the `aix-soname=aix'
|
||||
# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
|
||||
# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
|
||||
m4_define([_LT_WITH_AIX_SONAME],
|
||||
[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
|
||||
shared_archive_member_spec=
|
||||
case $host,$enable_shared in
|
||||
power*-*-aix[[5-9]]*,yes)
|
||||
AC_MSG_CHECKING([which variant of shared library versioning to provide])
|
||||
AC_ARG_WITH([aix-soname],
|
||||
[AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
|
||||
[shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
|
||||
[case $withval in
|
||||
aix|svr4|both)
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([Unknown argument to --with-aix-soname])
|
||||
;;
|
||||
esac
|
||||
lt_cv_with_aix_soname=$with_aix_soname],
|
||||
[AC_CACHE_VAL([lt_cv_with_aix_soname],
|
||||
[lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
|
||||
with_aix_soname=$lt_cv_with_aix_soname])
|
||||
AC_MSG_RESULT([$with_aix_soname])
|
||||
if test aix != "$with_aix_soname"; then
|
||||
# For the AIX way of multilib, we name the shared archive member
|
||||
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
||||
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
||||
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
||||
# the AIX toolchain works better with OBJECT_MODE set (default 32).
|
||||
if test 64 = "${OBJECT_MODE-32}"; then
|
||||
shared_archive_member_spec=shr_64
|
||||
else
|
||||
shared_archive_member_spec=shr
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
with_aix_soname=aix
|
||||
;;
|
||||
esac
|
||||
|
||||
_LT_DECL([], [shared_archive_member_spec], [0],
|
||||
[Shared archive member basename, for filename based shared library versioning on AIX])dnl
|
||||
])# _LT_WITH_AIX_SONAME
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
|
||||
|
||||
|
||||
# _LT_WITH_PIC([MODE])
|
||||
# --------------------
|
||||
# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
|
||||
# LT_INIT options.
|
||||
# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
|
||||
m4_define([_LT_WITH_PIC],
|
||||
[AC_ARG_WITH([pic],
|
||||
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
|
||||
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
||||
[lt_p=${PACKAGE-default}
|
||||
case $withval in
|
||||
yes|no) pic_mode=$withval ;;
|
||||
*)
|
||||
pic_mode=default
|
||||
# Look at the argument we got. We use all the common list separators.
|
||||
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
||||
for lt_pkg in $withval; do
|
||||
IFS=$lt_save_ifs
|
||||
if test "X$lt_pkg" = "X$lt_p"; then
|
||||
pic_mode=yes
|
||||
fi
|
||||
done
|
||||
IFS=$lt_save_ifs
|
||||
;;
|
||||
esac],
|
||||
[pic_mode=m4_default([$1], [default])])
|
||||
|
||||
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
||||
])# _LT_WITH_PIC
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
||||
|
||||
# Old name:
|
||||
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
||||
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the 'pic-only' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
||||
|
||||
## ----------------- ##
|
||||
## LTDL_INIT Options ##
|
||||
## ----------------- ##
|
||||
|
||||
m4_define([_LTDL_MODE], [])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
||||
[m4_define([_LTDL_MODE], [nonrecursive])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
||||
[m4_define([_LTDL_MODE], [recursive])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
||||
[m4_define([_LTDL_MODE], [subproject])])
|
||||
|
||||
m4_define([_LTDL_TYPE], [])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
||||
[m4_define([_LTDL_TYPE], [installable])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
||||
[m4_define([_LTDL_TYPE], [convenience])])
|
124
libsdl2_mixer/external/mpg123-1.25.6/m4/ltsugar.m4
vendored
Normal file
124
libsdl2_mixer/external/mpg123-1.25.6/m4/ltsugar.m4
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
|
||||
# Foundation, Inc.
|
||||
# Written by Gary V. Vaughan, 2004
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 6 ltsugar.m4
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
||||
|
||||
|
||||
# lt_join(SEP, ARG1, [ARG2...])
|
||||
# -----------------------------
|
||||
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
||||
# associated separator.
|
||||
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
||||
# versions in m4sugar had bugs.
|
||||
m4_define([lt_join],
|
||||
[m4_if([$#], [1], [],
|
||||
[$#], [2], [[$2]],
|
||||
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
||||
m4_define([_lt_join],
|
||||
[m4_if([$#$2], [2], [],
|
||||
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
||||
|
||||
|
||||
# lt_car(LIST)
|
||||
# lt_cdr(LIST)
|
||||
# ------------
|
||||
# Manipulate m4 lists.
|
||||
# These macros are necessary as long as will still need to support
|
||||
# Autoconf-2.59, which quotes differently.
|
||||
m4_define([lt_car], [[$1]])
|
||||
m4_define([lt_cdr],
|
||||
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
||||
[$#], 1, [],
|
||||
[m4_dquote(m4_shift($@))])])
|
||||
m4_define([lt_unquote], $1)
|
||||
|
||||
|
||||
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
||||
# ------------------------------------------
|
||||
# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
|
||||
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
||||
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
||||
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
||||
# than defined and empty).
|
||||
#
|
||||
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
||||
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
||||
m4_define([lt_append],
|
||||
[m4_define([$1],
|
||||
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
||||
|
||||
|
||||
|
||||
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
||||
# ----------------------------------------------------------
|
||||
# Produce a SEP delimited list of all paired combinations of elements of
|
||||
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
||||
# has the form PREFIXmINFIXSUFFIXn.
|
||||
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
||||
m4_define([lt_combine],
|
||||
[m4_if(m4_eval([$# > 3]), [1],
|
||||
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
||||
[[m4_foreach([_Lt_prefix], [$2],
|
||||
[m4_foreach([_Lt_suffix],
|
||||
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
||||
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
||||
|
||||
|
||||
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
||||
# -----------------------------------------------------------------------
|
||||
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
||||
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
||||
m4_define([lt_if_append_uniq],
|
||||
[m4_ifdef([$1],
|
||||
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
||||
[lt_append([$1], [$2], [$3])$4],
|
||||
[$5])],
|
||||
[lt_append([$1], [$2], [$3])$4])])
|
||||
|
||||
|
||||
# lt_dict_add(DICT, KEY, VALUE)
|
||||
# -----------------------------
|
||||
m4_define([lt_dict_add],
|
||||
[m4_define([$1($2)], [$3])])
|
||||
|
||||
|
||||
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
||||
# --------------------------------------------
|
||||
m4_define([lt_dict_add_subkey],
|
||||
[m4_define([$1($2:$3)], [$4])])
|
||||
|
||||
|
||||
# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
||||
# ----------------------------------
|
||||
m4_define([lt_dict_fetch],
|
||||
[m4_ifval([$3],
|
||||
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
||||
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
||||
|
||||
|
||||
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
||||
# -----------------------------------------------------------------
|
||||
m4_define([lt_if_dict_fetch],
|
||||
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
||||
[$5],
|
||||
[$6])])
|
||||
|
||||
|
||||
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
||||
# --------------------------------------------------------------
|
||||
m4_define([lt_dict_filter],
|
||||
[m4_if([$5], [], [],
|
||||
[lt_join(m4_quote(m4_default([$4], [[, ]])),
|
||||
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
||||
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
||||
])
|
23
libsdl2_mixer/external/mpg123-1.25.6/m4/ltversion.m4
vendored
Normal file
23
libsdl2_mixer/external/mpg123-1.25.6/m4/ltversion.m4
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
|
||||
# Written by Scott James Remnant, 2004
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# @configure_input@
|
||||
|
||||
# serial 4179 ltversion.m4
|
||||
# This file is part of GNU Libtool
|
||||
|
||||
m4_define([LT_PACKAGE_VERSION], [2.4.6])
|
||||
m4_define([LT_PACKAGE_REVISION], [2.4.6])
|
||||
|
||||
AC_DEFUN([LTVERSION_VERSION],
|
||||
[macro_version='2.4.6'
|
||||
macro_revision='2.4.6'
|
||||
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
||||
_LT_DECL(, macro_revision, 0)
|
||||
])
|
99
libsdl2_mixer/external/mpg123-1.25.6/m4/lt~obsolete.m4
vendored
Normal file
99
libsdl2_mixer/external/mpg123-1.25.6/m4/lt~obsolete.m4
vendored
Normal file
@ -0,0 +1,99 @@
|
||||
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
|
||||
# Foundation, Inc.
|
||||
# Written by Scott James Remnant, 2004.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 5 lt~obsolete.m4
|
||||
|
||||
# These exist entirely to fool aclocal when bootstrapping libtool.
|
||||
#
|
||||
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
|
||||
# which have later been changed to m4_define as they aren't part of the
|
||||
# exported API, or moved to Autoconf or Automake where they belong.
|
||||
#
|
||||
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
||||
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
||||
# using a macro with the same name in our local m4/libtool.m4 it'll
|
||||
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
||||
# and doesn't know about Autoconf macros at all.)
|
||||
#
|
||||
# So we provide this file, which has a silly filename so it's always
|
||||
# included after everything else. This provides aclocal with the
|
||||
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
||||
# because those macros already exist, or will be overwritten later.
|
||||
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
||||
#
|
||||
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
||||
# Yes, that means every name once taken will need to remain here until
|
||||
# we give up compatibility with versions before 1.7, at which point
|
||||
# we need to keep only those names which we still refer to.
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
||||
|
||||
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
||||
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
||||
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
||||
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
||||
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
||||
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
||||
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
||||
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
||||
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
||||
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
||||
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
||||
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
||||
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
||||
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
||||
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
||||
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
||||
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
||||
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
||||
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
||||
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
||||
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
||||
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
||||
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
||||
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
||||
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
||||
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
||||
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
||||
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
||||
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
||||
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
||||
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
||||
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
||||
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
||||
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
||||
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
||||
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
||||
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
||||
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
||||
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
||||
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
||||
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
||||
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
||||
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
||||
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
19
libsdl2_mixer/external/mpg123-1.25.6/makedll.sh
vendored
Normal file
19
libsdl2_mixer/external/mpg123-1.25.6/makedll.sh
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
if test -e Makefile; then
|
||||
make clean
|
||||
fi
|
||||
options="$@"
|
||||
echo "using options: $options"
|
||||
CFLAGS="-march=i686" ./configure --disable-modules --with-cpu=x86_dither $options &&
|
||||
cd src/libmpg123 &&
|
||||
make &&
|
||||
cp .libs/libmpg123-0.dll ../../ &&
|
||||
cp .libs/libmpg123-0.dll.def ../../libmpg123-0.def
|
||||
cd ../../ &&
|
||||
echo "Now run that lib tool... perhaps you want to strip, too.
|
||||
Hints:
|
||||
strip --strip-unneeded libmpg123-0.dll
|
||||
lib /machine:i386 /def:libmpg123-0.def" ||
|
||||
echo You got some trouble.
|
||||
|
||||
|
574
libsdl2_mixer/external/mpg123-1.25.6/man1/mpg123.1
vendored
Normal file
574
libsdl2_mixer/external/mpg123-1.25.6/man1/mpg123.1
vendored
Normal file
@ -0,0 +1,574 @@
|
||||
.TH mpg123 1 "29 Feb 2016"
|
||||
.SH NAME
|
||||
mpg123 \- play audio MPEG 1.0/2.0/2.5 stream (layers 1, 2 and 3)
|
||||
.SH SYNOPSIS
|
||||
.B mpg123
|
||||
[
|
||||
.B options
|
||||
]
|
||||
.IR file-or-URL ...
|
||||
.SH DESCRIPTION
|
||||
.B mpg123
|
||||
reads one or more
|
||||
.IR file\^ s
|
||||
(or standard input if ``\-'' is specified) or
|
||||
.IR URL\^ s
|
||||
and plays them on the audio device (default) or
|
||||
outputs them to stdout.
|
||||
.IR file\^ / URL
|
||||
is assumed to be an MPEG audio bit stream.
|
||||
.SH OPERANDS
|
||||
The following operands are supported:
|
||||
.TP 8
|
||||
.IR file (s)
|
||||
The path name(s) of one or more input files. They must be
|
||||
valid MPEG-1.0/2.0/2.5 audio layer 1, 2 or 3 bit streams.
|
||||
If a dash ``\-'' is specified, MPEG data will
|
||||
be read from the standard input. Furthermore, any name
|
||||
starting with ``http://'' is recognized as
|
||||
.I URL
|
||||
(see next section).
|
||||
.SH OPTIONS
|
||||
.B mpg123
|
||||
options may be either the traditional POSIX one letter options,
|
||||
or the GNU style long options. POSIX style options start with a
|
||||
single ``\-'', while GNU long options start with ``\-\^\-''.
|
||||
Option arguments (if needed) follow separated by whitespace (not ``='').
|
||||
Note that some options can be absent from your installation when disabled in the build process.
|
||||
.SH INPUT OPTIONS
|
||||
.TP
|
||||
\fB\-k \fInum\fR, \fB\-\^\-skip \fInum
|
||||
Skip first
|
||||
.I num
|
||||
frames. By default the decoding starts at the first frame.
|
||||
.TP
|
||||
\fB\-n \fInum\fR, \fB\-\^\-frames \fInum
|
||||
Decode only
|
||||
.I num
|
||||
frames. By default the complete stream is decoded.
|
||||
.TP
|
||||
.BR \-\-fuzzy
|
||||
Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC).
|
||||
Without that, seeks need a first scan through the file before they can jump at positions.
|
||||
You can decide here: sample-accurate operation with gapless features or faster (fuzzy) seeking.
|
||||
.TP
|
||||
.BR \-y ", " \-\^\-no\-resync
|
||||
Do NOT try to resync and continue decoding if an error occurs in
|
||||
the input file. Normally,
|
||||
.B mpg123
|
||||
tries to keep the playback alive at all costs, including skipping invalid material and searching new header when something goes wrong.
|
||||
With this switch you can make it bail out on data errors
|
||||
(and perhaps spare your ears a bad time). Note that this switch has been renamed from \-\-resync.
|
||||
The old name still works, but is not advertised or recommened to use (subject to removal in future).
|
||||
.TP
|
||||
\fB\-\^-resync\-limit \fIbytes\fR
|
||||
Set number of bytes to search for valid MPEG data once lost in stream; <0 means search whole stream.
|
||||
If you know there are huge chunks of invalid data in your files... here is your hammer.
|
||||
Note: Only since version 1.14 this also increases the amount of junk skipped on beginning.
|
||||
.TP
|
||||
\fB\-p \fIURL \fR| \fBnone\fR, \fB\-\^\-proxy \fIURL \fR| \fBnone
|
||||
The specified
|
||||
.I proxy
|
||||
will be used for HTTP requests. It
|
||||
should be specified as full URL (``http://host.domain:port/''),
|
||||
but the ``http://'' prefix, the port number and the trailing
|
||||
slash are optional (the default port is 80). Specifying
|
||||
.B none
|
||||
means not to use any proxy, and to retrieve files directly
|
||||
from the respective servers. See also the
|
||||
``HTTP SUPPORT'' section.
|
||||
.TP
|
||||
\fB\-u \fIauth\fR, \fB\-\^\-auth \fIauth
|
||||
HTTP authentication to use when recieving files via HTTP.
|
||||
The format used is user:password.
|
||||
.TP
|
||||
\fB\-\^\-ignore\-mime
|
||||
Ignore MIME types given by HTTP server. If you know better and want mpg123
|
||||
to decode something the server thinks is image/png, then just do it.
|
||||
.TP
|
||||
\fB\-\^\-no\-seekbuffer
|
||||
Disable the default micro-buffering of non-seekable streams that gives the
|
||||
parser a safer footing.
|
||||
.TP
|
||||
\fB\-@ \fIfile\fR, \fB\-\^\-list \fIfile
|
||||
Read filenames and/or URLs of MPEG audio streams from the specified
|
||||
.I file
|
||||
in addition to the ones specified on the command line (if any).
|
||||
Note that
|
||||
.I file
|
||||
can be either an ordinary file, a dash ``\-'' to indicate that
|
||||
a list of filenames/URLs is to be read from the standard input,
|
||||
or an URL pointing to a an appropriate list file. Note: only
|
||||
one
|
||||
.B \-@
|
||||
option can be used (if more than one is specified, only the
|
||||
last one will be recognized).
|
||||
.TP
|
||||
\fB\-l \fIn\fR, \fB\-\^\-listentry \fIn
|
||||
Of the playlist, play specified entry only.
|
||||
.I n
|
||||
is the number of entry starting at 1. A value of 0 is the default and means playling the whole list, a negative value means showing of the list of titles with their numbers...
|
||||
.TP
|
||||
\fB\-\^\-continue
|
||||
Enable playlist continuation mode. This changes frame skipping to apply only to the first track and also continues to play following tracks in playlist after the selected one. Also, the option to play a number of frames only applies to the whole playlist. Basically, this tries to treat the playlist more like one big stream (like, an audio book).
|
||||
The current track number in list (1-based) and frame number (0-based) are printed at exit (useful if you interrupted playback and want to continue later).
|
||||
Note that the continuation info is printed to standard output unless the switch for piping audio data to standard out is used. Also, it really makes sense to work with actual playlist files instead of lists of file names as arguments, to keep track positions consistent.
|
||||
.TP
|
||||
\fB\-\-loop \fItimes\fR
|
||||
for looping track(s) a certain number of times, < 0 means infinite loop (not with \-\-random!).
|
||||
.TP
|
||||
.BR \-\-keep\-open
|
||||
For remote control mode: Keep loaded file open after reaching end.
|
||||
.TP
|
||||
\fB\-\-timeout \fIseconds\fR
|
||||
Timeout in (integer) seconds before declaring a stream dead (if <= 0, wait forever).
|
||||
.TP
|
||||
.BR \-z ", " \-\^\-shuffle
|
||||
Shuffle play. Randomly shuffles the order of files specified on the command
|
||||
line, or in the list file.
|
||||
.TP
|
||||
.BR \-Z ", " \-\-random
|
||||
Continuous random play. Keeps picking a random file from the command line
|
||||
or the play list. Unlike shuffle play above, random play never ends, and
|
||||
plays individual songs more than once.
|
||||
.TP
|
||||
\fB\-\^\-no\-icy\-meta
|
||||
Do not accept ICY meta data.
|
||||
.TP
|
||||
\fB\-i, \-\^-index
|
||||
Index / scan through the track before playback.
|
||||
This fills the index table for seeking (if enabled in libmpg123) and may make the operating system cache the file contents for smoother operating on playback.
|
||||
.TP
|
||||
\fB\-\-index\-size \fIsize\fR
|
||||
Set the number of entries in the seek frame index table.
|
||||
.TP
|
||||
\fB\-\-preframes \fInum\fR
|
||||
Set the number of frames to be read as lead-in before a seeked-to position.
|
||||
This serves to fill the layer 3 bit reservoir, which is needed to faithfully reproduce a certain sample at a certain position.
|
||||
Note that for layer 3, a minimum of 1 is enforced (because of frame overlap), and for layer 1 and 2, this is limited to 2 (no bit reservoir in that case, but engine spin-up anyway).
|
||||
|
||||
.SH OUTPUT and PROCESSING OPTIONS
|
||||
.TP
|
||||
\fB\-o \fImodule\fR, \-\^\-output \fImodule\fR
|
||||
Select audio output module. You can provide a comma-separated list to use the first one that works.
|
||||
.TP
|
||||
\fB\-\^\-list\-modules
|
||||
List the available modules.
|
||||
.TP
|
||||
\fB\-a \fIdev\fR, \fB\-\^\-audiodevice \fIdev
|
||||
Specify the audio device to use. The default is
|
||||
system-dependent (usually /dev/audio or /dev/dsp).
|
||||
Use this option if you have multiple audio devices and
|
||||
the default is not what you want.
|
||||
.TP
|
||||
.BR \-s ", " \-\^\-stdout
|
||||
The decoded audio samples are written to standard output,
|
||||
instead of playing them through the audio device. This
|
||||
option must be used if your audio hardware is not supported
|
||||
by
|
||||
.BR mpg123 .
|
||||
The output format per default is raw (headerless) linear PCM audio data,
|
||||
16 bit, stereo, host byte order (you can force mono or 8bit).
|
||||
.TP
|
||||
\fB\-O \fIfile\fR, \fB\-\^\-outfile
|
||||
Write raw output into a file (instead of simply redirecting standard output to a file with the shell).
|
||||
.TP
|
||||
\fB\-w \fIfile\fR, \fB\-\^\-wav
|
||||
Write output as WAV file. This will cause the MPEG stream to be decoded
|
||||
and saved as file
|
||||
.I file
|
||||
, or standard output if
|
||||
.I -
|
||||
is used as file name. You can also use
|
||||
.I --au
|
||||
and
|
||||
.I --cdr
|
||||
for AU and CDR format, respectively. Note that WAV/AU writing to non-seekable files, or redirected stdout, needs some thought. Since 1.16.0, the logic changed to writing the header with the first actual data. This avoids spurious WAV headers in a pipe, for example. The result of decoding nothing to WAV/AU is a file consisting just of the header when it is seekable and really nothing when not (not even a header). Correctly writing data with prophetic headers to stdout is no easy business.
|
||||
.TP
|
||||
\fB\-\^\-au \fIfile
|
||||
Does not play the MPEG file but writes it to
|
||||
.I file
|
||||
in SUN audio format. If \- is used as the filename, the AU file is
|
||||
written to stdout. See paragraph about WAV writing for header fun with non-seekable streams.
|
||||
.TP
|
||||
\fB\-\^\-cdr \fIfile
|
||||
Does not play the MPEG file but writes it to
|
||||
.I file
|
||||
as a CDR file. If \- is used as the filename, the CDR file is written
|
||||
to stdout.
|
||||
.TP
|
||||
.BR \-\-reopen
|
||||
Forces reopen of the audiodevice after ever song
|
||||
.TP
|
||||
.BR \-\-cpu\ \fIdecoder\-type
|
||||
Selects a certain decoder (optimized for specific CPU), for example i586 or MMX.
|
||||
The list of available decoders can vary; depending on the build and what your CPU supports.
|
||||
This options is only availabe when the build actually includes several optimized decoders.
|
||||
.TP
|
||||
.BR \-\-test\-cpu
|
||||
Tests your CPU and prints a list of possible choices for \-\-cpu.
|
||||
.TP
|
||||
.BR \-\-list\-cpu
|
||||
Lists all available decoder choices, regardless of support by your CPU.
|
||||
.TP
|
||||
\fB\-g \fIgain\fR, \fB\-\^\-gain \fIgain
|
||||
[DEPRECATED] Set audio hardware output gain (default: don't change). The unit of the gain value is hardware and output module dependent.
|
||||
(This parameter is only provided for backwards compatibility and may be removed in the future without prior notice. Use the audio player for playing and a mixer app for mixing, UNIX style!)
|
||||
.TP
|
||||
\fB\-f \fIfactor\fR, \fB\-\^\-scale \fIfactor
|
||||
Change scale factor (default: 32768).
|
||||
.TP
|
||||
.BR \-\-rva-mix,\ \-\-rva-radio
|
||||
Enable RVA (relative volume adjustment) using the values stored for ReplayGain radio mode / mix mode with all tracks roughly equal loudness.
|
||||
The first valid information found in ID3V2 Tags (Comment named RVA or the RVA2 frame) or ReplayGain header in Lame/Info Tag is used.
|
||||
.TP
|
||||
.BR \-\-rva-album,\ \-\-rva-audiophile
|
||||
Enable RVA (relative volume adjustment) using the values stored for ReplayGain audiophile mode / album mode with usually the effect of adjusting album loudness but keeping relative loudness inside album.
|
||||
The first valid information found in ID3V2 Tags (Comment named RVA_ALBUM or the RVA2 frame) or ReplayGain header in Lame/Info Tag is used.
|
||||
.TP
|
||||
.BR \-0 ", " \-\^\-single0 "; " \-1 ", " \-\^\-single1
|
||||
Decode only channel 0 (left) or channel 1 (right),
|
||||
respectively. These options are available for
|
||||
stereo MPEG streams only.
|
||||
.TP
|
||||
.BR \-m ", " \-\^\-mono ", " \-\^\-mix ", " \-\^\-singlemix
|
||||
Mix both channels / decode mono. It takes less
|
||||
CPU time than full stereo decoding.
|
||||
.TP
|
||||
.BR \-\-stereo
|
||||
Force stereo output
|
||||
.TP
|
||||
\fB\-r \fIrate\fR, \fB\-\^\-rate \fIrate
|
||||
Set sample rate (default: automatic). You may want to
|
||||
change this if you need a constant bitrate independent of
|
||||
the mpeg stream rate. mpg123 automagically converts the
|
||||
rate. You should then combine this with \-\-stereo or \-\-mono.
|
||||
.TP
|
||||
.BR \-2 ", " \-\^\-2to1 "; " \-4 ", " \-\^\-4to1
|
||||
Performs a downsampling of ratio 2:1 (22 kHz) or 4:1 (11 kHz)
|
||||
on the output stream, respectively. Saves some CPU cycles, but
|
||||
at least the 4:1 ratio sounds ugly.
|
||||
.TP
|
||||
.BR \-\-pitch\ \fIvalue
|
||||
Set hardware pitch (speedup/down, 0 is neutral; 0.05 is 5%). This changes the output sampling rate, so it only works in the range your audio system/hardware supports.
|
||||
.TP
|
||||
.BR \-\-8bit
|
||||
Forces 8bit output
|
||||
.TP
|
||||
\fB\-\^\-float
|
||||
Forces f32 encoding
|
||||
.TP
|
||||
\fB\-e \fIenc\fR, \fB\-\^\-encoding \fIenc
|
||||
Choose output sample encoding. Possible values look like f32 (32-bit floating point), s32 (32-bit signed integer), u32 (32-bit unsigned integer) and the variants with different numbers of bits (s24, u24, s16, u16, s8, u8) and also special variants like ulaw and alaw 8-bit.
|
||||
See the output of mpg123's longhelp for actually available encodings.
|
||||
.TP
|
||||
\fB\-d \fIn\fR, \fB\-\^\-doublespeed \fIn
|
||||
Only play every
|
||||
.IR n 'th
|
||||
frame. This will cause the MPEG stream
|
||||
to be played
|
||||
.I n
|
||||
times faster, which can be used for special
|
||||
effects. Can also be combined with the
|
||||
.B \-\^\-halfspeed
|
||||
option to play 3 out of 4 frames etc. Don't expect great
|
||||
sound quality when using this option.
|
||||
.TP
|
||||
\fB\-h \fIn\fR, \fB\-\^\-halfspeed \fIn
|
||||
Play each frame
|
||||
.I n
|
||||
times. This will cause the MPEG stream
|
||||
to be played at
|
||||
.IR 1 / n 'th
|
||||
speed (n times slower), which can be
|
||||
used for special effects. Can also be combined with the
|
||||
.B \-\^\-doublespeed
|
||||
option to double every third frame or things like that.
|
||||
Don't expect great sound quality when using this option.
|
||||
.TP
|
||||
\fB\-E \fIfile\fR, \fB\-\^\-equalizer
|
||||
Enables equalization, taken from
|
||||
.IR file .
|
||||
The file needs to contain 32 lines of data, additional comment lines may
|
||||
be prefixed with
|
||||
.IR # .
|
||||
Each data line consists of two floating-point entries, separated by
|
||||
whitespace. They specify the multipliers for left and right channel of
|
||||
a certain frequency band, respectively. The first line corresponds to the
|
||||
lowest, the 32nd to the highest frequency band.
|
||||
Note that you can control the equalizer interactively with the generic control interface.
|
||||
.TP
|
||||
\fB\-\^\-gapless
|
||||
Enable code that cuts (junk) samples at beginning and end of tracks, enabling gapless transitions between MPEG files when encoder padding and codec delays would prevent it.
|
||||
This is enabled per default beginning with mpg123 version 1.0.0 .
|
||||
.TP
|
||||
\fB\-\^\-no\-gapless
|
||||
Disable the gapless code. That gives you MP3 decodings that include encoder delay and padding plus mpg123's decoder delay.
|
||||
.TP
|
||||
\fB\-\^\-no\-infoframe
|
||||
Do not parse the Xing/Lame/VBR/Info frame, decode it instead just like a stupid old MP3 hardware player.
|
||||
This implies disabling of gapless playback as the necessary information is in said metadata frame.
|
||||
.TP
|
||||
\fB\-D \fIn\fR, \fB\-\-delay \fIn
|
||||
Insert a delay of \fIn\fR seconds before each track.
|
||||
.TP
|
||||
.BR "\-o h" ", " \-\^\-headphones
|
||||
Direct audio output to the headphone connector (some hardware only; AIX, HP, SUN).
|
||||
.TP
|
||||
.BR "\-o s" ", " \-\^\-speaker
|
||||
Direct audio output to the speaker (some hardware only; AIX, HP, SUN).
|
||||
.TP
|
||||
.BR "\-o l" ", " \-\^\-lineout
|
||||
Direct audio output to the line-out connector (some hardware only; AIX, HP, SUN).
|
||||
.TP
|
||||
\fB\-b \fIsize\fR, \fB\-\^\-buffer \fIsize
|
||||
Use an audio output buffer of
|
||||
.I size
|
||||
Kbytes. This is useful to bypass short periods of heavy
|
||||
system activity, which would normally cause the audio output
|
||||
to be interrupted.
|
||||
You should specify a buffer size of at least 1024
|
||||
(i.e. 1 Mb, which equals about 6 seconds of audio data) or more;
|
||||
less than about 300 does not make much sense. The default is 0,
|
||||
which turns buffering off.
|
||||
.TP
|
||||
\fB\-\^\-preload \fIfraction
|
||||
Wait for the buffer to be filled to
|
||||
.I fraction
|
||||
before starting playback (fraction between 0 and 1). You can tune this prebuffering to either get faster sound to your ears or safer uninterrupted web radio.
|
||||
Default is 0.2 (wait for 20 % of buffer to be full, changed from 1 in version 1.23).
|
||||
.TP
|
||||
\fB\-\^\-devbuffer \fIseconds
|
||||
Set device buffer in seconds; <= 0 means default value. This is the small buffer between the
|
||||
application and the audio backend, possibly directly related to hardware buffers.
|
||||
.TP
|
||||
\fB\-\^\-smooth
|
||||
Keep buffer over track boundaries -- meaning, do not empty the buffer between tracks for possibly some added smoothness.
|
||||
|
||||
.SH MISC OPTIONS
|
||||
|
||||
.TP
|
||||
.BR \-t ", " \-\^\-test
|
||||
Test mode. The audio stream is decoded, but no output occurs.
|
||||
.TP
|
||||
.BR \-c ", " \-\^\-check
|
||||
Check for filter range violations (clipping), and report them for each frame
|
||||
if any occur.
|
||||
.TP
|
||||
.BR \-v ", " \-\^\-verbose
|
||||
Increase the verbosity level. For example, displays the frame
|
||||
numbers during decoding.
|
||||
.TP
|
||||
.BR \-q ", " \-\^\-quiet
|
||||
Quiet. Suppress diagnostic messages.
|
||||
.TP
|
||||
.BR \-C ", " \-\^\-control
|
||||
Enable terminal control keys. This is enabled automatically if a terminal is detected.
|
||||
By default use 's' or the space bar to stop/restart (pause, unpause) playback, 'f' to jump forward to the next song, 'b' to jump back to the
|
||||
beginning of the song, ',' to rewind, '.' to fast forward, and 'q' to quit.
|
||||
Type 'h' for a full list of available controls.
|
||||
.TP
|
||||
\fB\-\^\-no\-control
|
||||
Disable terminal control even if terminal is detected.
|
||||
.TP
|
||||
\fB\-\^\-title
|
||||
In an xterm, rxvt, screen, iris-ansi (compatible, TERM environment variable is examined), change the window's title to the name of song currently
|
||||
playing.
|
||||
.TP
|
||||
\fB\-\^\-name \fIname
|
||||
Set the name of this instance, possibly used in various places. This sets the client name for JACK output.
|
||||
.TP
|
||||
\fB\-\^\-long\-tag
|
||||
Display ID3 tag info always in long format with one line per item (artist, title, ...)
|
||||
.TP
|
||||
.BR \-\-utf8
|
||||
Regardless of environment, print metadata in UTF-8 (otherwise, when not using UTF-8 locale, you'll get ASCII stripdown).
|
||||
.TP
|
||||
.BR \-R ", " \-\^\-remote
|
||||
Activate generic control interface.
|
||||
.B mpg123
|
||||
will then read and execute commands from stdin. Basic usage is ``load <filename> '' to play some file and the obvious ``pause'', ``command.
|
||||
``jump <frame>'' will jump/seek to a given point (MPEG frame number).
|
||||
Issue ``help'' to get a full list of commands and syntax.
|
||||
.TP
|
||||
.BR \-\^\-remote\-err
|
||||
Print responses for generic control mode to standard error, not standard out.
|
||||
This is automatically triggered when using
|
||||
.B -s
|
||||
N.
|
||||
.TP
|
||||
\fB\-\-fifo \fIpath
|
||||
Create a fifo / named pipe on the given path and use that for reading commands instead of standard input.
|
||||
.TP
|
||||
\fB\-\^\-aggressive
|
||||
Tries to get higher priority
|
||||
.TP
|
||||
.BR \-T ", " \-\-realtime
|
||||
Tries to gain realtime priority. This option usually requires root
|
||||
privileges to have any effect.
|
||||
.TP
|
||||
.BR \-? ", " \-\^\-help
|
||||
Shows short usage instructions.
|
||||
.TP
|
||||
.BR \-\^\-longhelp
|
||||
Shows long usage instructions.
|
||||
.TP
|
||||
.BR \-\^\-version
|
||||
Print the version string.
|
||||
.SH HTTP SUPPORT
|
||||
In addition to reading MPEG audio streams from ordinary
|
||||
files and from the standard input,
|
||||
.B mpg123
|
||||
supports retrieval of MPEG audio files or playlists via the HTTP protocol,
|
||||
which is used in the World Wide Web (WWW). Such files are
|
||||
specified using a so-called URL, which starts with ``http://''. When a file with
|
||||
that prefix is encountered,
|
||||
.B mpg123
|
||||
attempts to open an HTTP connection to the server in order to
|
||||
retrieve that file to decode and play it.
|
||||
.P
|
||||
It is often useful to retrieve files through a WWW cache or
|
||||
so-called proxy. To accomplish this,
|
||||
.B mpg123
|
||||
examines the environment for variables named
|
||||
.BR MP3_HTTP_PROXY ", " http_proxy " and " HTTP_PROXY ,
|
||||
in this order. The value of the first one that is set will
|
||||
be used as proxy specification. To override this, you can
|
||||
use the
|
||||
.B \-p
|
||||
command line option (see the ``OPTIONS'' section). Specifying
|
||||
.B "\-p none"
|
||||
will enforce contacting the server directly without using
|
||||
any proxy, even if one of the above environment variables
|
||||
is set.
|
||||
.P
|
||||
Note that, in order to play MPEG audio files from a WWW
|
||||
server, it is necessary that the connection to that server
|
||||
is fast enough. For example, a 128 kbit/s MPEG file
|
||||
requires the network connection to be at least 128 kbit/s
|
||||
(16 kbyte/s) plus protocol overhead. If you suffer from
|
||||
short network outages, you should try the
|
||||
.B \-b
|
||||
option (buffer) to bypass such outages. If your network
|
||||
connection is generally not fast enough to retrieve MPEG
|
||||
audio files in realtime, you can first download the files
|
||||
to your local harddisk (e.g. using
|
||||
.BR wget (1))
|
||||
and then play them from there.
|
||||
.P
|
||||
If authentication is needed to access the file it can be
|
||||
specified with the
|
||||
.BR "\-u user:pass".
|
||||
.SH INTERRUPT
|
||||
When in terminal control mode, you can quit via pressing the q key,
|
||||
while any time you can abort
|
||||
.B mpg123
|
||||
by pressing Ctrl-C. If not in terminal control mode, this will
|
||||
skip to the next file (if any). If you want to abort playing immediately
|
||||
in that case, press Ctrl-C twice in short succession (within about one second).
|
||||
.P
|
||||
Note that the result of quitting
|
||||
.B mpg123
|
||||
pressing Ctrl-C might not be audible
|
||||
immediately, due to audio data buffering in the audio device.
|
||||
This delay is system dependent, but it is usually not more
|
||||
than one or two seconds.
|
||||
|
||||
.SH PLAYBACK STATUS LINE
|
||||
In verbose mode, mpg123 updates a line with various information centering around
|
||||
the current playback position. On any decent terminal, the line also works
|
||||
as a progress bar in the current file by reversing video for a fraction of the
|
||||
line according to the current position. An example for a full line is this:
|
||||
|
||||
> 0291+0955 00:01.68+00:28.22 [00:05.30] mix 100=085 192 kb/s 576 B acc 18 clip p+0.014
|
||||
|
||||
The information consists of, in order:
|
||||
.TP
|
||||
.BR >
|
||||
single-character playback state (``>'' for playing, ``='' for pausing/looping, ``_'' for stopped)
|
||||
.TP
|
||||
.BR 0291+0955
|
||||
current frame offset and number of remaining frames after the plus sign
|
||||
.TP
|
||||
.BR 00:01.68+00:28.22
|
||||
current position from and remaining time in human terms
|
||||
(hours, minutes, seconds)
|
||||
.TP
|
||||
.BR [00:05.30]
|
||||
fill of the output buffer in terms of playback time, if the buffer is enabled
|
||||
.TP
|
||||
.BR mix
|
||||
selected RVA mode (possible values: mix, alb (album), and \-\^\-\^\- (neutral, off))
|
||||
.TP
|
||||
.BR 100=085
|
||||
set volume and the RVA-modified effective volume after the equal sign
|
||||
.TP
|
||||
.BR 192\ kb/s
|
||||
current bitrate
|
||||
.TP
|
||||
.BR 576\ B
|
||||
size of current frame in bytes
|
||||
.TP
|
||||
.BR acc
|
||||
if positions are accurate, possible values are ``acc'' for accurate positions or ``fuz'' for fuzzy
|
||||
(with guessed byte offsets using mean frame size)
|
||||
.TP
|
||||
.BR 18\ clip
|
||||
amount of clipped samples, non-zero only if decoder reports that
|
||||
(generic does, some optimized ones not)
|
||||
.TP
|
||||
.BR p+0.014
|
||||
pitch change (increased/decreased playback sampling rate on user request)
|
||||
|
||||
.SH NOTES
|
||||
MPEG audio decoding requires a good deal of CPU performance,
|
||||
especially layer-3. To decode it in realtime, you should
|
||||
have at least an i486DX4, Pentium, Alpha, SuperSparc or equivalent
|
||||
processor. You can also use the
|
||||
.B -m
|
||||
option to decode mono only, which reduces the CPU load
|
||||
somewhat for layer-3 streams. See also the
|
||||
.BR \-2 " and " \-4
|
||||
options.
|
||||
.P
|
||||
If everything else fails, have mpg123 decode to a file
|
||||
and then use an appropriate utility to play that file with less CPU load.
|
||||
Most probably you can configure mpg123 to produce a format suitable
|
||||
for your audio device (see above about encodings and sampling rates).
|
||||
.P
|
||||
If your system is generally fast enough to decode in
|
||||
realtime, but there are sometimes periods of heavy
|
||||
system load (such as cronjobs, users logging in remotely,
|
||||
starting of ``big'' programs etc.) causing the
|
||||
audio output to be interrupted, then you should use
|
||||
the
|
||||
.B \-b
|
||||
option to use a buffer of reasonable size (at least 1000 Kbytes).
|
||||
.SH BUGS
|
||||
.P
|
||||
Mostly MPEG-1 layer 2 and 3 are tested in real life.
|
||||
Please report any issues and provide test files to help fixing them.
|
||||
.P
|
||||
No CRC error checking is performed.
|
||||
.P
|
||||
Some platforms lack audio hardware support; you may be able to use the
|
||||
.B -s
|
||||
switch to feed the decoded data to a program that can play it on your audio device.
|
||||
.SH AUTHORS
|
||||
.TP
|
||||
Maintainer:
|
||||
.br
|
||||
Thomas Orgis <maintainer@mpg123.org>, <thomas@orgis.org>
|
||||
.TP
|
||||
Original Creator:
|
||||
.br
|
||||
Michael Hipp
|
||||
.PP
|
||||
Uses code or ideas from various people, see the AUTHORS file accompanying the source code.
|
||||
.SH LICENSE
|
||||
.B mpg123
|
||||
is licensed under the GNU Lesser/Library General Public License, LGPL, version 2.1 .
|
||||
.SH WEBSITE
|
||||
http://www.mpg123.org
|
||||
.br
|
||||
http://sourceforge.net/projects/mpg123
|
210
libsdl2_mixer/external/mpg123-1.25.6/man1/out123.1
vendored
Normal file
210
libsdl2_mixer/external/mpg123-1.25.6/man1/out123.1
vendored
Normal file
@ -0,0 +1,210 @@
|
||||
.TH out123 1 "26 May 2016"
|
||||
.SH NAME
|
||||
out123 \- send raw PCM audio or a waveform pattern to an output device
|
||||
.SH SYNOPSIS
|
||||
.B cat audio.raw | out123
|
||||
[
|
||||
.B options
|
||||
]
|
||||
|
||||
.B out123 --wave-freq
|
||||
freq1[,freq2,...]
|
||||
[
|
||||
.B options
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.B out123
|
||||
reads raw PCM data (in host byte order) from standard input
|
||||
and plays it on the audio device specified by given options.
|
||||
Alternatively, it can generate periodic signals for playback
|
||||
itself.
|
||||
.SH OPTIONS
|
||||
.B out123
|
||||
options may be either the traditional POSIX one letter options,
|
||||
or the GNU style long options. POSIX style options start with a
|
||||
single ``\-'', while GNU long options start with ``\-\^\-''.
|
||||
Option arguments (if needed) follow separated by whitespace (not ``='').
|
||||
Note that some options can be absent from your installation when disabled in the build process.
|
||||
.TP
|
||||
\fB\-\^\-name \fIname
|
||||
Set the name of this instance, possibly used in various places. This sets the client name for JACK output.
|
||||
.TP
|
||||
\fB\-o \fImodule\fR, \-\^\-output \fImodule\fR
|
||||
Select audio output module. You can provide a comma-separated list to use the first one that works.
|
||||
.TP
|
||||
\fB\-\^\-list\-modules
|
||||
List the available modules.
|
||||
.TP
|
||||
\fB\-a \fIdev\fR, \fB\-\^\-audiodevice \fIdev
|
||||
Specify the audio device to use. The default is
|
||||
system-dependent (usually /dev/audio or /dev/dsp).
|
||||
Use this option if you have multiple audio devices and
|
||||
the default is not what you want.
|
||||
.TP
|
||||
.BR \-s ", " \-\^\-stdout
|
||||
The audio samples are written to standard output,
|
||||
instead of playing them through the audio device.
|
||||
The output format is the same as the input ... so in this mode,
|
||||
.B out123
|
||||
acts like the standard tool \fB cat.
|
||||
This shortcut is equivalent to ``-o raw -a -''.
|
||||
.TP
|
||||
\fB\-O \fIfile\fR, \fB\-\^\-outfile
|
||||
Write raw output into a file (instead of simply redirecting standard output to a file with the shell).
|
||||
This shortcut is equivalent to ``-o raw -a \fIfile\fR''.
|
||||
.TP
|
||||
\fB\-w \fIfile\fR, \fB\-\^\-wav
|
||||
Write output as WAV file
|
||||
.I file
|
||||
, or standard output if
|
||||
.I -
|
||||
is or the empty string used as file name. You can also use
|
||||
.I --au
|
||||
and
|
||||
.I --cdr
|
||||
for AU and CDR format, respectively. Note that WAV/AU writing to non-seekable files or redirected stdout needs some thought. The header is written with the first actual data. The result of decoding nothing to WAV/AU is a file consisting just of the header when it is seekable and really nothing when not (not even a header). Correctly writing data with prophetic headers to stdout is no easy business.
|
||||
This shortcut is equivalent to ``-o wav -a \fIfile\fR''.
|
||||
.TP
|
||||
\fB\-\^\-au \fIfile
|
||||
Write to
|
||||
.I file
|
||||
in SUN audio format. If \- or the empty string is used as the filename, the AU file is
|
||||
written to stdout. See paragraph about WAV writing for header fun with non-seekable streams.
|
||||
This shortcut is equivalent to ``-o au -a \fIfile\fR''.
|
||||
.TP
|
||||
\fB\-\^\-cdr \fIfile
|
||||
Write to
|
||||
.I file
|
||||
as a CDR (CD-ROM audio, more correctly CDDA for Compact Disc Digital Audio).
|
||||
If \- is or the empty string used as the filename, the CDR file is written
|
||||
to stdout.
|
||||
This shortcut is equivalent to ``-o cdr -a \fIfile\fR''.
|
||||
.TP
|
||||
\fB\-r \fIrate\fR, \fB\-\^\-rate \fIrate
|
||||
Set sample rate in Hz (default: 44100). If this does not match the actual input
|
||||
sampling rate, you get changed pitch. Might be intentional;-)
|
||||
.TP
|
||||
\fB\-c \fIcount\fR, \fB\-\^\-channels \fIcount
|
||||
Set channel count to given value.
|
||||
.TP
|
||||
\fp\-e \fIenc\fR, \fB\-\^\-encoding \fIenc
|
||||
Choose output sample encoding. Possible values look like f32 (32-bit floating point), s32 (32-bit signed integer), u32 (32-bit unsigned integer) and the variants with different numbers of bits (s24, u24, s16, u16, s8, u8) and also special variants like ulaw and alaw 8-bit.
|
||||
See the output of \fBout123\fR's longhelp for actually available encodings.
|
||||
Default is s16.
|
||||
.TP
|
||||
.BR \-m ", " \-\^\-mono "
|
||||
Set for single-channel audio (default is two channels, stereo).
|
||||
.TP
|
||||
.BR \-\-stereo
|
||||
Select stereo output (2 channels, default).
|
||||
.TP
|
||||
.BR \-\^\-list\-encodings
|
||||
List known encoding short and long names to standard output.
|
||||
.TP
|
||||
.BR \-\^\-test\-format
|
||||
Check if given format is supported by given driver and device (in command line before
|
||||
encountering this), silently returning 0 as exit value if it is the case.
|
||||
.TP
|
||||
.BR \-\^\-test\-encodings
|
||||
Print out the short names of encodings supported with the current setup.
|
||||
.TP
|
||||
.BR \-\^\-query\-format
|
||||
If the selected driver and device communicate some default accepted format, print
|
||||
out a command line fragment for \fBout123\fR setting that format, always in that order:
|
||||
\-\^\-rate <r> -\^\-channels <c> -\^\-encoding <e>
|
||||
.TP
|
||||
.BR "\-o h" ", " \-\^\-headphones
|
||||
Direct audio output to the headphone connector (some hardware only; AIX, HP, SUN).
|
||||
.TP
|
||||
.BR "\-o s" ", " \-\^\-speaker
|
||||
Direct audio output to the speaker (some hardware only; AIX, HP, SUN).
|
||||
.TP
|
||||
.BR "\-o l" ", " \-\^\-lineout
|
||||
Direct audio output to the line-out connector (some hardware only; AIX, HP, SUN).
|
||||
.TP
|
||||
\fB\-b \fIsize\fR, \fB\-\^\-buffer \fIsize
|
||||
Use an audio output buffer of
|
||||
.I size
|
||||
Kbytes. This is useful to bypass short periods of heavy
|
||||
system activity, which would normally cause the audio output
|
||||
to be interrupted.
|
||||
You should specify a buffer size of at least 1024
|
||||
(i.e. 1 Mb, which equals about 6 seconds of usual audio data) or more;
|
||||
less than about 300 does not make much sense. The default is 0,
|
||||
which turns buffering off.
|
||||
.TP
|
||||
\fB\-\^\-preload \fIfraction
|
||||
Wait for the buffer to be filled to
|
||||
.I fraction
|
||||
before starting playback (fraction between 0 and 1). You can tune this prebuffering to either get sound faster to your ears or safer uninterrupted web radio.
|
||||
Default is 0.2 (changed from 1 since version 1.23).
|
||||
.TP
|
||||
\fB\-\^\-devbuffer \fIseconds
|
||||
Set device buffer in seconds; <= 0 means default value. This is the small buffer between the
|
||||
application and the audio backend, possibly directly related to hardware buffers.
|
||||
.TP
|
||||
\fB\-\^\-timelimit \fIsamples
|
||||
Set playback time limit in PCM samples if set to a value greater than zero.
|
||||
\fBout123\fR will stop reading from stdin or playing from the generated wave
|
||||
table after reaching that number of samples.
|
||||
.TP
|
||||
\fB\-\^\-wave\-freq \fIfrequencies
|
||||
Set wave generator frequency or list of those with comma separation for enabling
|
||||
a generated test signal instead of standard input. Empty values repeat the
|
||||
previous one.
|
||||
.TP
|
||||
\fB\-\^\-wave\-pat \fIpatterns
|
||||
Set the waveform patterns of the generated waves as comma-separated list.
|
||||
Choices include sine, square, triangle, sawtooth, gauss, pulse, and shot.
|
||||
Empty values repeat the previous one.
|
||||
.TP
|
||||
\fB\-\^\-wave\-phase \fIphases
|
||||
Set waveform phase shift(s) as comma-separated list, negative values
|
||||
inverting the pattern in time and empty value repeating the previous.
|
||||
.TP
|
||||
\fB\-\^\-wave\-limit \fIsamples
|
||||
Set a custom soft limit on the wave table size. Small values cause larger changes
|
||||
in actual frequencies to make whole periods fit.
|
||||
.TP
|
||||
.BR \-t ", " \-\^\-test
|
||||
Test mode. The audio stream is read, but no output occurs.
|
||||
.TP
|
||||
.BR \-v ", " \-\^\-verbose
|
||||
Increase the verbosity level.
|
||||
.TP
|
||||
.BR \-q ", " \-\^\-quiet
|
||||
Quiet. Suppress diagnostic messages.
|
||||
.TP
|
||||
\fB\-\^\-aggressive
|
||||
Tries to get higher priority
|
||||
.TP
|
||||
.BR \-T ", " \-\-realtime
|
||||
Tries to gain realtime priority. This option usually requires root
|
||||
privileges to have any effect.
|
||||
.TP
|
||||
.BR \-? ", " \-\^\-help
|
||||
Shows short usage instructions.
|
||||
.TP
|
||||
.BR \-\^\-longhelp
|
||||
Shows long usage instructions.
|
||||
.TP
|
||||
.BR \-\^\-version
|
||||
Print the version string.
|
||||
.SH AUTHORS
|
||||
.TP
|
||||
Maintainer:
|
||||
.br
|
||||
Thomas Orgis <maintainer@mpg123.org>, <thomas@orgis.org>
|
||||
.TP
|
||||
Creator (ancestry of code inside mpg123):
|
||||
.br
|
||||
Michael Hipp
|
||||
.TP
|
||||
Uses code or ideas from various people, see the AUTHORS file accompanying the source code.
|
||||
.SH LICENSE
|
||||
.B out123
|
||||
is licensed under the GNU Lesser/Library General Public License, LGPL, version 2.1 .
|
||||
.SH WEBSITE
|
||||
http://www.mpg123.org
|
||||
.br
|
||||
http://sourceforge.net/projects/mpg123
|
76
libsdl2_mixer/external/mpg123-1.25.6/mpg123.spec
vendored
Normal file
76
libsdl2_mixer/external/mpg123-1.25.6/mpg123.spec
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
# This is a generic spec file that should "just work" with rpmbuild on any distro.
|
||||
# Make sure you have appropriate -devel packes installed:
|
||||
# - devel packages for alsa, sdl, etc... to build the respective output modules.
|
||||
Summary: The fast console mpeg audio decoder/player.
|
||||
Name: mpg123
|
||||
Version: 1.25.6
|
||||
Release: 1
|
||||
URL: http://www.mpg123.org/
|
||||
License: GPL
|
||||
Group: Applications/Multimedia
|
||||
Packager: Michael Ryzhykh <mclroy@gmail.com>
|
||||
Source: http://www.mpg123.org/download/mpg123-%{version}.tar.bz2
|
||||
BuildRoot: %_tmppath/%name-%version
|
||||
Prefix: /usr
|
||||
|
||||
%description
|
||||
This is a console based decoder/player for mono/stereo mpeg audio files,
|
||||
probably more familiar as MP3 or MP2 files. It's focus is speed.
|
||||
It can play MPEG1.0/2.0/2.5 layer I, II, II (1, 2, 3;-) files
|
||||
(VBR files are fine, too) and produce output on a number of different ways:
|
||||
raw data to stdout and different sound systems depending on your platform.
|
||||
|
||||
%package devel
|
||||
Summary: Files needed for development with libmpg123 or libout123
|
||||
Group: Development/Libraries
|
||||
|
||||
%description devel
|
||||
Libraries and header files for development with mpg123.
|
||||
|
||||
%prep
|
||||
%setup -q -n %name-%version
|
||||
|
||||
%build
|
||||
%configure --enable-shared --enable-static
|
||||
make
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%makeinstall
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(755,root,root)
|
||||
%{_bindir}/*
|
||||
%defattr(644,root,root)
|
||||
%doc %{_mandir}/*/mpg123.1.gz
|
||||
%doc %{_mandir}/*/out123.1.gz
|
||||
%{_libdir}/libmpg123.so.*
|
||||
%{_libdir}/libout123.so.*
|
||||
%{_libdir}/mpg123/output_*.so
|
||||
|
||||
%files devel
|
||||
%defattr(644,root,root)
|
||||
%{_libdir}/pkgconfig/libmpg123.pc
|
||||
%{_libdir}/pkgconfig/libout123.pc
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/libmpg123.a
|
||||
%{_libdir}/libmpg123.la
|
||||
%{_libdir}/libmpg123.so
|
||||
%{_libdir}/libout123.a
|
||||
%{_libdir}/libout123.la
|
||||
%{_libdir}/libout123.so
|
||||
%exclude %{_libdir}/mpg123/output_*.a
|
||||
|
||||
%changelog
|
||||
* 2017-02-27 Thomas Orgis <thomas@orgis.org>
|
||||
- libltdl and module .la files gone
|
||||
* Sat Sep 3 2016 Srikanth Rao <srirao@bandwidth.com>
|
||||
- remove junk added in last edit, add out123 manpage
|
||||
* Much later Thomas Orgis <thomas@orgis.org>
|
||||
- some blind update
|
||||
* Tue Jan 1 2008 Michael Ryzhykh <mclroy@gmail.com>
|
||||
- Initial Version.
|
||||
|
76
libsdl2_mixer/external/mpg123-1.25.6/mpg123.spec.in
vendored
Normal file
76
libsdl2_mixer/external/mpg123-1.25.6/mpg123.spec.in
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
# This is a generic spec file that should "just work" with rpmbuild on any distro.
|
||||
# Make sure you have appropriate -devel packes installed:
|
||||
# - devel packages for alsa, sdl, etc... to build the respective output modules.
|
||||
Summary: The fast console mpeg audio decoder/player.
|
||||
Name: @PACKAGE_NAME@
|
||||
Version: @PACKAGE_VERSION@
|
||||
Release: 1
|
||||
URL: http://www.mpg123.org/
|
||||
License: GPL
|
||||
Group: Applications/Multimedia
|
||||
Packager: Michael Ryzhykh <mclroy@gmail.com>
|
||||
Source: http://www.mpg123.org/download/mpg123-%{version}.tar.bz2
|
||||
BuildRoot: %_tmppath/%name-%version
|
||||
Prefix: /usr
|
||||
|
||||
%description
|
||||
This is a console based decoder/player for mono/stereo mpeg audio files,
|
||||
probably more familiar as MP3 or MP2 files. It's focus is speed.
|
||||
It can play MPEG1.0/2.0/2.5 layer I, II, II (1, 2, 3;-) files
|
||||
(VBR files are fine, too) and produce output on a number of different ways:
|
||||
raw data to stdout and different sound systems depending on your platform.
|
||||
|
||||
%package devel
|
||||
Summary: Files needed for development with libmpg123 or libout123
|
||||
Group: Development/Libraries
|
||||
|
||||
%description devel
|
||||
Libraries and header files for development with mpg123.
|
||||
|
||||
%prep
|
||||
%setup -q -n %name-%version
|
||||
|
||||
%build
|
||||
%configure --enable-shared --enable-static
|
||||
make
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%makeinstall
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(755,root,root)
|
||||
%{_bindir}/*
|
||||
%defattr(644,root,root)
|
||||
%doc %{_mandir}/*/mpg123.1.gz
|
||||
%doc %{_mandir}/*/out123.1.gz
|
||||
%{_libdir}/libmpg123.so.*
|
||||
%{_libdir}/libout123.so.*
|
||||
%{_libdir}/mpg123/output_*.so
|
||||
|
||||
%files devel
|
||||
%defattr(644,root,root)
|
||||
%{_libdir}/pkgconfig/libmpg123.pc
|
||||
%{_libdir}/pkgconfig/libout123.pc
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/libmpg123.a
|
||||
%{_libdir}/libmpg123.la
|
||||
%{_libdir}/libmpg123.so
|
||||
%{_libdir}/libout123.a
|
||||
%{_libdir}/libout123.la
|
||||
%{_libdir}/libout123.so
|
||||
%exclude %{_libdir}/mpg123/output_*.a
|
||||
|
||||
%changelog
|
||||
* 2017-02-27 Thomas Orgis <thomas@orgis.org>
|
||||
- libltdl and module .la files gone
|
||||
* Sat Sep 3 2016 Srikanth Rao <srirao@bandwidth.com>
|
||||
- remove junk added in last edit, add out123 manpage
|
||||
* Much later Thomas Orgis <thomas@orgis.org>
|
||||
- some blind update
|
||||
* Tue Jan 1 2008 Michael Ryzhykh <mclroy@gmail.com>
|
||||
- Initial Version.
|
||||
|
81
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/2008clr.sln
vendored
Normal file
81
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/2008clr.sln
vendored
Normal file
@ -0,0 +1,81 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpg123clr", "mpg123clr\mpg123clr.vcproj", "{99E8B20E-9C29-46BC-B766-A50F237D88BF}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "scanclr", "examples\scanclr\scanclr.csproj", "{53664927-0A21-4056-A5D5-C6A1B4B1F839}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF} = {99E8B20E-9C29-46BC-B766-A50F237D88BF}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "feedseekclr", "examples\feedseekclr\feedseekclr.csproj", "{626B52AB-1E46-46FB-A259-03DCE3994BE6}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReplaceReaderclr", "examples\ReplaceReaderclr\ReplaceReaderclr.csproj", "{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpg123", "..\2008\libmpg123\libmpg123.vcproj", "{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Debug|Mixed Platforms.Build.0 = Debug|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Release|Any CPU.ActiveCfg = Release|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Release|Mixed Platforms.ActiveCfg = Release|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Release|Mixed Platforms.Build.0 = Release|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{99E8B20E-9C29-46BC-B766-A50F237D88BF}.Release|Win32.Build.0 = Release|Win32
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{53664927-0A21-4056-A5D5-C6A1B4B1F839}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{626B52AB-1E46-46FB-A259-03DCE3994BE6}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Any CPU.ActiveCfg = Debug_x86_Dll_Minimal|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Mixed Platforms.ActiveCfg = Debug_Generic_Dll|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Mixed Platforms.Build.0 = Debug_Generic_Dll|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Win32.ActiveCfg = Debug_x86_Dll_Minimal|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Win32.Build.0 = Debug_x86_Dll_Minimal|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Any CPU.ActiveCfg = Release_x86_Dll_Minimal|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Mixed Platforms.ActiveCfg = Release_Generic_Dll|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Mixed Platforms.Build.0 = Release_Generic_Dll|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Win32.ActiveCfg = Release_x86_Dll_Minimal|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Win32.Build.0 = Release_x86_Dll_Minimal|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
435
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/ReplaceReaderclr/Program.cs
vendored
Normal file
435
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/ReplaceReaderclr/Program.cs
vendored
Normal file
@ -0,0 +1,435 @@
|
||||
/*
|
||||
replacereaderclr: test program for mpg123clr, showing how to use ReplaceReader in a CLR enviro.
|
||||
copyright 2009 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
initially written by Malcolm Boczek
|
||||
|
||||
not to be used as an example of good coding practices, note the total absence of error handling!!!
|
||||
*/
|
||||
|
||||
/*
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.12.0.0 14-Apr-10 Added ReplaceReaderHandle sample code (mb)
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using System.IO; // for ReplaceReaderHandle example
|
||||
using System.Runtime.InteropServices; // for ReplaceReaderHandle example
|
||||
|
||||
using mpg123clr;
|
||||
|
||||
namespace ReplaceReaderclr
|
||||
{
|
||||
class Program
|
||||
{
|
||||
private unsafe static int MyReadFunc(int a, void* b, uint c)
|
||||
{
|
||||
// need to call posix read function here...
|
||||
|
||||
// PosixRead is an example, substitute your replacement function here.
|
||||
int ret = mpg123.PosixRead(a, b, c);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static int MySeekFunc(int a, int b, int c)
|
||||
{
|
||||
// NOTE: Largefile conflict with use of "int" position values.
|
||||
// Convert to long if off_t is defined as long long
|
||||
|
||||
// need to call posix lseek function here...
|
||||
|
||||
// PosixSeek is an example, substitute your replacement function here.
|
||||
int ret = mpg123.PosixSeek(a, b, c);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private unsafe static int MyHandleReadFunc(void* a, void* b, uint c)
|
||||
{
|
||||
GCHandle gch = GCHandle.FromIntPtr((IntPtr)a);
|
||||
BinaryReader br = (BinaryReader)gch.Target;
|
||||
|
||||
byte[] buf = br.ReadBytes((int)c);
|
||||
|
||||
// NOTE: no discernible performance difference between Marshal.Copy and ptr++ loop
|
||||
Marshal.Copy(buf, 0, (IntPtr)b, buf.Length);
|
||||
|
||||
// byte* ptr = (byte*)b;
|
||||
// for (int i = 0, l = buf.Length; i < l; i++)
|
||||
// *(ptr++) = buf[i];
|
||||
|
||||
return buf.Length;
|
||||
}
|
||||
|
||||
private unsafe static int MyHandleSeekFunc(void* a, int b, int c)
|
||||
{
|
||||
// NOTE: Largefile conflict with use of "int" position values.
|
||||
// Convert to long if off_t is defined as long long
|
||||
|
||||
GCHandle gch = GCHandle.FromIntPtr((IntPtr)a);
|
||||
BinaryReader br = (BinaryReader)gch.Target;
|
||||
|
||||
return (int)br.BaseStream.Seek(b, (SeekOrigin)c);
|
||||
}
|
||||
|
||||
private unsafe static void MyHandleCleanFunc(void* a)
|
||||
{
|
||||
GCHandle gch = GCHandle.FromIntPtr((IntPtr)a);
|
||||
BinaryReader br = (BinaryReader)gch.Target;
|
||||
|
||||
br.Close();
|
||||
}
|
||||
|
||||
static unsafe void Main(string[] args)
|
||||
{
|
||||
if (args.Length == 0)
|
||||
{
|
||||
Console.WriteLine("I need a file to work on:\n\nPress any key to exit.");
|
||||
while (Console.Read() == 0) ;
|
||||
return;
|
||||
}
|
||||
mpg123clr.mpg.ErrorCode err;
|
||||
|
||||
string filename = args[0];
|
||||
|
||||
err = mpg123.mpg123_init();
|
||||
Console.WriteLine("Init:");
|
||||
|
||||
RunReplaceReaderTest(filename);
|
||||
RunReplaceReaderHandleTest(filename);
|
||||
RunFrameByFrameTest(filename);
|
||||
|
||||
Console.WriteLine("\nPress any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
mpg123.mpg123_exit();
|
||||
}
|
||||
|
||||
static unsafe void RunReplaceReaderTest(string filename)
|
||||
{
|
||||
mpg123clr.mpg.ErrorCode err;
|
||||
|
||||
mpg123 mp = new mpg123();
|
||||
err = mp.mpg123_new();
|
||||
|
||||
// ReplaceReader example
|
||||
mpg123clr.mpg123.ReadDelegate rdel = MyReadFunc;
|
||||
mpg123clr.mpg123.SeekDelegate sdel = MySeekFunc;
|
||||
err = mp.mpg123_replace_reader(rdel, sdel);
|
||||
|
||||
//err = mp.mpg123_open(args[0]);
|
||||
err = mp.mpg123_open(filename);
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Error: " + mp.mpg123_strerror());
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Open:");
|
||||
|
||||
// Show available decoders
|
||||
string[] Decoders = mp.mpg123_decoders();
|
||||
|
||||
if (Decoders.Length > 0)
|
||||
{
|
||||
Console.WriteLine("\nDecoders:");
|
||||
foreach (string str in Decoders) Console.WriteLine(str);
|
||||
}
|
||||
|
||||
// Show supported decoders
|
||||
string[] supDecoders = mp.mpg123_supported_decoders();
|
||||
|
||||
if (supDecoders.Length > 0)
|
||||
{
|
||||
Console.WriteLine("\nSupported Decoders:");
|
||||
foreach (string str in supDecoders) Console.WriteLine(str);
|
||||
}
|
||||
|
||||
// Show actual decoder
|
||||
Console.WriteLine("\nDecoder: " + mp.mpg123_current_decoder());
|
||||
|
||||
// Show estimated file length
|
||||
Console.WriteLine("\nLength Estimate: " + mp.mpg123_length().ToString());
|
||||
|
||||
// Scan - gets actual details including ID3v2 and Frame offsets
|
||||
err = mp.mpg123_scan();
|
||||
|
||||
// Show actual file length
|
||||
if (err == mpg123clr.mpg.ErrorCode.ok) Console.WriteLine("Length Actual : " + mp.mpg123_length().ToString());
|
||||
|
||||
// Get ID3 data
|
||||
mpg123clr.id3.mpg123id3v1 iv1;
|
||||
mpg123clr.id3.mpg123id3v2 iv2;
|
||||
err = mp.mpg123_id3(out iv1, out iv2);
|
||||
|
||||
// Show ID3v2 data
|
||||
Console.WriteLine("\nTitle : " + iv2.title);
|
||||
Console.WriteLine("Artist : " + iv2.artist);
|
||||
Console.WriteLine("Album : " + iv2.album);
|
||||
Console.WriteLine("Comment: " + iv2.comment);
|
||||
Console.WriteLine("Year : " + iv2.year);
|
||||
|
||||
// Demo seek (back to start of file - note: scan should already have done this)
|
||||
long pos = mp.mpg123_seek(0, System.IO.SeekOrigin.Begin);
|
||||
|
||||
long[] frameindex;
|
||||
long step;
|
||||
err = mp.mpg123_index(out frameindex, out step);
|
||||
|
||||
if (err == mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("\nFrameIndex:");
|
||||
foreach (long idx in frameindex)
|
||||
{
|
||||
// Console.WriteLine(idx.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
int num;
|
||||
uint cnt;
|
||||
IntPtr audio;
|
||||
|
||||
// Walk the file - effectively decode the data without using it...
|
||||
Console.WriteLine("\nWalking : " + iv2.title);
|
||||
DateTime dte, dts = DateTime.Now;
|
||||
|
||||
while (err == mpg123clr.mpg.ErrorCode.ok || err == mpg123clr.mpg.ErrorCode.new_format)
|
||||
{
|
||||
err = mp.mpg123_decode_frame(out num, out audio, out cnt);
|
||||
|
||||
// do something with "audio" here....
|
||||
}
|
||||
|
||||
dte = DateTime.Now;
|
||||
|
||||
TimeSpan ts = dte - dts;
|
||||
Console.WriteLine("Duration: " + ts.ToString());
|
||||
|
||||
mp.mpg123_close();
|
||||
}
|
||||
|
||||
mp.Dispose();
|
||||
}
|
||||
|
||||
static unsafe void RunReplaceReaderHandleTest(string filename)
|
||||
{
|
||||
mpg123clr.mpg.ErrorCode err;
|
||||
|
||||
mpg123 mp = new mpg123();
|
||||
err = mp.mpg123_new();
|
||||
|
||||
// ReplaceReader example
|
||||
mpg123clr.mpg123.ReadHandleDelegate rdel = MyHandleReadFunc;
|
||||
mpg123clr.mpg123.SeekHandleDelegate sdel = MyHandleSeekFunc;
|
||||
mpg123clr.mpg123.CleanupHandleDelegate cdel = MyHandleCleanFunc;
|
||||
err = mp.mpg123_replace_reader_handle(rdel, sdel, cdel);
|
||||
|
||||
//err = mp.mpg123_open(args[0]);
|
||||
BinaryReader br = new BinaryReader(File.OpenRead(filename));
|
||||
|
||||
err = mp.mpg123_open_handle(br);
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Error: " + mp.mpg123_strerror());
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Open:");
|
||||
|
||||
// Show available decoders
|
||||
string[] Decoders = mp.mpg123_decoders();
|
||||
|
||||
if (Decoders.Length > 0)
|
||||
{
|
||||
Console.WriteLine("\nDecoders:");
|
||||
foreach (string str in Decoders) Console.WriteLine(str);
|
||||
}
|
||||
|
||||
// Show supported decoders
|
||||
string[] supDecoders = mp.mpg123_supported_decoders();
|
||||
|
||||
if (supDecoders.Length > 0)
|
||||
{
|
||||
Console.WriteLine("\nSupported Decoders:");
|
||||
foreach (string str in supDecoders) Console.WriteLine(str);
|
||||
}
|
||||
|
||||
// Show actual decoder
|
||||
Console.WriteLine("\nDecoder: " + mp.mpg123_current_decoder());
|
||||
|
||||
// Show estimated file length
|
||||
Console.WriteLine("\nLength Estimate: " + mp.mpg123_length().ToString());
|
||||
|
||||
// Scan - gets actual details including ID3v2 and Frame offsets
|
||||
err = mp.mpg123_scan();
|
||||
|
||||
// Show actual file length
|
||||
if (err == mpg123clr.mpg.ErrorCode.ok) Console.WriteLine("Length Actual : " + mp.mpg123_length().ToString());
|
||||
|
||||
// Get ID3 data
|
||||
mpg123clr.id3.mpg123id3v1 iv1;
|
||||
mpg123clr.id3.mpg123id3v2 iv2;
|
||||
err = mp.mpg123_id3(out iv1, out iv2);
|
||||
|
||||
// Show ID3v2 data
|
||||
Console.WriteLine("\nTitle : " + iv2.title);
|
||||
Console.WriteLine("Artist : " + iv2.artist);
|
||||
Console.WriteLine("Album : " + iv2.album);
|
||||
Console.WriteLine("Comment: " + iv2.comment);
|
||||
Console.WriteLine("Year : " + iv2.year);
|
||||
|
||||
// Demo seek (back to start of file - note: scan should already have done this)
|
||||
long pos = mp.mpg123_seek(0, System.IO.SeekOrigin.Begin);
|
||||
|
||||
long[] frameindex;
|
||||
long step;
|
||||
err = mp.mpg123_index(out frameindex, out step);
|
||||
|
||||
if (err == mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("\nFrameIndex:");
|
||||
foreach (long idx in frameindex)
|
||||
{
|
||||
// Console.WriteLine(idx.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
int num;
|
||||
uint cnt;
|
||||
IntPtr audio;
|
||||
|
||||
// Walk the file - effectively decode the data without using it...
|
||||
Console.WriteLine("\nWalking : " + iv2.title);
|
||||
DateTime dte, dts = DateTime.Now;
|
||||
|
||||
while (err == mpg123clr.mpg.ErrorCode.ok || err == mpg123clr.mpg.ErrorCode.new_format)
|
||||
{
|
||||
err = mp.mpg123_decode_frame(out num, out audio, out cnt);
|
||||
|
||||
// do something with "audio" here....
|
||||
}
|
||||
|
||||
dte = DateTime.Now;
|
||||
|
||||
TimeSpan ts = dte - dts;
|
||||
Console.WriteLine("Duration: " + ts.ToString());
|
||||
|
||||
mp.mpg123_close();
|
||||
}
|
||||
|
||||
mp.Dispose();
|
||||
|
||||
}
|
||||
|
||||
static unsafe void RunFrameByFrameTest(string filename)
|
||||
{
|
||||
mpg123clr.mpg.ErrorCode err;
|
||||
|
||||
mpg123 mp = new mpg123();
|
||||
err = mp.mpg123_new();
|
||||
|
||||
err = mp.mpg123_open(filename);
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Error: " + mp.mpg123_strerror());
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Open:");
|
||||
|
||||
// Show available decoders
|
||||
string[] Decoders = mp.mpg123_decoders();
|
||||
|
||||
if (Decoders.Length > 0)
|
||||
{
|
||||
Console.WriteLine("\nDecoders:");
|
||||
foreach (string str in Decoders) Console.WriteLine(str);
|
||||
}
|
||||
|
||||
// Show supported decoders
|
||||
string[] supDecoders = mp.mpg123_supported_decoders();
|
||||
|
||||
if (supDecoders.Length > 0)
|
||||
{
|
||||
Console.WriteLine("\nSupported Decoders:");
|
||||
foreach (string str in supDecoders) Console.WriteLine(str);
|
||||
}
|
||||
|
||||
// Show actual decoder
|
||||
Console.WriteLine("\nDecoder: " + mp.mpg123_current_decoder());
|
||||
|
||||
// Show estimated file length
|
||||
Console.WriteLine("\nLength Estimate: " + mp.mpg123_length().ToString());
|
||||
|
||||
// Scan - gets actual details including ID3v2 and Frame offsets
|
||||
err = mp.mpg123_scan();
|
||||
|
||||
// Show actual file length
|
||||
if (err == mpg123clr.mpg.ErrorCode.ok) Console.WriteLine("Length Actual : " + mp.mpg123_length().ToString());
|
||||
|
||||
// Get ID3 data
|
||||
mpg123clr.id3.mpg123id3v1 iv1;
|
||||
mpg123clr.id3.mpg123id3v2 iv2;
|
||||
err = mp.mpg123_id3(out iv1, out iv2);
|
||||
|
||||
// Show ID3v2 data
|
||||
Console.WriteLine("\nTitle : " + iv2.title);
|
||||
Console.WriteLine("Artist : " + iv2.artist);
|
||||
Console.WriteLine("Album : " + iv2.album);
|
||||
Console.WriteLine("Comment: " + iv2.comment);
|
||||
Console.WriteLine("Year : " + iv2.year);
|
||||
|
||||
// Demo seek (back to start of file - note: scan should already have done this)
|
||||
long pos = mp.mpg123_seek(0, System.IO.SeekOrigin.Begin);
|
||||
|
||||
long[] frameindex;
|
||||
long step;
|
||||
err = mp.mpg123_index(out frameindex, out step);
|
||||
|
||||
if (err == mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("\nFrameIndex:");
|
||||
foreach (long idx in frameindex)
|
||||
{
|
||||
// Console.WriteLine(idx.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
int num;
|
||||
uint cnt;
|
||||
IntPtr audio;
|
||||
|
||||
// Walk the file - effectively decode the data without using it...
|
||||
Console.WriteLine("\nFrame Walking : " + iv2.title);
|
||||
DateTime dte, dts = DateTime.Now;
|
||||
|
||||
while (err == mpg123clr.mpg.ErrorCode.ok || err == mpg123clr.mpg.ErrorCode.new_format)
|
||||
{
|
||||
err = mp.mpg123_framebyframe_decode(out num, out audio, out cnt);
|
||||
err = mp.mpg123_framebyframe_next();
|
||||
|
||||
// do something with "audio" here....
|
||||
}
|
||||
|
||||
dte = DateTime.Now;
|
||||
|
||||
TimeSpan ts = dte - dts;
|
||||
Console.WriteLine("Duration: " + ts.ToString());
|
||||
|
||||
mp.mpg123_close();
|
||||
}
|
||||
|
||||
mp.Dispose();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("ReplaceReaderclr")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ReplaceReaderclr")]
|
||||
[assembly: AssemblyCopyright("© mpg123 project 2009")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("c65bdebb-51d7-41ba-875d-b2c938f187fc")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{6415FBC0-44EC-4158-8A24-127D9BAC5CEA}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>ReplaceReaderclr</RootNamespace>
|
||||
<AssemblyName>ReplaceReaderclr</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\mpg123clr\mpg123clr.vcproj">
|
||||
<Project>{99E8B20E-9C29-46BC-B766-A50F237D88BF}</Project>
|
||||
<Name>mpg123clr</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>if exist "$(SolutionDir)$(ConfigurationName)\libmpg123.dll" copy /y "$(SolutionDir)$(ConfigurationName)\libmpg123.dll" "$(TargetDir)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
331
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/feedseekclr/Program.cs
vendored
Normal file
331
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/feedseekclr/Program.cs
vendored
Normal file
@ -0,0 +1,331 @@
|
||||
/*
|
||||
feedseekclr: test program for mpg123clr, showing how to use fuzzy seeking in feeder mode
|
||||
copyright 2009 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
based on feedseek.c example for libmpg123.
|
||||
|
||||
Comment (Malcolm Boczek)
|
||||
this CLR example has been written to allow easy comparison to the original feedseek.c example
|
||||
and uses some constructs that would not normally be used in a C# environment,
|
||||
eg: byte[]/ASCII text, Marshal.Copy, static fields, lots of casts etc.
|
||||
*/
|
||||
|
||||
/*
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using mpg123clr;
|
||||
|
||||
namespace feedseekclr
|
||||
{
|
||||
class Program
|
||||
{
|
||||
const int WAVE_FORMAT_PCM = 0x0001;
|
||||
const int WAVE_FORMAT_IEEE_FLOAT = 0x0003;
|
||||
|
||||
static BinaryWriter _out;
|
||||
static long totaloffset, dataoffset;
|
||||
static int rate;
|
||||
static mpg123clr.mpg.channelcount channels;
|
||||
static mpg123clr.mpg.enc enc;
|
||||
static short bitspersample, wavformat;
|
||||
|
||||
// write wav header
|
||||
static void initwav()
|
||||
{
|
||||
uint tmp32 = 0;
|
||||
ushort tmp16 = 0;
|
||||
byte[] rifftxt = new byte[] { (byte)'R', (byte)'I', (byte)'F', (byte)'F' };
|
||||
byte[] wavetxt = new byte[] { (byte)'W', (byte)'A', (byte)'V', (byte)'E' };
|
||||
byte[] fmttxt = new byte[] { (byte)'f', (byte)'m', (byte)'t', (byte)' ' };
|
||||
byte[] datatxt = new byte[] { (byte)'d', (byte)'a', (byte)'t', (byte)'a' };
|
||||
|
||||
_out.Write(rifftxt);
|
||||
totaloffset = _out.BaseStream.Position;
|
||||
|
||||
_out.Write(tmp32); // total size
|
||||
_out.Write(wavetxt);
|
||||
_out.Write(fmttxt);
|
||||
|
||||
tmp32 = 16;
|
||||
_out.Write(tmp32); // format length
|
||||
|
||||
tmp16 = (ushort)wavformat;
|
||||
_out.Write(tmp16); // format
|
||||
|
||||
tmp16 = (ushort)channels;
|
||||
_out.Write(tmp16); // channels
|
||||
|
||||
tmp32 = (uint)rate;
|
||||
_out.Write(tmp32); // sample rate
|
||||
|
||||
tmp32 = (uint) (rate * bitspersample / 8 * (int)channels);
|
||||
_out.Write(tmp32); // bytes / second
|
||||
|
||||
tmp16 = (ushort)(bitspersample / 8 * (int)channels); // float 16 or signed int 16
|
||||
_out.Write(tmp16); // block align
|
||||
|
||||
tmp16 = (ushort)bitspersample;
|
||||
_out.Write(tmp16); // bits per sample
|
||||
|
||||
_out.Write(datatxt);
|
||||
|
||||
tmp32 = 0;
|
||||
dataoffset = _out.BaseStream.Position;
|
||||
|
||||
_out.Write(tmp32); // data length
|
||||
|
||||
}
|
||||
|
||||
// rewrite wav header with final length infos
|
||||
static void closewav()
|
||||
{
|
||||
uint tmp32 = 0;
|
||||
// ushort tmp16 = 0;
|
||||
|
||||
int total = (int)_out.BaseStream.Position;
|
||||
|
||||
_out.Seek((int)totaloffset, SeekOrigin.Begin);
|
||||
tmp32 = (uint)(total - (totaloffset + 4));
|
||||
|
||||
_out.Write(tmp32);
|
||||
|
||||
_out.Seek((int)dataoffset, SeekOrigin.Begin);
|
||||
|
||||
tmp32 = (uint)(total - (dataoffset + 4));
|
||||
|
||||
_out.Write(tmp32);
|
||||
}
|
||||
|
||||
// determine correct wav format and bits per sample
|
||||
// from mpg123 enc value
|
||||
static void initwavformat()
|
||||
{
|
||||
if ((enc & mpg123clr.mpg.enc.enc_float_64) != 0)
|
||||
{
|
||||
bitspersample = 64;
|
||||
wavformat = WAVE_FORMAT_IEEE_FLOAT;
|
||||
}
|
||||
else if ((enc & mpg123clr.mpg.enc.enc_float_32) != 0)
|
||||
{
|
||||
bitspersample = 32;
|
||||
wavformat = WAVE_FORMAT_IEEE_FLOAT;
|
||||
}
|
||||
else if ((enc & mpg123clr.mpg.enc.enc_16) != 0)
|
||||
{
|
||||
bitspersample = 16;
|
||||
wavformat = WAVE_FORMAT_PCM;
|
||||
}
|
||||
else
|
||||
{
|
||||
bitspersample = 8;
|
||||
wavformat = WAVE_FORMAT_PCM;
|
||||
}
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
const long INBUFF = 16384 * 2 * 2;
|
||||
|
||||
int ret;
|
||||
mpg123clr.mpg.ErrorCode state;
|
||||
long inoffset,inc = 0;
|
||||
long outc = 0;
|
||||
byte[] buf = new byte[INBUFF];
|
||||
|
||||
if (args.Length < 2)
|
||||
{
|
||||
Console.WriteLine("Please supply in and out filenames\n");
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
mpg123clr.mpg.ErrorCode err;
|
||||
|
||||
err = mpg123.mpg123_init();
|
||||
|
||||
mpg123 mp = new mpg123();
|
||||
err = mp.mpg123_new();
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Unable to create mpg123 handle: " + mpg123error.mpg123_plain_strerror(err));
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
mp.mpg123_param(mpg123clr.mpg.parms.verbose, 4, 0);
|
||||
|
||||
err = mp.mpg123_param(mpg123clr.mpg.parms.flags,
|
||||
(int) (mpg123clr.mpg.param_flags.fuzzy |
|
||||
mpg123clr.mpg.param_flags.seekbuffer |
|
||||
mpg123clr.mpg.param_flags.gapless), 0);
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Unable to set library options: " + mp.mpg123_strerror());
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Let the seek index auto-grow and contain an entry for every frame
|
||||
err = mp.mpg123_param(mpg123clr.mpg.parms.index_size, -1, 0);
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Unable to set index size: " + mp.mpg123_strerror());
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Use float output formats only
|
||||
err = mp.mpg123_format_none();
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Unable to disable all output formats: " + mp.mpg123_strerror());
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int[] rates = mp.mpg123_rates();
|
||||
foreach (int rate in rates)
|
||||
{
|
||||
err = mp.mpg123_format(rate, mpg123clr.mpg.channelcount.both, mpg123clr.mpg.enc.enc_float_32);
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Unable to set float output formats: " + mp.mpg123_strerror());
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
err = mp.mpg123_open_feed();
|
||||
|
||||
if (err != mpg123clr.mpg.ErrorCode.ok)
|
||||
{
|
||||
Console.WriteLine("Unable to open feed: " + mp.mpg123_strerror());
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
string filename = args[0];
|
||||
BinaryReader _in = new BinaryReader(File.Open(filename, FileMode.Open));
|
||||
|
||||
_out = new BinaryWriter(File.Open(args[1], FileMode.Create));
|
||||
|
||||
while ((ret = (int)(mp.mpg123_feedseek(95000, SeekOrigin.Begin, out inoffset))) == (int)mpg123clr.mpg.ErrorCode.need_more) // equiv to mpg123_feedseek
|
||||
{
|
||||
buf = _in.ReadBytes((int)INBUFF);
|
||||
|
||||
if (buf.Length <= 0) break;
|
||||
|
||||
inc += buf.Length;
|
||||
|
||||
state = mp.mpg123_feed(buf, (uint)buf.Length);
|
||||
|
||||
if (state == mpg123clr.mpg.ErrorCode.err)
|
||||
{
|
||||
Console.WriteLine("Feed error: " + mp.mpg123_strerror());
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_in.BaseStream.Seek(inoffset, SeekOrigin.Begin);
|
||||
|
||||
while (true)
|
||||
{
|
||||
buf = _in.ReadBytes((int)INBUFF);
|
||||
if (buf.Length <= 0) break;
|
||||
|
||||
inc += buf.Length;
|
||||
|
||||
err = mp.mpg123_feed(buf, (uint)buf.Length);
|
||||
|
||||
int num;
|
||||
uint bytes;
|
||||
IntPtr audio;
|
||||
|
||||
while (err != mpg123clr.mpg.ErrorCode.err && err != mpg123clr.mpg.ErrorCode.need_more)
|
||||
{
|
||||
err = mp.mpg123_decode_frame(out num, out audio, out bytes);
|
||||
|
||||
if (err == mpg123clr.mpg.ErrorCode.new_format)
|
||||
{
|
||||
mp.mpg123_getformat(out rate, out channels, out enc);
|
||||
|
||||
initwavformat();
|
||||
initwav();
|
||||
}
|
||||
|
||||
// (Surprisingly?) even though it does a Marshal.Copy it's as efficient as the pointer example below!!!
|
||||
if (bytes > 0)
|
||||
{
|
||||
byte[] outbuf = new byte[bytes];
|
||||
Marshal.Copy(audio, outbuf, 0, (int)bytes);
|
||||
|
||||
_out.Write(outbuf, 0, (int)bytes);
|
||||
}
|
||||
|
||||
// Alternative example of direct usage of audio data via pointers - note it needs "unsafe"
|
||||
// and I'm fairly sure pointers should be "fixed" first
|
||||
// if (bytes > 0)
|
||||
// unsafe{
|
||||
// byte* p = (byte*)audio;
|
||||
// for (int ii = 0; ii < bytes; ii++)
|
||||
// _out.Write(*p++);
|
||||
// }
|
||||
|
||||
outc += bytes;
|
||||
}
|
||||
|
||||
if (err == mpg123clr.mpg.ErrorCode.err)
|
||||
{
|
||||
Console.WriteLine("Error: " + mp.mpg123_strerror());
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Console.WriteLine("Finished");
|
||||
|
||||
closewav();
|
||||
|
||||
_out.Close();
|
||||
_in.Close();
|
||||
|
||||
mp.mpg123_delete();
|
||||
mp.Dispose();
|
||||
|
||||
mpg123.mpg123_exit();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("feedseekclr")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("feedseekclr")]
|
||||
[assembly: AssemblyCopyright("© mpg123 project 2009")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("1fdb46e2-eb93-4e8f-8266-0d386215cc75")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{626B52AB-1E46-46FB-A259-03DCE3994BE6}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>feedseekclr</RootNamespace>
|
||||
<AssemblyName>feedseekclr</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\mpg123clr\mpg123clr.vcproj">
|
||||
<Project>{99E8B20E-9C29-46BC-B766-A50F237D88BF}</Project>
|
||||
<Name>mpg123clr</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>if exist "$(SolutionDir)$(ConfigurationName)\libmpg123.dll" copy /y "$(SolutionDir)$(ConfigurationName)\libmpg123.dll" "$(TargetDir)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
79
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/scanclr/Program.cs
vendored
Normal file
79
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/scanclr/Program.cs
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
/*
|
||||
scanclr: Estimate length (sample count) of a mpeg file and compare to length from exact scan.
|
||||
|
||||
copyright 2009 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
CLR example initially written by Malcolm Boczek
|
||||
Based on scan.c example initially written by Thomas Orgis
|
||||
*/
|
||||
|
||||
/* Note the lack of error checking here.
|
||||
While it would be nicer to inform the user about troubles, libmpg123 is designed _not_ to bite you on operations with invalid handles , etc.
|
||||
You just jet invalid results on invalid operations... */
|
||||
/* Ditto for mpg123clr (MB) */
|
||||
|
||||
/*
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using mpg123clr;
|
||||
|
||||
namespace scanclr
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if (args.Length < 1)
|
||||
{
|
||||
Console.WriteLine("\nI will give you the estimated and exact sample lengths of MPEG audio files.\n");
|
||||
Console.WriteLine("\nUsage: scanclr <mpeg audio file list>\n\n");
|
||||
Console.WriteLine("Press any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
mpg123clr.mpg.ErrorCode err;
|
||||
|
||||
err = mpg123.mpg123_init();
|
||||
|
||||
mpg123 mp = new mpg123();
|
||||
err = mp.mpg123_new();
|
||||
|
||||
mp.mpg123_param(mpg123clr.mpg.parms.resync_limit, -1, 0);
|
||||
|
||||
foreach (string name in args)
|
||||
{
|
||||
|
||||
err = mp.mpg123_open(name);
|
||||
|
||||
long a, b;
|
||||
|
||||
a = mp.mpg123_length();
|
||||
|
||||
mp.mpg123_scan();
|
||||
|
||||
b = mp.mpg123_length();
|
||||
|
||||
mp.mpg123_close();
|
||||
|
||||
Console.WriteLine(string.Format("File {0}: estimated {1} vs. scanned {2}", name, a, b));
|
||||
}
|
||||
|
||||
Console.WriteLine("\nPress any key to exit:");
|
||||
while (Console.Read() == 0) ;
|
||||
|
||||
mp.Dispose();
|
||||
|
||||
mpg123.mpg123_exit();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("scanclr")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("scanclr")]
|
||||
[assembly: AssemblyCopyright("© mpg123 project 2009")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("a22ea83e-2dba-4835-b0d8-cca3f0bc73a8")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
70
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/scanclr/scanclr.csproj
vendored
Normal file
70
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/examples/scanclr/scanclr.csproj
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{53664927-0A21-4056-A5D5-C6A1B4B1F839}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>scanclr</RootNamespace>
|
||||
<AssemblyName>scanclr</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\mpg123clr\mpg123clr.vcproj">
|
||||
<Project>{99E8B20E-9C29-46BC-B766-A50F237D88BF}</Project>
|
||||
<Name>mpg123clr</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>if exist "$(SolutionDir)$(ConfigurationName)\libmpg123.dll" copy /y "$(SolutionDir)$(ConfigurationName)\libmpg123.dll" "$(TargetDir)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
76
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/AssemblyInfo.cpp
vendored
Normal file
76
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/AssemblyInfo.cpp
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
*/
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
using namespace System::Reflection;
|
||||
using namespace System::Runtime::CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly:AssemblyTitleAttribute("mpg123clr.dll")];
|
||||
[assembly:AssemblyDescriptionAttribute("mpg123clr Dynamic Link Library")];
|
||||
[assembly:AssemblyConfigurationAttribute("")];
|
||||
[assembly:AssemblyCompanyAttribute("mpg123 Project")];
|
||||
[assembly:AssemblyProductAttribute("mpg123clr.dll")];
|
||||
[assembly:AssemblyCopyrightAttribute("<EFBFBD> 2009-2011 by the mpg123 project")];
|
||||
[assembly:AssemblyTrademarkAttribute("")];
|
||||
[assembly:AssemblyCultureAttribute("")];
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the value or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly:AssemblyVersionAttribute("1.13.0.0")];
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project directory.
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly:AssemblyDelaySignAttribute(false)];
|
||||
[assembly:AssemblyKeyFileAttribute("")];
|
||||
[assembly:AssemblyKeyNameAttribute("")];
|
165
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/ReadMe.txt
vendored
Normal file
165
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/ReadMe.txt
vendored
Normal file
@ -0,0 +1,165 @@
|
||||
========================================================================
|
||||
DYNAMIC LINK LIBRARY : mpg123clr Project Overview
|
||||
========================================================================
|
||||
|
||||
Project Installation:
|
||||
|
||||
The project is part of a Visual Studio 2008 Solution.
|
||||
|
||||
The Visual Studio solution file is 2008clr.sln located in a folder/directory named 2008clr.
|
||||
|
||||
This folder/directory should be located in the mpg123/ports/MSVC++ folder to maintain file relationships
|
||||
with required mpg123 library files. i.e. at mpg123/ports/MSVC++/2008clr.
|
||||
|
||||
The solution includes the following projects:
|
||||
|
||||
mpg123clr The mpg123 CLR project. This creates the CLR compatible DLL file.
|
||||
scanclr Demonstration project for comparison with scan.c example.
|
||||
feedseekclr Demonstration project for comparison with feedseek.c example
|
||||
replacereaderclr Demonstration project, how to implement ReplaceReader in CLR (proof of concept)
|
||||
libmpg123 For convenience, ensures that libmpg123.lib is available for linking
|
||||
|
||||
=========================================================================
|
||||
Compiling:
|
||||
Configuration Manager:
|
||||
|
||||
mpg123clr requires linking to a libmpg123 static library, this library must be compiled prior to
|
||||
compiling the clr projects. mpg123clr uses relative folder position during linking; therefore either:-
|
||||
|
||||
ensure that the 2008clr solution is correctly located within the ports\msvc++ folder, or
|
||||
change the "linker->input->additional dependencies" to suit your installation configuration
|
||||
|
||||
NOTE: x64 Active Solution Platform configurations are not supplied with this solution but have been tested.
|
||||
(Effectively all that is required is to change all "include" references to account for the "x64" output locations)
|
||||
|
||||
NOTE: The "unsafe" context of the ReplaceReaderClr project is only required to allow the use of callbacks.
|
||||
mpg123clr is written to avoid the use of "unsafe" for the majority of normal operations.
|
||||
|
||||
|
||||
==========================================================================
|
||||
Using mpg123clr:
|
||||
|
||||
Mpg123clr is a CLR ready dll. Simply add a reference to the mpg123clr.dll file in your application project.
|
||||
|
||||
You may also add a "using" directive in your program files. C# e.g. using mpg123clr;
|
||||
|
||||
The mpg123clr project is configured to create an additional Intellisense documentation file (mpg123clr.xml)
|
||||
to assist usage. If you manually relocate the .dll please also copy the .xml file to ensure correct Intellisense
|
||||
operation.
|
||||
|
||||
===========================================================================
|
||||
Common Errors:
|
||||
|
||||
1) Problem: "Unhandled Exception - file not found" error when the application is executed.
|
||||
Cause: Incorrect libmpg123 library build / missing libmpg123.dll.
|
||||
Solution: Copy libmpg123.dll to the application output folder - possibly in a Post-Build Event (see scanclr for
|
||||
an example).
|
||||
Explanation: mpg123clr requires static library libmpg123.lib and NOT dynamic library libmpg123.dll.
|
||||
If the libmpg123 library is built using an incorrect Project Context (such as Debug_Generic_Dll), mpg123clr
|
||||
will attempt to load the libmpg123.dll at runtime even though this file is not required.
|
||||
Alternatively: Use Configuration Manager and select a non-dll build context for the libmpg123 project.
|
||||
(i.e. Debug_Generic not Debug_Generic_Dll)
|
||||
|
||||
===========================================================================
|
||||
Developer Notes:
|
||||
|
||||
1) Documentation <remarks> do not appear in CLR Intellisense environment (at time of writing).
|
||||
So deferred in favour of <para> within <summary>.
|
||||
2) During development "off_t" parameters conflicted with intellisense (although size_t worked just fine)
|
||||
Since many CLR functions that refer to off_t features (e.g. positioners) actually expect 64bit long
|
||||
(or long long in C++) parameters, I've implemented off_t as a long long - with one notable exception.
|
||||
This fixed intellisense and accommodates the CLR 64bit long implementation positioners: And then intellisense
|
||||
started working correctly and made this a moot point - at least as far as intellisense is concerned.
|
||||
3) off_t notable exception - SeekDelegate, SeekHandleDelegate
|
||||
Usually 2008clr functions are called by the callee, long long (clr 64bit long) can be marshaled and passed
|
||||
to libmpg123. The seek delegate is called directly by the libmpg123 seek functions - there isn't an opportunity
|
||||
to marshal the offending parameters. A library compiled in 32 bit will expect the SeekDelegate to have a 32bit
|
||||
position parameter but in 64bit compilation the same parameter will be 64bit. Therefore the need to be correct
|
||||
overrides the need for consistency with CLR 64bit positioners.
|
||||
SIDE NOTE: In early tests the SeekDelegate was defined with a long long parameter - libmpg123 called it oblivious
|
||||
to the fact that the type was incorrect. The only impact was that the 32bit position and 32bit origin (whence)
|
||||
were compacted to a single 64bit parameter. This is fixed, no longer an issue!!!
|
||||
4) PosixSeek and PosixRead ARE ONLY INCLUDED AS PROOF OF CONCEPT - to prove that the callbacks into CLR would
|
||||
function correctly with libmpg123 cdecl calls. It saved making a separate dll for the posix elements.
|
||||
REPEAT AFTER ME: Not for normal consumption....
|
||||
5) The __clrcall decoration of mpg123clr functions is not strictly necessary for Visual Studio 2005 and later,
|
||||
but has been left in for compatibility with earlier versions. See MS documentation of "double thunking"
|
||||
6) Many functions use pin_ptr to pin the return variables prior to calling the libmpg123 function, this was
|
||||
considered as an alternative to avoid the use of local variables with attendant overhead of
|
||||
allocate/use/copy/destroy etc. In practice pin_ptr has significant overhead, empirical tests showed very
|
||||
little performance difference between either method.
|
||||
7) Set pin_ptr to NULL after use, to force early GC (recommended). Carried out performance trials and found
|
||||
insignificant impact. Since most functions are likely to be used repeatedly decided to follow recommended usage.
|
||||
If code analysis proves this to be redundant - can be removed...
|
||||
(1.9.0.1 update) "insignificant" in Debug mode, quite significant if the debug overhead is removed,
|
||||
i.e. Release mode. So try/finally blocks removed in favour of allocating temporary local return variable.
|
||||
8) (1.12.0.0 update) Support for mpg123_open_handle warrants further description... here it is.
|
||||
a) Pinning of delegates is not required. See Microsoft: C++, How to: Marshal Callbacks and Delegates Using C++ Interop
|
||||
b) Pinning of objects is an entirely different matter, so why is the open_handle object not pinned?
|
||||
Answer: Because it's an object. I allowed passing of any object not just handles.
|
||||
i) a pin_ptr cannot be a field member for instance scope.
|
||||
ii) cannot pin the object itself because there's no object.field to pin
|
||||
iii) cannot pin the object target because the referenced object may be unblittable.
|
||||
iv) GCHandle.Alloc(obj, GCHandleType.Pinned) doesn't work on unblittable objects (eg managed references like BinaryReader)
|
||||
Since I don't restrict which objects may be passed I'm forced to exclude pinning.
|
||||
c) The generated handle doesn't need to be pinned. GCHandle.Alloc(obj) creates a potentially GC relocatable object
|
||||
containing a Handle to the object. The GCHandle.ToIntPtr(userObjectHandle) creates an integer representation of the
|
||||
handle that is valid irrespective of any GC relocation of either the object or the GCHandle and can therefore be
|
||||
passed through unmanaged code to CLR native methods that can re-reference the original object via GCHandle.FromIntPtr
|
||||
and gch.Target.
|
||||
All this seems relatively efficient, certainly there is little performance difference between the ReplaceReader
|
||||
and ReplaceReaderHandle sample code.
|
||||
|
||||
=============================================================================
|
||||
Tested/Untested
|
||||
|
||||
I haven't used mpg123clr in a production project yet, although one is about to start. Therefore EVERYTHING should
|
||||
be treated as though unproven. UPDATE: the scanclr, feedseekclr and replacereaderclr examples have provided a basic
|
||||
functional test.
|
||||
|
||||
Largefile support totally untested... would appreciate a volunteer.
|
||||
|
||||
The majority of functions have been tried in test projects with the following exceptions.
|
||||
|
||||
64bit compilation. mpg123clr compiles correctly in 64bit x64 platform mode, but hasn't been tested.
|
||||
|
||||
ICY(icy_meta); Never had genuine ICY data to test with.
|
||||
Icy2Utf8(icy_text); Never tried. Please provide sample material.
|
||||
enc_from_id3(encbyte); Works on libmpg123 enums, never had real world text samples.
|
||||
store_utf8(...); Works with CLR generated text, not tried with real world text samples.
|
||||
mpg123str.strlen(...) Not tested with utf8 text strings. Please provide sample material.
|
||||
|
||||
==============================================================================
|
||||
Documentation
|
||||
|
||||
mpg123clr is 90% documentation, use intellisense as your reference. If in doubt refer back to the libmpg123
|
||||
documents. NOTE: You need to build the mpg123clr library to create the intellisense file.
|
||||
|
||||
===============================================================================
|
||||
Error Trapping
|
||||
|
||||
libmpg123 is an error agnostic library - it shouldn't generate errors, but neither does it trap them.
|
||||
|
||||
mpg123clr is built on the same concept although some CLR generated errors have been trapped. My personal
|
||||
preference is that exceptions should be avoided not relied on...
|
||||
|
||||
THE CALLING APPLICATION IS RESPONSIBLE FOR ERROR DETECTION, TRAPPING AND CORRECTION.
|
||||
|
||||
All projects are "as is" with no express or implied warranty. Demonstration projects are to demonstrate the
|
||||
use of the library and are NOT considered examples of good coding practice. Use at own risk.
|
||||
|
||||
===============================================================================
|
||||
Revision History
|
||||
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.9.0.0 30-Sep-09 Project config - if exists, copy libmpg123.dll to app output folder (mb)
|
||||
1.9.0.0 01-Oct-09 Technical cleanup - subst nullptr for NULL (mb)
|
||||
1.9.0.1 24-Nov-09 Performance update - removed try/finally (mb)
|
||||
1.12.0.0 14-Apr-10 Release match - added open_handle and framebyframe support (mb)
|
||||
1.13.0.0 13-Jan-11 Release match - added encsize and strlen support (mb)
|
||||
|
||||
Constructive feedback preferred.
|
||||
|
||||
Malcolm Boczek
|
||||
mpg123clr original author.
|
91
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/advanced.cpp
vendored
Normal file
91
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/advanced.cpp
vendored
Normal file
@ -0,0 +1,91 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.9.0.0 13-Oct-09 pin_ptr = nullptr on return (mb)
|
||||
1.9.0.1 24-Nov-09 performance update - removed try/finally (mb)
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "advanced.h"
|
||||
|
||||
mpg123clr::advpars::advpars(int% error)
|
||||
{
|
||||
pin_ptr<int> err = &error;
|
||||
mp = ::mpg123_new_pars(err);
|
||||
|
||||
err = nullptr;
|
||||
}
|
||||
|
||||
mpg123clr::advpars::~advpars(void)
|
||||
{
|
||||
// clean up code to release managed resources
|
||||
// ...
|
||||
|
||||
// call Finalizer to clean up unmanaged resources
|
||||
this->!advpars();
|
||||
}
|
||||
|
||||
mpg123clr::advpars::!advpars(void)
|
||||
{
|
||||
if (mp != NULL)
|
||||
{
|
||||
::mpg123_delete_pars(mp);
|
||||
mp = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::advpars::mpg123_fmt_none(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_fmt_none(mp);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::advpars::mpg123_fmt_all(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_fmt_all(mp);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::advpars::mpg123_fmt(int rate, mpg123clr::mpg::channelcount channels, int encodings)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_fmt(mp, rate, (int)channels, encodings);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::channelcount mpg123clr::advpars::mpg123_fmt_support(int rate, int encodings)
|
||||
{
|
||||
return (mpg123clr::mpg::channelcount) ::mpg123_fmt_support(mp, rate, encodings);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::advpars::mpg123_par(mpg123clr::mpg::parms type, int val, double fval)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_par(mp, (mpg123_parms) type, val, fval);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::advpars::mpg123_getpar(mpg123clr::mpg::parms type, [Out] int% val, [Out] double% fval)
|
||||
{
|
||||
// Avoid need for local intermediary variables
|
||||
pin_ptr<int> _val = &val;
|
||||
pin_ptr<double> _fval = &fval;
|
||||
|
||||
int ret = ::mpg123_getpar(mp, (mpg123_parms) type, (long*)_val, _fval);
|
||||
|
||||
_fval = nullptr;
|
||||
_val = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
|
130
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/advanced.h
vendored
Normal file
130
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/advanced.h
vendored
Normal file
@ -0,0 +1,130 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
#include "enum.h"
|
||||
#include "error.h"
|
||||
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
// Recommended usage when creating reference type on the managed heap (not using stack semantics
|
||||
// for reference types...) [see (Microsoft) Destructors and Finalizers in Visual C++]
|
||||
//
|
||||
// C++/CLI
|
||||
// A myA;
|
||||
// // use myA here
|
||||
//
|
||||
// Equivalent user code:
|
||||
//
|
||||
// A ^ myA = gcnew A;
|
||||
// try { /* use myA here */ } finally { delete myA; }
|
||||
//
|
||||
//
|
||||
// C# (from wikipedia)
|
||||
// using(A myA = new A()) { /* Use myA here */ }
|
||||
// Compiler calls myA.Dispose(), in a "finally" of a "try/finally" block
|
||||
//
|
||||
// Equivalent user code:
|
||||
//
|
||||
// A myA = new myA();
|
||||
// try { /* Use myA here */ } finally { myA.Dispose(); }
|
||||
//
|
||||
// Otherwise Finalizer will be nondeterministically called by GC
|
||||
|
||||
|
||||
///<summary> CLR wrapper for mpg123_pars object.</summary>
|
||||
public ref class advpars
|
||||
{
|
||||
protected public:
|
||||
mpg123_pars* mp;
|
||||
|
||||
protected:
|
||||
!advpars(void);
|
||||
|
||||
public:
|
||||
///<summary>Constructor.</summary>
|
||||
///<param name="error">Returns MPG123_OK or mpg123 error code.</param>
|
||||
advpars([Out] int% error);
|
||||
|
||||
///<summary>Destructor.</summary>
|
||||
~advpars(void);
|
||||
|
||||
///<summary>Configure mpg123 parameters to accept no output formats.
|
||||
///<para>Use to clear default parameters prior to applying specific settings.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_fmt_none(void);
|
||||
|
||||
///<summary>Configure mpg123 parameters to accept all formats including custom rate you may set - this is the default.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_fmt_all(void);
|
||||
|
||||
///<summary>Configure detailed output formats.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="rate">Sample rate (Hertz)</param>
|
||||
///<param name="channels">Combination of channelcount.stereo and channelcount.mono</param>
|
||||
///<param name="encodings">Combination of accepted encodings for rate and channels e.g. enc.enc_signed16 | enc.enc_ulaw_8 (or 0 for none)</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
/// VERSION CHECK: long as int for Intellisense
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_fmt(int rate, mpg123clr::mpg::channelcount channels, int encodings);
|
||||
|
||||
///<summary>Get available support for supplied rate and encoding.
|
||||
///<para>Returns 0 for no support (includes invalid parameters), or combination of channelcount.stereo and channelcount.mono.</para>
|
||||
///</summary>
|
||||
///<param name="rate">Sample rate (Hertz)</param>
|
||||
///<param name="encoding">Combination of accepted encodings for rate and channels e.g. enc.enc_signed16 | enc.enc_ulaw_8 (or 0 for none)</param>
|
||||
///<returns>Returns 0 for no support (includes invalid parameters), or combination of channelcount.stereo and channelcount.mono.</returns>
|
||||
/// VERSION CHECK: long as int for Intellisense
|
||||
mpg123clr::mpg::channelcount __clrcall mpg123_fmt_support(int rate, int encoding);
|
||||
|
||||
///<summary>Set a specific advpars value.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="type">Specifies the advpars parameter to be set.</param>
|
||||
///<param name="val">The integer value to be applied.</param>
|
||||
///<param name="fval">The real value to be applied.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
/// VERSION CHECK: long as int for Intellisense
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_par(mpg123clr::mpg::parms type, int val, double fval);
|
||||
|
||||
///<summary>Get a specific advpars value.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="type">Specifies the advpars parameter to be returned.</param>
|
||||
///<param name="val">Returns the applicable integer value.</param>
|
||||
///<param name="fval">Returns the applicable real value.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
/// VERSION CHECK: long as int for Intellisense
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_getpar(mpg123clr::mpg::parms type, [Out] int% val, [Out] double% fval);
|
||||
};
|
||||
|
||||
}
|
19
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/dllmain.cpp
vendored
Normal file
19
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/dllmain.cpp
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// dllmain.cpp : Defines the entry point for the DLL application.
|
||||
#include "stdafx.h"
|
||||
|
||||
BOOL APIENTRY DllMain( HMODULE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
switch (ul_reason_for_call)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
case DLL_THREAD_ATTACH:
|
||||
case DLL_THREAD_DETACH:
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
218
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/enum.h
vendored
Normal file
218
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/enum.h
vendored
Normal file
@ -0,0 +1,218 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2011 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.10.0.0 30-Nov-09 release match - added mpg123_feature (mb)
|
||||
1.13.0.0 13-Jan-11 release match (mb)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
///<summary>Mpg123 enumerations.</summary>
|
||||
namespace mpg
|
||||
{
|
||||
|
||||
///<summary>Enumeration of the parameters types that it is possible to set/get.</summary>
|
||||
public enum class parms
|
||||
{
|
||||
verbose = MPG123_VERBOSE, /// set verbosity value for enabling messages to stderr, >= 0 makes sense (integer)
|
||||
flags = MPG123_FLAGS, /// set all flags, p.ex val = MPG123_GAPLESS|MPG123_MONO_MIX (integer)
|
||||
add_flags = MPG123_ADD_FLAGS, /// add some flags (integer)
|
||||
force_rate = MPG123_FORCE_RATE, /// when value > 0, force output rate to that value (integer)
|
||||
down_sample = MPG123_DOWN_SAMPLE, /// 0=native rate, 1=half rate, 2=quarter rate (integer)
|
||||
rva = MPG123_RVA, /// one of the RVA choices above (integer)
|
||||
downspeed = MPG123_DOWNSPEED, /// play a frame N times (integer)
|
||||
upspeed = MPG123_UPSPEED, /// play every Nth frame (integer)
|
||||
start_frame = MPG123_START_FRAME, /// start with this frame (skip frames before that, integer)
|
||||
decode_frames = MPG123_DECODE_FRAMES, /// decode only this number of frames (integer)
|
||||
icy_interval = MPG123_ICY_INTERVAL, /// stream contains ICY metadata with this interval (integer)
|
||||
outscale = MPG123_OUTSCALE, /// the scale for output samples (amplitude - integer or float according to mpg123 output format, normally integer)
|
||||
timeout = MPG123_TIMEOUT, /// timeout for reading from a stream (not supported on win32, integer)
|
||||
remove_flags = MPG123_REMOVE_FLAGS, /// remove some flags (inverse of MPG123_ADD_FLAGS, integer)
|
||||
resync_limit = MPG123_RESYNC_LIMIT, /// Try resync on frame parsing for that many bytes or until end of stream (<0 ... integer).
|
||||
index_size = MPG123_INDEX_SIZE, /// Set the frame index size (if supported). Values <0 mean that the index is allowed to grow dynamically in these steps (in positive direction, of course) -- Use this when you really want a full index with every individual frame.
|
||||
preframes = MPG123_PREFRAMES /// Decode/ignore that many frames in advance for layer 3. This is needed to fill bit reservoir after seeking, for example (but also at least one frame in advance is needed to have all "normal" data for layer 3). Give a positive integer value, please.
|
||||
|
||||
};
|
||||
|
||||
|
||||
///<summary>Parameter flag bits.</summary>
|
||||
///<remarks>Equivalent to MPG123_FLAGS, use the usual binary or ( | ) to combine.</remarks>
|
||||
public enum class param_flags
|
||||
{
|
||||
force_mono = MPG123_FORCE_MONO, /// 0111 Force some mono mode: This is a test bitmask for seeing if any mono forcing is active.
|
||||
mono_left = MPG123_MONO_LEFT, /// 0001 Force playback of left channel only.
|
||||
mono_right = MPG123_MONO_RIGHT, /// 0010 Force playback of right channel only.
|
||||
mono_mix = MPG123_MONO_MIX, /// 0100 Force playback of mixed mono.
|
||||
force_stereo = MPG123_FORCE_STEREO, /// 1000 Force stereo output.
|
||||
force_8bit = MPG123_FORCE_8BIT, /// 00010000 Force 8bit formats.
|
||||
quiet = MPG123_QUIET, /// 00100000 Suppress any printouts (overrules verbose).
|
||||
gapless = MPG123_GAPLESS, /// 01000000 Enable gapless decoding (default on if libmpg123 has support).
|
||||
no_resync = MPG123_NO_RESYNC, /// 10000000 Disable resync stream after error.
|
||||
seekbuffer = MPG123_SEEKBUFFER, /// 000100000000 Enable small buffer on non-seekable streams to allow some peek-ahead (for better MPEG sync).
|
||||
fuzzy = MPG123_FUZZY, /// 001000000000 Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC)
|
||||
force_float = MPG123_FORCE_FLOAT, /// 010000000000 Force floating point output (32 or 64 bits depends on mpg123 internal precision).
|
||||
|
||||
///<summary>Prevent ID3 text translation to UTF-8.
|
||||
///<para>NOTE: Do not set if you intend to use CLR id3v2 objects.</para>
|
||||
///</summary>
|
||||
plain_id3text = MPG123_PLAIN_ID3TEXT, /// 100000000000 Do not translate ID3 text data to UTF-8. ID3 strings will contain the raw text data, with the first byte containing the ID3 encoding code.
|
||||
|
||||
ignore_streamlength = MPG123_IGNORE_STREAMLENGTH, /// 1000000000000 Ignore any stream length information contained in the stream, which can be contained in a 'TLEN' frame of an ID3v2 tag or a Xing tag.
|
||||
|
||||
// 1.13.0.0
|
||||
skip_id3v2 = MPG123_SKIP_ID3V2, /// 10 0000 0000 0000 Do not parse ID3v2 tags, just skip them.
|
||||
};
|
||||
|
||||
///<summary>RVA enumeration.</summary>
|
||||
///<remarks>Equivalent to MPG123_RVA.</remarks>
|
||||
public enum class rva
|
||||
{
|
||||
rva_off = MPG123_RVA_OFF, /// RVA disabled (default).
|
||||
rva_mix = MPG123_RVA_MIX, /// Use mix/track/radio gain.
|
||||
rva_album = MPG123_RVA_ALBUM, /// Use album/audiophile gain
|
||||
rva_max = MPG123_RVA_ALBUM, /// The maximum RVA code, may increase in future.
|
||||
};
|
||||
|
||||
///<summary>Feature set available for query with mpg123_feature. </summary>
|
||||
///<remarks>Equivalent to MPG123_FEATURE_SET.</remarks>
|
||||
public enum class feature_set
|
||||
{
|
||||
feature_abi_utf8open = MPG123_FEATURE_ABI_UTF8OPEN, /// mpg123 expects path names to be given in UTF-8 encoding instead of plain native.
|
||||
feature_output_8bit = MPG123_FEATURE_OUTPUT_8BIT, /// 8bit output
|
||||
feature_output_16bit = MPG123_FEATURE_OUTPUT_16BIT, /// 16bit output
|
||||
feature_output_32bit = MPG123_FEATURE_OUTPUT_32BIT, /// 32bit output
|
||||
feature_index = MPG123_FEATURE_INDEX, /// support for building a frame index for accurate seeking
|
||||
feature_parse_id3v2 = MPG123_FEATURE_PARSE_ID3V2, /// id3v2 parsing
|
||||
feature_decode_layer1 = MPG123_FEATURE_DECODE_LAYER1, /// mpeg layer-1 decoder enabled
|
||||
feature_decode_layer2 = MPG123_FEATURE_DECODE_LAYER2, /// mpeg layer-2 decoder enabled
|
||||
feature_decode_layer3 = MPG123_FEATURE_DECODE_LAYER3, /// mpeg layer-3 decoder enabled
|
||||
feature_decode_accurate = MPG123_FEATURE_DECODE_ACCURATE, /// accurate decoder rounding
|
||||
feature_decode_downsample = MPG123_FEATURE_DECODE_DOWNSAMPLE, /// downsample (sample omit)
|
||||
feature_decode_ntom = MPG123_FEATURE_DECODE_NTOM, /// flexible rate decoding
|
||||
feature_parse_icy = MPG123_FEATURE_PARSE_ICY, /// ICY support
|
||||
feature_timeout_read = MPG123_FEATURE_TIMEOUT_READ, /// Reader with timeout (network)
|
||||
};
|
||||
|
||||
|
||||
|
||||
///<summary>An enum over all sample types possibly known to mpg123.</summary>
|
||||
///<remarks><para>The values are designed as bit flags to allow bitmasking for encoding families.</para>
|
||||
///
|
||||
///<para>Note that (your build of) libmpg123 does not necessarily support all these.
|
||||
/// Usually, you can expect the 8bit encodings and signed 16 bit.
|
||||
/// Also 32bit float will be usual beginning with mpg123-1.7.0 .</para>
|
||||
///
|
||||
///<para>What you should bear in mind is that (SSE, etc) optimized routines may be absent
|
||||
/// for some formats. We do have SSE for 16, 32 bit and float, though.
|
||||
/// 24 bit integer is done via postprocessing of 32 bit output -- just cutting
|
||||
/// the last byte, no rounding, even. If you want better, do it yourself.</para>
|
||||
///
|
||||
///<para>All formats are in native byte order. On a little endian machine this should mean
|
||||
/// that you can just feed the MPG123_ENC_SIGNED_32 data to common 24bit hardware that
|
||||
/// ignores the lowest byte (or you could choose to do rounding with these lower bits).</para>
|
||||
///</remarks>
|
||||
public enum class enc
|
||||
{
|
||||
enc_8 = MPG123_ENC_8, /// 0000 0000 1111 Some 8 bit integer encoding.
|
||||
enc_16 = MPG123_ENC_16, /// 0000 0100 0000 Some 16 bit integer encoding.
|
||||
enc_24 = MPG123_ENC_24, /// 0100 0000 0000 0000 Some 24 bit integer encoding. (r1.13)
|
||||
enc_32 = MPG123_ENC_32, /// 0001 0000 0000 Some 32 bit integer encoding.
|
||||
enc_signed = MPG123_ENC_SIGNED, /// 0000 1000 0000 Some signed integer encoding.
|
||||
enc_float = MPG123_ENC_FLOAT, /// 1110 0000 0000 Some float encoding.
|
||||
enc_signed_16 = MPG123_ENC_SIGNED_16, /// 1101 0000 signed 16 bit
|
||||
enc_unsigned_16 = MPG123_ENC_UNSIGNED_16, /// 0110 0000 unsigned 16 bit
|
||||
enc_unsigned_8 = MPG123_ENC_UNSIGNED_8, /// 0000 0001 unsigned 8 bit
|
||||
enc_signed_8 = MPG123_ENC_SIGNED_8, /// 1000 0010 signed 8 bit
|
||||
enc_ulaw_8 = MPG123_ENC_ULAW_8, /// 0000 0100 ulaw 8 bit
|
||||
enc_alaw_8 = MPG123_ENC_ALAW_8, /// 0000 1000 alaw 8 bit
|
||||
enc_signed_32 = MPG123_ENC_SIGNED_32, /// 0001 0001 1000 0000 signed 32 bit
|
||||
enc_unsigned_32 = MPG123_ENC_UNSIGNED_32, /// 0010 0001 0000 0000 unsigned 32 bit
|
||||
enc_signed_24 = MPG123_ENC_SIGNED_24, /// 0101 0000 1000 0000 signed 24 bit (r1.13)
|
||||
enc_unsigned_24 = MPG123_ENC_UNSIGNED_24, /// 0110 0000 0000 0000 unsigned 24 bit (r1.13)
|
||||
enc_float_32 = MPG123_ENC_FLOAT_32, /// 0010 0000 0000 32bit float
|
||||
enc_float_64 = MPG123_ENC_FLOAT_64, /// 0100 0000 0000 64bit float
|
||||
enc_any = MPG123_ENC_ANY, /// any encoding
|
||||
};
|
||||
|
||||
|
||||
///<summary>Channel count enumeration</summary>
|
||||
///<remarks>clr added <cref name="both">both</cref></remarks>
|
||||
public enum class channelcount
|
||||
{
|
||||
mono = MPG123_MONO,
|
||||
stereo = MPG123_STEREO,
|
||||
both = MPG123_MONO | MPG123_STEREO,
|
||||
};
|
||||
|
||||
///<summary>Channel enumeration.</summary>
|
||||
public enum class channels
|
||||
{
|
||||
left = MPG123_LEFT, /// The Left Channel.
|
||||
right = MPG123_RIGHT, /// The Right Channel.
|
||||
both = MPG123_LR, /// Both left and right channel; same as MPG123_LEFT|MPG123_RIGHT
|
||||
};
|
||||
|
||||
///<summary>VBR enumeration.</summary>
|
||||
public enum class mpeg_vbr
|
||||
{
|
||||
cbr = MPG123_CBR, /// Constant Bitrate Mode (default)
|
||||
vbr = MPG123_VBR, /// Variable Bitrate Mode
|
||||
abr = MPG123_ABR, /// Average Bitrate Mode
|
||||
};
|
||||
|
||||
///<summary>MPEG Version enumeration.</summary>
|
||||
public enum class mpeg_version
|
||||
{
|
||||
mpeg_1_0 = MPG123_1_0, /// MPEG Version 1.0
|
||||
mpeg_2_0 = MPG123_2_0, /// MPEG Version 2.0
|
||||
mpeg_2_5 = MPG123_2_5, /// MPEG Version 2.5
|
||||
};
|
||||
|
||||
///<summary>MPEG Mode enumeration.</summary>
|
||||
public enum class mpeg_mode
|
||||
{
|
||||
m_stereo = MPG123_M_STEREO, /// Standard Stereo.
|
||||
m_joint = MPG123_M_JOINT, /// Joint Stereo.
|
||||
m_dual = MPG123_M_DUAL, /// Dual Channel.
|
||||
m_mono = MPG123_M_MONO, /// Single Channel.
|
||||
};
|
||||
|
||||
///<summary>MPEG Flags enumeration.</summary>
|
||||
public enum class mpeg_flags
|
||||
{
|
||||
CRC = MPG123_CRC, /// The bitstream is error protected using 16-bit CRC.
|
||||
COPYRIGHT = MPG123_COPYRIGHT, /// The bitstream is copyrighted.
|
||||
PRIVATE = MPG123_PRIVATE, /// The private bit has been set.
|
||||
ORIGINAL = MPG123_ORIGINAL, /// The bitstream is an original, not a copy.
|
||||
};
|
||||
|
||||
///<summary>Positional state.</summary>
|
||||
public enum class state
|
||||
{
|
||||
accurate = MPG123_ACCURATE /// Query if positons are currently accurate (integer value, 0 if false, 1 if true)
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
48
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/error.cpp
vendored
Normal file
48
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/error.cpp
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "error.h"
|
||||
|
||||
mpg123clr::mpg123error::mpg123error(void)
|
||||
{
|
||||
}
|
||||
|
||||
// Destructor cleans up all resources
|
||||
mpg123clr::mpg123error::~mpg123error(void)
|
||||
{
|
||||
// clean up code to release managed resources
|
||||
// ...
|
||||
|
||||
// call Finalizer to clean up unmanaged resources
|
||||
this->!mpg123error();
|
||||
}
|
||||
|
||||
// Finalizer cleans up unmanaged resources
|
||||
mpg123clr::mpg123error::!mpg123error(void)
|
||||
{
|
||||
// none!
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123error::mpg123_plain_strerror(mpg123clr::mpg::ErrorCode errcode)
|
||||
{
|
||||
return gcnew String(::mpg123_plain_strerror((int)errcode));
|
||||
}
|
||||
|
134
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/error.h
vendored
Normal file
134
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/error.h
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.12.0.0 14-Apr-10 Revision harmonization (catch-up)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
#include "enum.h"
|
||||
|
||||
using namespace System;
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
// defgroup mpg123_error mpg123 error handling
|
||||
//
|
||||
// Functions to get text version of the error numbers and an enumeration
|
||||
// of the error codes returned by libmpg123.
|
||||
//
|
||||
// Most functions operating on a mpg123_handle simply return MPG123_OK on success and MPG123_ERR on failure (setting the internal error variable of the handle to the specific error code).
|
||||
// Decoding/seek functions may also return message codes MPG123_DONE, MPG123_NEW_FORMAT and MPG123_NEED_MORE (please read up on these on how to react!).
|
||||
// The positive range of return values is used for "useful" values when appropriate.
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
namespace mpg
|
||||
{
|
||||
///<summary>Enumeration of the message and error codes as returned by libmpg123 functions.</summary>
|
||||
public enum class ErrorCode
|
||||
{
|
||||
done = MPG123_DONE, /// Message: Track ended.
|
||||
new_format = MPG123_NEW_FORMAT, /// Message: Output format will be different on next call.
|
||||
need_more = MPG123_NEED_MORE, /// Message: For feed reader: "Feed me more!"
|
||||
err = MPG123_ERR, /// Generic Error
|
||||
ok = MPG123_OK, /// Success
|
||||
bad_outformat = MPG123_BAD_OUTFORMAT, /// Unable to set up output format!
|
||||
bad_channel = MPG123_BAD_CHANNEL, /// Invalid channel number specified.
|
||||
bad_rate = MPG123_BAD_RATE, /// Invalid sample rate specified.
|
||||
err_16to8table = MPG123_ERR_16TO8TABLE, /// Unable to allocate memory for 16 to 8 converter table!
|
||||
bad_param = MPG123_BAD_PARAM, /// Bad parameter id!
|
||||
bad_buffer = MPG123_BAD_BUFFER, /// Bad buffer given -- invalid pointer or too small size.
|
||||
out_of_mem = MPG123_OUT_OF_MEM, /// Out of memory -- some malloc() failed.
|
||||
not_initialized = MPG123_NOT_INITIALIZED, /// You didn't initialize the library!
|
||||
bad_decoder = MPG123_BAD_DECODER, /// Invalid decoder choice.
|
||||
bad_handle = MPG123_BAD_HANDLE, /// Invalid mpg123 handle.
|
||||
no_buffers = MPG123_NO_BUFFERS, /// Unable to initialize frame buffers (out of memory?).
|
||||
bad_rva = MPG123_BAD_RVA, /// Invalid RVA mode.
|
||||
no_gapless = MPG123_NO_GAPLESS, /// This build doesn't support gapless decoding.
|
||||
no_space = MPG123_NO_SPACE, /// Not enough buffer space.
|
||||
bad_types = MPG123_BAD_TYPES, /// Incompatible numeric data types.
|
||||
bad_band = MPG123_BAD_BAND, /// Bad equalizer band.
|
||||
err_null = MPG123_ERR_NULL, /// Null pointer given where valid storage address needed.
|
||||
err_reader = MPG123_ERR_READER, /// Error reading the stream.
|
||||
no_seek_from_end = MPG123_NO_SEEK_FROM_END, /// Cannot seek from end (end is not known).
|
||||
bad_whence = MPG123_BAD_WHENCE, /// Invalid 'whence' for seek function.
|
||||
no_timeout = MPG123_NO_TIMEOUT, /// Build does not support stream timeouts.
|
||||
bad_file = MPG123_BAD_FILE, /// File access error.
|
||||
no_seek = MPG123_NO_SEEK, /// Seek not supported by stream.
|
||||
no_reader = MPG123_NO_READER, /// No stream opened.
|
||||
bad_pars = MPG123_BAD_PARS, /// Bad parameter handle.
|
||||
bad_index_par = MPG123_BAD_INDEX_PAR, /// Bad parameters to mpg123_index()
|
||||
out_of_sync = MPG123_OUT_OF_SYNC, /// Lost track in bytestream and did not try to resync.
|
||||
resync_fail = MPG123_RESYNC_FAIL, /// Resync failed to find valid MPEG data.
|
||||
no_8bit = MPG123_NO_8BIT, /// No 8bit encoding possible.
|
||||
bad_align = MPG123_BAD_ALIGN, /// Stack aligmnent error
|
||||
null_buffer = MPG123_NULL_BUFFER, /// NULL input buffer with non-zero size...
|
||||
no_relseek = MPG123_NO_RELSEEK, /// Relative seek not possible (screwed up file offset)
|
||||
null_pointer = MPG123_NULL_POINTER, /// You gave a null pointer somewhere where you shouldn't have.
|
||||
bad_key = MPG123_BAD_KEY, /// Bad key value given.
|
||||
no_index = MPG123_NO_INDEX, /// No frame index in this build.
|
||||
index_fail = MPG123_INDEX_FAIL, /// Something with frame index went wrong.
|
||||
bad_decoder_setup = MPG123_BAD_DECODER_SETUP, /// Something prevents a proper decoder setup
|
||||
missing_feature = MPG123_MISSING_FEATURE, /// This feature has not been built into libmpg123.
|
||||
/* 1.8.1 */
|
||||
bad_value = MPG123_BAD_VALUE, /// A bad value has been given, somewhere.
|
||||
lseek_failed = MPG123_LSEEK_FAILED, /// Low-level seek failed.
|
||||
/* 1.12.0 */
|
||||
bad_custom_io = MPG123_BAD_CUSTOM_IO, /// Custom I/O not prepared.
|
||||
lfs_overflow = MPG123_LFS_OVERFLOW, /// Offset value overflow during translation of large file API calls,
|
||||
/// - your client program cannot handle that large file.
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
///<summary>Wrapper for mpg123_errors</summary>
|
||||
public ref class mpg123error
|
||||
{
|
||||
protected:
|
||||
///<summary>Finalizer.
|
||||
///<para>Cleanly handles mpg123_delete of internal (unmanaged) handles.</para></summary>
|
||||
/// Implementation of CLR Finalize().
|
||||
!mpg123error(void);
|
||||
|
||||
public:
|
||||
///<summary>Constructor.</summary>
|
||||
mpg123error(void);
|
||||
|
||||
///<summary>Destructor. Used for final object deletion.
|
||||
///<para>Calls finalizer for clean disposal of internal (unmanaged) library handles.</para>
|
||||
///</summary>
|
||||
/// Implementation of CLR Dispose().
|
||||
/// ~Destructor and !Finalizer are the prescribed implementation of Dispose() and Finalize().
|
||||
/// See Destructors and Finalizers in Visual C++
|
||||
~mpg123error(void);
|
||||
|
||||
///<summary>Obtain a string description of the errcode meaning.
|
||||
///<para>Returns a String description representing the error code.</para>
|
||||
///</summary>
|
||||
///<param name="errcode">The error code to be described.</param>
|
||||
///<returns>Returns a String description representing the error code.</returns>
|
||||
static String^ __clrcall mpg123_plain_strerror(mpg123clr::mpg::ErrorCode errcode);
|
||||
};
|
||||
}
|
92
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v1.cpp
vendored
Normal file
92
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v1.cpp
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 01-Oct-09 Technical cleanup - subst nullptr for NULL (mb)
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "id3v1.h"
|
||||
|
||||
mpg123clr::id3::mpg123id3v1::mpg123id3v1(void)
|
||||
{
|
||||
}
|
||||
|
||||
mpg123clr::id3::mpg123id3v1::mpg123id3v1(mpg123_id3v1* sb)
|
||||
{
|
||||
this->sb = sb;
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
mpg123clr::id3::mpg123id3v1::~mpg123id3v1(void)
|
||||
{
|
||||
// clean up code to release managed resources
|
||||
// ...
|
||||
|
||||
// call Finalizer to clean up unmanaged resources
|
||||
this->!mpg123id3v1();
|
||||
}
|
||||
|
||||
// Finalizer
|
||||
mpg123clr::id3::mpg123id3v1::!mpg123id3v1(void)
|
||||
{
|
||||
// we do not create the underlying structure, so shouldn't dispose it either...
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v1::tag::get()
|
||||
{
|
||||
if (sb == nullptr || sb->tag == nullptr) return gcnew String("");
|
||||
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->tag, (int)strnlen(sb->tag, 3));
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v1::title::get()
|
||||
{
|
||||
if (sb == nullptr || sb->title == nullptr) return gcnew String("");
|
||||
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->title, (int)strnlen(sb->title, 30));
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v1::artist::get()
|
||||
{
|
||||
if (sb == nullptr || sb->artist == nullptr) return gcnew String("");
|
||||
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->artist, (int)strnlen(sb->artist, 30));
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v1::album::get()
|
||||
{
|
||||
if (sb == nullptr || sb->album == nullptr) return gcnew String("");
|
||||
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->album, (int)strnlen(sb->album, 30));
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v1::comment::get()
|
||||
{
|
||||
if (sb == nullptr || sb->comment == nullptr) return gcnew String("");
|
||||
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->comment, (int)strnlen(sb->comment, 30));
|
||||
}
|
||||
|
||||
int mpg123clr::id3::mpg123id3v1::genre::get()
|
||||
{
|
||||
if (sb == nullptr) return 0;
|
||||
|
||||
return sb->genre;
|
||||
}
|
||||
|
||||
|
132
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v1.h
vendored
Normal file
132
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v1.h
vendored
Normal file
@ -0,0 +1,132 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <vcclr.h>
|
||||
using namespace std;
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
namespace id3
|
||||
{
|
||||
///<summary>id3check enumeration.</summary>
|
||||
public enum class id3check
|
||||
{
|
||||
none = 0,
|
||||
id3 = 2, /**< 0010 There is some ID3 info. */
|
||||
upd_id3 = MPG123_ID3, /**< 0011 There is some ID3 info. Also matches 0010 or NEW_ID3. */
|
||||
new_id3 = MPG123_NEW_ID3, /**< 0001 There is ID3 info that changed since last call to mpg123_id3. */
|
||||
icy = 8, /**< 1100 There is some ICY info. Also matches 0100 or NEW_ICY.*/
|
||||
upd_icy = MPG123_ICY, /**< 1100 There is some ICY info. Also matches 0100 or NEW_ICY.*/
|
||||
new_icy = MPG123_NEW_ICY, /**< 0100 There is ICY info that changed since last call to mpg123_icy. */
|
||||
};
|
||||
|
||||
// Recommended usage when creating reference type on the managed heap (not using stack semantics
|
||||
// for reference types...) [see Destructors and Finalizers in Visual C++]
|
||||
//
|
||||
// A ^ myA = gcnew A;
|
||||
// try
|
||||
// {
|
||||
// use myA
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// delete myA;
|
||||
// }
|
||||
|
||||
///<summary>Wrapper for mpg123_id3v1.</summary>
|
||||
[StructLayout(LayoutKind::Sequential)]
|
||||
public ref struct mpg123id3v1
|
||||
{
|
||||
private:
|
||||
mpg123_id3v1* sb;
|
||||
protected:
|
||||
///<summary>Finalizer.
|
||||
///<para>Cleanly handles mpg123_delete of internal (unmanaged) mpg123 handle.</para></summary>
|
||||
/// Implementation of CLR Finalize().
|
||||
!mpg123id3v1(void);
|
||||
internal:
|
||||
///<summary>Working Constructor.
|
||||
///<para>Maps to mpg123_id3v1 memory.</para>
|
||||
///</summary>
|
||||
mpg123id3v1(mpg123_id3v1* sb);
|
||||
public:
|
||||
///<summary>Constructor.
|
||||
///<para>Only creates object for use as "out" target in ID3 constructor.</para>
|
||||
///</summary>
|
||||
mpg123id3v1(void);
|
||||
|
||||
///<summary>Destructor. Used for final object deletion.
|
||||
///<para>Calls finalizer for clean disposal of internal (unmanaged) library handles.</para>
|
||||
///</summary>
|
||||
/// Implementation of CLR Dispose().
|
||||
/// ~Destructor and !Finalizer are the prescribed implementation of Dispose() and Finalize().
|
||||
/// See Destructors and Finalizers in Visual C++
|
||||
~mpg123id3v1(void);
|
||||
|
||||
///<summary>Get the ID3v1 tag descriptor.
|
||||
///<para>Property returns the ID3v1 tag (should always be "TAG").</para>
|
||||
///</summary>
|
||||
///<value>The ID3v1 tag (should always be "TAG").</value>
|
||||
property String^ tag{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v1 title text.
|
||||
///<para>Property returns the ID3v1 title text.</para>
|
||||
///</summary>
|
||||
///<value>The ID3v1 title text.</value>
|
||||
property String^ title{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v1 artist text.
|
||||
///<para>Property returns the ID3v1 artist text.</para>
|
||||
///</summary>
|
||||
///<value>The ID3v1 artist text.</value>
|
||||
property String^ artist{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v1 album text.
|
||||
///<para>Property returns the ID3v1 album text.</para>
|
||||
///</summary>
|
||||
///<value>The ID3v1 album text.</value>
|
||||
property String^ album{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v1 comment text.
|
||||
///<para>Property returns the ID3v1 comment text.</para>
|
||||
///</summary>
|
||||
///<value>The ID3v1 comment text.</value>
|
||||
property String^ comment{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v1 genre index.
|
||||
///<para>Property returns the ID3v1 genre index.</para>
|
||||
///</summary>
|
||||
///<value>The ID3v1 genre index.</value>
|
||||
property int genre{int __clrcall get();}
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
}
|
138
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v2.cpp
vendored
Normal file
138
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v2.cpp
vendored
Normal file
@ -0,0 +1,138 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 01-Oct-09 Technical cleanup - subst nullptr for NULL (mb)
|
||||
1.10.0.0 30-Nov-09 Add test for null base (sb) - in addition to null string test (mb)
|
||||
(required if v2 referenced prior to file scan)
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "id3v2.h"
|
||||
|
||||
mpg123clr::id3::mpg123id3v2::mpg123id3v2(void)
|
||||
{
|
||||
}
|
||||
|
||||
mpg123clr::id3::mpg123id3v2::mpg123id3v2(mpg123_id3v2* sb)
|
||||
{
|
||||
this->sb = sb;
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
mpg123clr::id3::mpg123id3v2::~mpg123id3v2(void)
|
||||
{
|
||||
// clean up code to release managed resources
|
||||
// ...
|
||||
|
||||
// call Finalizer to clean up unmanaged resources
|
||||
this->!mpg123id3v2();
|
||||
}
|
||||
|
||||
// Finalizer
|
||||
mpg123clr::id3::mpg123id3v2::!mpg123id3v2(void)
|
||||
{
|
||||
// we do not create the underlying structure, so shouldn't dispose it either...
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v2::title::get()
|
||||
{
|
||||
// updated: more efficient "union style" mpg123str
|
||||
mpg123str^ str = (sb == nullptr || sb->title == nullptr) ? gcnew mpg123str("") : gcnew mpg123str(sb->title);
|
||||
|
||||
// Deprecated remnant - uses "overlayed style" mpg123str - note inefficient PtrToStrucure...
|
||||
// mpg123str^% str = gcnew mpg123str;
|
||||
// Marshal::PtrToStructure((IntPtr)sb->title, str);
|
||||
|
||||
return str->Text;
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v2::artist::get()
|
||||
{
|
||||
mpg123str^ str = (sb == nullptr || sb->artist == nullptr) ? gcnew mpg123str("") : gcnew mpg123str(sb->artist);
|
||||
|
||||
return str->Text;
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v2::album::get()
|
||||
{
|
||||
mpg123str^ str = (sb == nullptr || sb->album == nullptr) ? gcnew mpg123str("") : gcnew mpg123str(sb->album);
|
||||
|
||||
return str->Text;
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v2::comment::get()
|
||||
{
|
||||
mpg123str^ str = (sb == nullptr || sb->comment == nullptr) ? gcnew mpg123str("") : gcnew mpg123str(sb->comment);
|
||||
|
||||
return str->Text;
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v2::year::get()
|
||||
{
|
||||
mpg123str^ str = (sb == nullptr || sb->year == nullptr) ? gcnew mpg123str("") : gcnew mpg123str(sb->year);
|
||||
|
||||
return str->Text;
|
||||
}
|
||||
|
||||
String^ mpg123clr::id3::mpg123id3v2::genre::get()
|
||||
{
|
||||
mpg123str^ str = (sb == nullptr || sb->genre == nullptr) ? gcnew mpg123str("") : gcnew mpg123str(sb->genre);
|
||||
|
||||
return str->Text;
|
||||
}
|
||||
|
||||
int mpg123clr::id3::mpg123id3v2::version::get()
|
||||
{
|
||||
return sb->version;
|
||||
}
|
||||
|
||||
array<mpg123clr::mpg123text^>^ mpg123clr::id3::mpg123id3v2::MakeTextList(mpg123_text* ptr, size_t count)
|
||||
{
|
||||
// WARN 4267 - clr limited to 32bit-length-size arrays!!
|
||||
array<mpg123clr::mpg123text^>^ ary = gcnew array<mpg123clr::mpg123text^>((int)count);
|
||||
|
||||
for (int ii = 0; ii < ary->Length; ii++)
|
||||
{
|
||||
// Remnant - for explicit layout
|
||||
// mpg123text^% txt = gcnew mpg123text;
|
||||
// Marshal::PtrToStructure((IntPtr)ptr++, txt);
|
||||
|
||||
// New code - for "handle style" structure
|
||||
mpg123text^% txt = gcnew mpg123text(ptr++);
|
||||
|
||||
ary[ii] = txt;
|
||||
}
|
||||
|
||||
return ary;
|
||||
}
|
||||
|
||||
array<mpg123clr::mpg123text^>^ mpg123clr::id3::mpg123id3v2::Comments::get()
|
||||
{
|
||||
return MakeTextList(sb->comment_list, sb->comments);
|
||||
}
|
||||
|
||||
array<mpg123clr::mpg123text^>^ mpg123clr::id3::mpg123id3v2::Texts::get()
|
||||
{
|
||||
return MakeTextList(sb->text, sb->texts);
|
||||
}
|
||||
|
||||
array<mpg123clr::mpg123text^>^ mpg123clr::id3::mpg123id3v2::Extras::get()
|
||||
{
|
||||
return MakeTextList(sb->extra, sb->extras);
|
||||
}
|
||||
|
152
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v2.h
vendored
Normal file
152
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/id3v2.h
vendored
Normal file
@ -0,0 +1,152 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
#include "string.h"
|
||||
#include "text.h"
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <vcclr.h>
|
||||
using namespace std;
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
namespace id3
|
||||
{
|
||||
// Recommended usage when creating reference type on the managed heap (not using stack semantics
|
||||
// for reference types...) [see Destructors and Finalizers in Visual C++]
|
||||
//
|
||||
// A ^ myA = gcnew A;
|
||||
// try
|
||||
// {
|
||||
// use myA
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// delete myA;
|
||||
// }
|
||||
|
||||
///<summary>Wrapper for mpg123_id3v2.</summary>
|
||||
[StructLayout(LayoutKind::Sequential)]
|
||||
public ref struct mpg123id3v2
|
||||
{
|
||||
private:
|
||||
mpg123_id3v2* sb;
|
||||
|
||||
array<mpg123text^>^ __clrcall MakeTextList(mpg123_text* ptr, size_t count);
|
||||
|
||||
protected:
|
||||
///<summary>Finalizer.
|
||||
///<para>Does nothing - wrapper points to underlying memory, this class doesn't allocate memory.</para></summary>
|
||||
/// Implementation of CLR Finalize().
|
||||
!mpg123id3v2(void);
|
||||
|
||||
internal:
|
||||
///<summary>Working Constructor.
|
||||
///<para>Maps to mpg123_id3v2 memory.</para>
|
||||
///</summary>
|
||||
mpg123id3v2(mpg123_id3v2* sb);
|
||||
|
||||
public:
|
||||
///<summary>Constructor.
|
||||
///<para>Only creates object for use as "out" target in ID3 constructor.</para>
|
||||
///</summary>
|
||||
mpg123id3v2(void);
|
||||
|
||||
///<summary>Destructor. Used for final object deletion.
|
||||
///<para>Calls finalizer for clean disposal of internal (unmanaged) library handles.</para>
|
||||
///</summary>
|
||||
/// Implementation of CLR Dispose().
|
||||
/// ~Destructor and !Finalizer are the prescribed implementation of Dispose() and Finalize().
|
||||
/// See Destructors and Finalizers in Visual C++
|
||||
~mpg123id3v2(void);
|
||||
|
||||
///<summary>Get the ID3v2 title text.
|
||||
///<para>Property returns the last encountered ID3v2 title text.</para>
|
||||
///</summary>
|
||||
///<value>The last encountered ID3v2 title text.</value>
|
||||
property String^ title{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v2 artist text.
|
||||
///<para>Property returns the last encountered ID3v2 artist text.</para>
|
||||
///</summary>
|
||||
///<value>The last encountered ID3v2 artist text.</value>
|
||||
property String^ artist{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v2 album text.
|
||||
///<para>Property returns the last encountered ID3v2 album text.</para>
|
||||
///</summary>
|
||||
///<value>The last encountered ID3v2 album text.</value>
|
||||
property String^ album{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v2 comment text.
|
||||
///<para>Property returns the last encountered ID3v2 comment text.</para>
|
||||
///</summary>
|
||||
///<value>The last encountered ID3v2 comment text.</value>
|
||||
property String^ comment{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v2 year text.
|
||||
///<para>Property returns the last encountered ID3v2 year text.</para>
|
||||
///</summary>
|
||||
///<value>The last encountered ID3v2 year text.</value>
|
||||
property String^ year{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v2 genre text.
|
||||
///<para>Property returns the last encountered ID3v2 genre text.</para>
|
||||
///</summary>
|
||||
///<value>The last encountered ID3v2 genre text.</value>
|
||||
property String^ genre{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get the ID3v2 version.
|
||||
///<para>Property returns the ID3v2 version.</para>
|
||||
///</summary>
|
||||
///<value>The ID3v2 version.</value>
|
||||
property int version{int __clrcall get();}
|
||||
|
||||
|
||||
///<summary>Get an array of Comments.
|
||||
///<para>Property returns an array of Comments.</para>
|
||||
///</summary>
|
||||
///<value>An array of Comments.</value>
|
||||
property array<mpg123clr::mpg123text^>^ Comments{array<mpg123clr::mpg123text^>^ __clrcall get();};
|
||||
|
||||
///<summary>Get an array of ID3v2 text fields (including USLT).
|
||||
///<para>Property returns an array of ID3v2 text fields (including USLT).</para>
|
||||
///</summary>
|
||||
///<value>An array of ID3v2 text fields (including USLT).</value>
|
||||
property array<mpg123clr::mpg123text^>^ Texts{array<mpg123clr::mpg123text^>^ __clrcall get();};
|
||||
|
||||
///<summary>Get an array of extra (TXXX) fields.
|
||||
///<para>Property returns an array of extra (TXXX) fields.</para>
|
||||
///</summary>
|
||||
///<value>An array of extra (TXXX) fields.</value>
|
||||
property array<mpg123clr::mpg123text^>^ Extras{array<mpg123clr::mpg123text^>^ __clrcall get();};
|
||||
|
||||
};
|
||||
}
|
||||
}
|
896
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.cpp
vendored
Normal file
896
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.cpp
vendored
Normal file
@ -0,0 +1,896 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009-2011 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2011 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.9.0.0 01-Oct-09 Technical cleanup - subst nullptr for NULL (mb)
|
||||
1.9.0.0 13-Oct-09 pin_ptr = nullptr on return (mb)
|
||||
1.9.0.1 24-Nov-09 performance update - removed try/finally (mb)
|
||||
1.10.0.0 30-Nov-09 release match - added mpg123_feature (mb)
|
||||
1.12.0.0 14-Apr-10 release match - added framebyframe and "handle" ReplaceReaders (mb)
|
||||
1.13.0.0 13-Jan-11 release match - added encsize (mb)
|
||||
*/
|
||||
|
||||
// mpg123clr.cpp : Defines the exported functions for the DLL application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "mpg123clr.h"
|
||||
|
||||
|
||||
mpg123clr::mpg123::mpg123(void)
|
||||
{
|
||||
mh = nullptr;
|
||||
useHandleReplacement = false;
|
||||
lastReplacementWasHandle = false;
|
||||
}
|
||||
|
||||
mpg123clr::mpg123::mpg123(mpg123_handle* mh)
|
||||
{
|
||||
this->mh = mh;
|
||||
useHandleReplacement = false;
|
||||
lastReplacementWasHandle = false;
|
||||
}
|
||||
|
||||
// Destructor
|
||||
mpg123clr::mpg123::~mpg123(void)
|
||||
{
|
||||
// clean up code to release managed resources
|
||||
|
||||
// call Finalizer to clean up unmanaged resources
|
||||
this->!mpg123();
|
||||
|
||||
// CLI implements SuppressFinalize - therefore not required here...
|
||||
//GC::SuppressFinalize(this);
|
||||
}
|
||||
|
||||
// Finalizer
|
||||
mpg123clr::mpg123::!mpg123(void)
|
||||
{
|
||||
// clean up unmanaged resources
|
||||
if (mh != nullptr)
|
||||
{
|
||||
::mpg123_delete(mh);
|
||||
mh = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void mpg123clr::mpg123::mpg123_delete(void)
|
||||
{
|
||||
if (mh != nullptr)
|
||||
{
|
||||
::mpg123_delete(mh);
|
||||
mh = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_init(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_init();
|
||||
}
|
||||
|
||||
void mpg123clr::mpg123::mpg123_exit(void)
|
||||
{
|
||||
::mpg123_exit();
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_new(String ^ decoder)
|
||||
{
|
||||
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(decoder)).ToPointer();
|
||||
|
||||
int err;
|
||||
mh = ::mpg123_new(chars, &err);
|
||||
|
||||
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) err;
|
||||
}
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_new(void)
|
||||
{
|
||||
int err;
|
||||
mh = ::mpg123_new(NULL, &err);
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) err;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_parnew(mpg123clr::advpars^ par, String ^ decoder)
|
||||
{
|
||||
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(decoder)).ToPointer();
|
||||
|
||||
int err;
|
||||
mh = ::mpg123_parnew(par->mp, chars, &err);
|
||||
|
||||
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) err;
|
||||
}
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_parnew(mpg123clr::advpars^ par)
|
||||
{
|
||||
int err;
|
||||
mh = ::mpg123_parnew(par->mp, NULL, &err);
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) err;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_param(mpg123clr::mpg::parms type, int val, double fval)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_param(mh, (mpg123_parms)type, val, fval);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_getparam(mpg123clr::mpg::parms type, [Out] int% val, [Out] double% fval)
|
||||
{
|
||||
// Avoid need for local intermediary variables
|
||||
pin_ptr<int> _val = &val;
|
||||
pin_ptr<double> _fval = &fval;
|
||||
|
||||
int ret = ::mpg123_getparam(mh, (mpg123_parms)type, (long*) _val, _fval);
|
||||
|
||||
_fval = nullptr;
|
||||
_val = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123::mpg123_feature(mpg123clr::mpg::feature_set key)
|
||||
{
|
||||
return ::mpg123_feature((mpg123_feature_set) key);
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123::mpg123_strerror(void)
|
||||
{
|
||||
return gcnew String(::mpg123_strerror(mh));
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_errcode(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_errcode(mh);
|
||||
}
|
||||
|
||||
array<String^>^ mpg123clr::mpg123::StringArrayFromPtr(const char** ptr)
|
||||
{
|
||||
int count = 0;
|
||||
|
||||
// count how many strings in array by walking up the array until NULL found
|
||||
while (*(ptr++) != NULL){ ++count; }
|
||||
|
||||
// create an array of the correct size
|
||||
array<String^> ^ str = gcnew array<String^>(count);
|
||||
|
||||
--ptr; // loop leaves ptr +2 beyond end of array - put ptr back to just after last index
|
||||
|
||||
// walk back down the array, extracting the strings
|
||||
while (count-- > 0){ str[count] = gcnew String(*(--ptr)); }
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
array<String^>^ mpg123clr::mpg123::mpg123_decoders(void)
|
||||
{
|
||||
return StringArrayFromPtr(::mpg123_decoders());
|
||||
}
|
||||
|
||||
array<String^>^ mpg123clr::mpg123::mpg123_supported_decoders(void)
|
||||
{
|
||||
return StringArrayFromPtr(::mpg123_supported_decoders());
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_decoder(String^ name)
|
||||
{
|
||||
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(name)).ToPointer();
|
||||
|
||||
int ret;
|
||||
|
||||
// one of the few mpg123 places that fault with an exception...
|
||||
try { ret = ::mpg123_decoder(mh, chars); }
|
||||
catch(Exception^){ ret = MPG123_ERR; }
|
||||
|
||||
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123::mpg123_current_decoder(void)
|
||||
{
|
||||
return gcnew String(::mpg123_current_decoder(mh));
|
||||
}
|
||||
|
||||
array<long>^ mpg123clr::mpg123::mpg123_rates(void)
|
||||
{
|
||||
size_t number;
|
||||
const long* list;
|
||||
|
||||
::mpg123_rates(&list, &number);
|
||||
|
||||
array<long>^ rList = gcnew array<long>((int)number);
|
||||
|
||||
int index = 0;
|
||||
|
||||
// walk the array, extracting the rates
|
||||
while (index < (int)number){ rList[index++] = *(list++); }
|
||||
|
||||
return rList;
|
||||
}
|
||||
|
||||
array<mpg123clr::mpg::enc>^ mpg123clr::mpg123::mpg123_encodings(void)
|
||||
{
|
||||
size_t number;
|
||||
const int* list;
|
||||
|
||||
::mpg123_encodings(&list, &number);
|
||||
|
||||
// WARN 4267 - assuming that the number of encodings will never exceed 32bits
|
||||
array<mpg123clr::mpg::enc>^ rList = gcnew array<mpg123clr::mpg::enc>((int)number);
|
||||
|
||||
int index = 0;
|
||||
|
||||
// walk the array, extracting the rates
|
||||
while (index < (int)number){ rList[index++] = (mpg123clr::mpg::enc) *(list++); }
|
||||
|
||||
return rList;
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123::mpg123_encsize(mpg123clr::mpg::enc encoding)
|
||||
{
|
||||
return ::mpg123_encsize((int) encoding);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_format_none(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_format_none(mh);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_format_all(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_format_all(mh);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_format(int rate, mpg123clr::mpg::channelcount channels, mpg123clr::mpg::enc encodings)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_format(mh, rate, (int) channels, (int) encodings);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::channelcount mpg123clr::mpg123::mpg123_format_support(int rate, mpg123clr::mpg::enc encodings)
|
||||
{
|
||||
return (mpg123clr::mpg::channelcount) ::mpg123_format_support(mh, rate, (int) encodings);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_getformat([Out] int% rate, [Out] mpg123clr::mpg::channelcount% channels, [Out] mpg123clr::mpg::enc% encodings)
|
||||
{
|
||||
// either:-
|
||||
//
|
||||
// long _rate;
|
||||
// int _chan, _enc;
|
||||
// int ret = mpg123_getformat(mh, &_rate, &_chan, &_enc);
|
||||
// rate = _rate;
|
||||
// channels = _chan;
|
||||
// encodings = _enc;
|
||||
// return (mpg123clr::mpg::ErrorCode) ret;
|
||||
//
|
||||
// or:-
|
||||
// use pinned pointers instead
|
||||
pin_ptr<int> _rate = &rate;
|
||||
pin_ptr<mpg123clr::mpg::channelcount> _chan = &channels;
|
||||
pin_ptr<mpg123clr::mpg::enc> _enc = &encodings;
|
||||
|
||||
int ret = ::mpg123_getformat(mh, (long*)_rate, (int*)_chan, (int*)_enc);
|
||||
|
||||
_enc = nullptr;
|
||||
_chan = nullptr;
|
||||
_rate = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_open(String^ path)
|
||||
{
|
||||
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(path)).ToPointer();
|
||||
|
||||
_ReplaceReader();
|
||||
|
||||
int ret = ::mpg123_open(mh, chars);
|
||||
|
||||
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_open_fd(int filedescriptor)
|
||||
{
|
||||
_ReplaceReader();
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_open_fd(mh, filedescriptor);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_open_handle(System::Object^ obj)
|
||||
{
|
||||
// NOTE: You must have configured callbacks using mpg123_replace_reader_handle
|
||||
// before calling mpg123_open_handle!
|
||||
|
||||
_ReplaceReader(); // activate callbacks
|
||||
|
||||
// Make sure we free this in Close functions
|
||||
userObjectHandle = GCHandle::Alloc(obj);
|
||||
|
||||
// NOTE: This sends a HANDLE not an ADDRESS, no pinning required
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_open_handle(mh, (void*)GCHandle::ToIntPtr(userObjectHandle).ToPointer());
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_open_feed(void)
|
||||
{
|
||||
_ReplaceReader();
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_open_feed(mh);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_close(void)
|
||||
{
|
||||
// Closes 'mh' and calls Cleanup delegate if provided
|
||||
int ret = ::mpg123_close(mh);
|
||||
|
||||
// See GCHandle.Free - caller must ensure Free called only once for a given handle.
|
||||
if (userObjectHandle.IsAllocated) userObjectHandle.Free();
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_read(array<unsigned char>^ buffer, [Out] size_t% count)
|
||||
{
|
||||
pin_ptr<size_t> _count = &count;
|
||||
pin_ptr<unsigned char> _ptr = &buffer[0];
|
||||
|
||||
int ret = ::mpg123_read(mh, _ptr, buffer->Length, _count);
|
||||
|
||||
_ptr = nullptr;
|
||||
_count = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_read(array<unsigned char>^ buffer, size_t offset, size_t size, [Out] size_t% count)
|
||||
{
|
||||
pin_ptr<size_t> _count = &count;
|
||||
// WARN 4267 - clr limited to 32bit-length-size arrays!!
|
||||
pin_ptr<unsigned char> _ptr = &buffer[(int)offset];
|
||||
|
||||
int ret = ::mpg123_read(mh, _ptr, size, _count);
|
||||
|
||||
_ptr = nullptr;
|
||||
_count = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_feed(array<unsigned char>^ inbuffer, size_t size)
|
||||
{
|
||||
pin_ptr<unsigned char> _ptr = &inbuffer[0];
|
||||
|
||||
int ret = ::mpg123_feed(mh, _ptr, size);
|
||||
|
||||
_ptr = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_decode(array<unsigned char>^ inbuffer, size_t insize, array<unsigned char>^ outbuffer, size_t outsize, [Out] size_t% count)
|
||||
{
|
||||
pin_ptr<size_t> _count = &count;
|
||||
pin_ptr<const unsigned char> _inptr = &inbuffer[0];
|
||||
pin_ptr<unsigned char> _outptr = &outbuffer[0];
|
||||
|
||||
int ret = ::mpg123_decode(mh, _inptr, insize, _outptr, outsize, _count);
|
||||
|
||||
_outptr = nullptr;
|
||||
_inptr = nullptr;
|
||||
_count = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_decode_frame([Out] off_t% num, [Out] IntPtr% audio, [Out] size_t% count)
|
||||
{
|
||||
pin_ptr<size_t> _count = &count;
|
||||
pin_ptr<off_t> _num = #
|
||||
pin_ptr<IntPtr> _x = &audio;
|
||||
|
||||
int ret = ::mpg123_decode_frame(mh, _num, (unsigned char**)_x, _count);
|
||||
|
||||
_x = nullptr;
|
||||
_num = nullptr;
|
||||
_count = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_framebyframe_decode([Out] off_t% num, [Out] IntPtr% audio, [Out] size_t% count)
|
||||
{
|
||||
// NOTE: must use framebyframe_next to obtain successive frames
|
||||
|
||||
pin_ptr<size_t> _count = &count;
|
||||
pin_ptr<off_t> _num = #
|
||||
pin_ptr<IntPtr> _x = &audio;
|
||||
|
||||
int ret = ::mpg123_framebyframe_decode(mh, _num, (unsigned char**)_x, _count);
|
||||
|
||||
_x = nullptr;
|
||||
_num = nullptr;
|
||||
_count = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_framebyframe_next()
|
||||
{
|
||||
// mpg123lib has warning, Experimental API. Watch for updates!!!
|
||||
// framebyframe_decode doesn't automatically move on to next frame,
|
||||
// use framebyframe_next to move on to "Find, read and parse the next mp3 frame"
|
||||
int ret = ::mpg123_framebyframe_next(mh);
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_tell(void)
|
||||
{
|
||||
return ::mpg123_tell(mh);
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_tellframe(void)
|
||||
{
|
||||
return ::mpg123_tellframe(mh);
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_tell_stream(void)
|
||||
{
|
||||
return ::mpg123_tell_stream(mh);
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_seek(long long offset, SeekOrigin origin)
|
||||
{
|
||||
return ::mpg123_seek(mh, (off_t)offset, (int)origin);
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_feedseek(long long offset, SeekOrigin origin, [Out] long long% input_offset)
|
||||
{
|
||||
// NOTE: off_t fiddles...
|
||||
// pin_ptr<int> _input_offset = &input_offset; // type mismatch between 32 and 64 bit offsets.
|
||||
|
||||
off_t _input_offset; // type accomodation
|
||||
|
||||
off_t ret = ::mpg123_feedseek(mh, (off_t)offset, (int)origin, &_input_offset); // ok types
|
||||
|
||||
input_offset = _input_offset; // type conversion
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_seek_frame(long long frameoffset, SeekOrigin origin)
|
||||
{
|
||||
return ::mpg123_seek_frame(mh, (off_t)frameoffset, (int)origin);
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_timeframe(double seconds)
|
||||
{
|
||||
return ::mpg123_timeframe(mh, seconds);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_index([Out] array<long long>^% index, [Out] long long% step)
|
||||
{
|
||||
// remnant: only works if off_t, index and step are 32 bit - possible redo for 64 bit library
|
||||
// pin_ptr<int> _step = &step;
|
||||
// int ret = mpg123_index(mh, &_list, (off_t*)_step, &_count);
|
||||
// index = gcnew array<int>((int)_count);
|
||||
// Marshal::Copy((IntPtr)_list, index, 0, (int)_count);
|
||||
|
||||
// alternate: works for 32 and 64 bit libraries - returns long long values
|
||||
off_t* _list;
|
||||
size_t _count;
|
||||
off_t _step; // type accomodation
|
||||
|
||||
int ret = ::mpg123_index(mh, &_list, &_step, &_count);
|
||||
|
||||
step = _step; // type conversion
|
||||
|
||||
// WARN 4267 - clr limited to 32bit-length-size arrays!!
|
||||
index = gcnew array<long long>((int)_count);
|
||||
|
||||
// walk the array, extracting the rates
|
||||
int idx = 0; // array length limited to 32bit
|
||||
while (idx < index->Length){ index[idx++] = *(_list++); }
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_index([Out] IntPtr% indexarr, [Out] long long% step, [Out] size_t% fill)
|
||||
{
|
||||
pin_ptr<size_t> _fill = &fill;
|
||||
pin_ptr<IntPtr> _x = &indexarr; // NOTE: untyped index pointer.
|
||||
off_t _step; // type accomodation
|
||||
|
||||
int ret = ::mpg123_index(mh, (off_t**)_x, &_step, _fill);
|
||||
|
||||
step = _step; // type conversion
|
||||
|
||||
_x = nullptr;
|
||||
_fill = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_position(
|
||||
long long frameoffset, long long bufferedbytes, [Out] long long% currentframe, [Out] long long% framesleft,
|
||||
[Out] double% currentseconds, [Out] double% secondsleft)
|
||||
{
|
||||
// NOTE: off_t fiddles
|
||||
// pin_ptr<int> _currentframe = ¤tframe;
|
||||
// pin_ptr<int> _framesleft = &framesleft;
|
||||
pin_ptr<double> _currentseconds = ¤tseconds;
|
||||
pin_ptr<double> _secondsleft = &secondsleft;
|
||||
off_t _currentframe; // type accomodation
|
||||
off_t _framesleft; // type accomodation
|
||||
|
||||
int ret = ::mpg123_position(mh, (off_t)frameoffset, (off_t)bufferedbytes, &_currentframe, &_framesleft, _currentseconds, _secondsleft);
|
||||
|
||||
currentframe = _currentframe; // type conversion
|
||||
framesleft = _framesleft; // type conversion
|
||||
|
||||
_secondsleft = nullptr;
|
||||
_currentseconds = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
#pragma region Volume and Equalizer
|
||||
|
||||
/// \defgroup mpg123_voleq mpg123 volume and equalizer
|
||||
///
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_eq(mpg123clr::mpg::channels channel, int band, double fval)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_eq(mh, (mpg123_channels)channel, band, fval);
|
||||
}
|
||||
|
||||
double mpg123clr::mpg123::mpg123_geteq(mpg123clr::mpg::channels channel, int band)
|
||||
{
|
||||
return ::mpg123_geteq(mh, (mpg123_channels)channel, band);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_reset_eq(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_reset_eq(mh);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_volume(double volume)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_volume(mh, volume);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_volume_change(double change)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_volume_change(mh, change);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_getvolume([Out] double% basevol, [Out] double% really, [Out] double% rva_db)
|
||||
{
|
||||
pin_ptr<double> _basevol = &basevol;
|
||||
pin_ptr<double> _really = &really;
|
||||
pin_ptr<double> _rva_db = &rva_db;
|
||||
|
||||
int ret = ::mpg123_getvolume(mh, _basevol, _really, _rva_db);
|
||||
|
||||
_rva_db = nullptr;
|
||||
_really = nullptr;
|
||||
_basevol = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
#pragma endregion -Volume and Equalizer
|
||||
#pragma region Status and Information
|
||||
|
||||
// \defgroup mpg123_status mpg123 status and information
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
// The "proper" way to manage structs...
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_safeinfo([Out]mpeg_frameinfo^% finfo)
|
||||
{
|
||||
// "out" our return reference and grab some memory
|
||||
finfo = gcnew mpeg_frameinfo;
|
||||
IntPtr pp = Marshal::AllocHGlobal(Marshal::SizeOf(finfo));
|
||||
|
||||
// get the info
|
||||
|
||||
// could cast away...
|
||||
// int ret = mpg123_info(mh, reinterpret_cast<mpg123_frameinfo*>((int)pp));
|
||||
// int ret = mpg123_info(mh, static_cast<mpg123_frameinfo*>((void*)pp));
|
||||
|
||||
// or let the compiler decide...
|
||||
int ret = ::mpg123_info(mh, (mpg123_frameinfo*)(void*)pp);
|
||||
|
||||
// marshal data into return object and free temporary memory
|
||||
Marshal::PtrToStructure(pp, finfo);
|
||||
Marshal::FreeHGlobal(pp);
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
// The "efficient" way to manage structs...
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_info([Out]mpeg_frameinfo^% finfo)
|
||||
{
|
||||
finfo = gcnew mpeg_frameinfo;
|
||||
|
||||
pin_ptr<mpg123clr::mpg::mpeg_version> _ptr = &finfo->version;
|
||||
|
||||
// According to SizeOf...
|
||||
// The unmanaged and managed sizes of an object can differ, this would imply
|
||||
// that the memory layout for each would also be different, which would indicate
|
||||
// that using a ptr, derived from a ptr-to-a-managed type, in unmanaged code could
|
||||
// have unforseen results.
|
||||
//
|
||||
// In non-homogenous structs (like mpg123text) it can lead to corrupted CLR stack.
|
||||
// In homogenous structs (like finfo) it appears to be "managable".
|
||||
//
|
||||
// However, until it fails it'll do... and it's much faster (see mpg123_safeinfo(...)).
|
||||
|
||||
// WARNING:
|
||||
// The epitome of "unsafe" as defined by CLR (using unmanaged pointers).
|
||||
// If we start to get CLR stack corruptions - check here first! (see SafeInfo for "safe" managed version)
|
||||
int ret = ::mpg123_info(mh, (mpg123_frameinfo*)_ptr);
|
||||
|
||||
_ptr = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
size_t mpg123clr::mpg123::mpg123_safe_buffer(void)
|
||||
{
|
||||
return ::mpg123_safe_buffer();
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_scan(void)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_scan(mh);
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123::mpg123_length(void)
|
||||
{
|
||||
return ::mpg123_length(mh);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_set_filesize(long long size)
|
||||
{
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_set_filesize(mh, (off_t)size);
|
||||
}
|
||||
|
||||
double mpg123clr::mpg123::mpg123_tpf(void)
|
||||
{
|
||||
return ::mpg123_tpf(mh);
|
||||
}
|
||||
|
||||
long mpg123clr::mpg123::mpg123_clip(void)
|
||||
{
|
||||
return ::mpg123_clip(mh);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_getstate(mpg123clr::mpg::state key, [Out] int% val, [Out] double% fval)
|
||||
{
|
||||
pin_ptr<int> _val = &val;
|
||||
pin_ptr<double> _fval = &fval;
|
||||
|
||||
int ret = ::mpg123_getstate(mh, (mpg123_state)key, (long*) _val, _fval);
|
||||
|
||||
_fval = nullptr;
|
||||
_val = nullptr;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
#pragma endregion -Status and Information
|
||||
|
||||
#pragma region Metadata Handling
|
||||
|
||||
// \defgroup mpg123_metadata mpg123 metadata handling
|
||||
//
|
||||
// Functions to retrieve the metadata from MPEG Audio files and streams.
|
||||
// Also includes string handling functions.
|
||||
//
|
||||
|
||||
mpg123clr::id3::id3check mpg123clr::mpg123::mpg123_meta_check(void)
|
||||
{
|
||||
return (mpg123clr::id3::id3check ) ::mpg123_meta_check(mh);
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_id3([Out]id3::mpg123id3v1^% v1, [Out]id3::mpg123id3v2^% v2)
|
||||
{
|
||||
mpg123_id3v1* pv1;
|
||||
mpg123_id3v2* pv2;
|
||||
|
||||
// doc says "pv1 and pv2 may be set to NULL when there is no corresponding data."
|
||||
// they may also be set to point to empty structure...
|
||||
int ret = ::mpg123_id3(mh, &pv1, &pv2);
|
||||
|
||||
v1 = gcnew mpg123clr::id3::mpg123id3v1(pv1);
|
||||
v2 = gcnew mpg123clr::id3::mpg123id3v2(pv2);
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_icy([Out]IntPtr% icy_meta)
|
||||
{
|
||||
char* _icy_meta;
|
||||
|
||||
int ret = ::mpg123_icy(mh, &_icy_meta);
|
||||
|
||||
icy_meta = (IntPtr) _icy_meta;
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
array<unsigned char>^ mpg123clr::mpg123::mpg123_icy2utf8(IntPtr icy_text)
|
||||
{
|
||||
// TODO: Do we really need this?
|
||||
// char* putf8 = mpg123_icy2utf8(const_cast<char*>(reinterpret_cast<char*>(icy_text.ToPointer())));
|
||||
|
||||
// Or is this adequate?
|
||||
char* putf8 = ::mpg123_icy2utf8((const char*)(void*) icy_text);
|
||||
|
||||
// WARN 4267 - clr limited to 32bit-length-size arrays!!
|
||||
array<unsigned char>^ ary = gcnew array<unsigned char>((int)strlen(putf8));
|
||||
|
||||
Marshal::Copy((IntPtr)putf8, ary, 0, ary->Length);
|
||||
free(putf8);
|
||||
|
||||
return ary;
|
||||
}
|
||||
|
||||
#pragma endregion -Metadata Handling
|
||||
|
||||
#pragma region Low Level I/O
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_replace_buffer(IntPtr data, size_t size)
|
||||
{
|
||||
// "data" buffer should be fixed BEFORE calling this function.
|
||||
|
||||
// TODO: to cast or not to cast??
|
||||
// return (mpg123clr::mpg::ErrorCode) mpg123_replace_buffer(mh, reinterpret_cast<unsigned char*>(data.ToPointer()), size);
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ::mpg123_replace_buffer(mh, (unsigned char*)(void*) data, size);
|
||||
}
|
||||
|
||||
size_t mpg123clr::mpg123::mpg123_outblock(void)
|
||||
{
|
||||
return ::mpg123_outblock(mh);
|
||||
}
|
||||
|
||||
void mpg123clr::mpg123::_ReplaceReader(void)
|
||||
{
|
||||
if ((readDel == r_readDel) && (seekDel == r_seekDel)
|
||||
&& (readHDel == r_readHDel) && (seekDel == r_seekHDel) && (cleanHDel == r_cleanHDel)) return;
|
||||
|
||||
// readDel and seekDel are "keep alive" fields that prevent GC of the delegates.
|
||||
// the underlying function pointers no not require "pinning".
|
||||
|
||||
// Note: most examples use GCHandle::Alloc to "pin" the delegate but this is usually to prevent GC
|
||||
// outside of function scope and is not strictly necessary here since readDel and seekDel never go
|
||||
// out of scope.
|
||||
|
||||
// See MS: c++, How to: Marshal Callbacks and Delegates Using C++ Interop
|
||||
// for more details.
|
||||
|
||||
readDel = r_readDel;
|
||||
seekDel = r_seekDel;
|
||||
readHDel = r_readHDel;
|
||||
seekHDel = r_seekHDel;
|
||||
cleanHDel = r_cleanHDel;
|
||||
|
||||
// just for clarity
|
||||
typedef off_t (_cdecl* SEEKCB)(int, off_t, int);
|
||||
typedef ssize_t (_cdecl* READCB)(int, void*, size_t);
|
||||
typedef off_t (_cdecl* HSEEKCB)(void*, off_t, int);
|
||||
typedef ssize_t (_cdecl* HREADCB)(void*, void*, size_t);
|
||||
typedef void (_cdecl* HCLEANCB)(void*);
|
||||
|
||||
// NOTE: GetFunctionPointerForDelegate doesn't like nullptr
|
||||
// NOTE: I'm not suggesting that replace_reader and replace_reader_handle should be
|
||||
// intermingled, just trying to maintain a clean stack
|
||||
|
||||
if (!useHandleReplacement)
|
||||
{
|
||||
if (lastReplacementWasHandle)
|
||||
::mpg123_replace_reader_handle(mh, nullptr, nullptr, nullptr);
|
||||
|
||||
::mpg123_replace_reader(
|
||||
mh,
|
||||
(readDel != nullptr) ? (READCB)(Marshal::GetFunctionPointerForDelegate(readDel)).ToPointer() : nullptr,
|
||||
(seekDel != nullptr) ? (SEEKCB)(Marshal::GetFunctionPointerForDelegate(seekDel)).ToPointer() : nullptr
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!lastReplacementWasHandle) // can give redundant call on first use - microscopically inefficient - not catastrophic
|
||||
::mpg123_replace_reader(mh, nullptr, nullptr);
|
||||
|
||||
::mpg123_replace_reader_handle(
|
||||
mh,
|
||||
(readHDel != nullptr) ? (HREADCB)(Marshal::GetFunctionPointerForDelegate(readHDel)).ToPointer() : nullptr,
|
||||
(seekHDel != nullptr) ? (HSEEKCB)(Marshal::GetFunctionPointerForDelegate(seekHDel)).ToPointer() : nullptr,
|
||||
(cleanHDel != nullptr) ? (HCLEANCB)(Marshal::GetFunctionPointerForDelegate(cleanHDel)).ToPointer() : nullptr
|
||||
);
|
||||
}
|
||||
lastReplacementWasHandle = useHandleReplacement;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_replace_reader(ReadDelegate^ r_read, SeekDelegate^ r_lseek)
|
||||
{
|
||||
// save temporary delegates to be implemented at next 'Open'
|
||||
r_readDel = r_read;
|
||||
r_seekDel = r_lseek;
|
||||
r_readHDel = nullptr;
|
||||
r_seekHDel = nullptr;
|
||||
r_cleanHDel = nullptr;
|
||||
useHandleReplacement = false;
|
||||
|
||||
return mpg123clr::mpg::ErrorCode::ok;
|
||||
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_replace_reader_handle(ReadHandleDelegate^ rh_read, SeekHandleDelegate^ rh_lseek, CleanupHandleDelegate^ rh_clean)
|
||||
{
|
||||
// save temporary delegates to be implemented at next 'Open'
|
||||
r_readHDel = rh_read;
|
||||
r_seekHDel = rh_lseek;
|
||||
r_cleanHDel = rh_clean;
|
||||
r_readDel = nullptr;
|
||||
r_seekDel = nullptr;
|
||||
useHandleReplacement = true;
|
||||
|
||||
return mpg123clr::mpg::ErrorCode::ok;
|
||||
|
||||
}
|
||||
|
||||
#pragma endregion -Low Level I/O
|
||||
|
||||
#pragma region MS Unicode Extension
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_topen(String^ path)
|
||||
{
|
||||
_ReplaceReader(); // mpg123_tOpen will replace its own reader, this is just for consistency
|
||||
|
||||
const _TCHAR* chars = (const _TCHAR*)(Marshal::StringToHGlobalUni(path)).ToPointer();
|
||||
|
||||
int ret = ::mpg123_topen(mh, chars);
|
||||
|
||||
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
mpg123clr::mpg::ErrorCode mpg123clr::mpg123::mpg123_tclose(void)
|
||||
{
|
||||
// Not sure if t_close calls Cleanup (it shouldn't since t_open substitutes its own readers)
|
||||
int ret = ::mpg123_tclose(mh);
|
||||
|
||||
// Fairly sure replace_reader_handle, topen and tclose are incompatible, just for consistency
|
||||
// See GCHandle.Free - caller must ensure Free called only once for a given handle.
|
||||
if (userObjectHandle.IsAllocated) userObjectHandle.Free();
|
||||
|
||||
return (mpg123clr::mpg::ErrorCode) ret;
|
||||
}
|
||||
|
||||
#pragma endregion -MS Unicode Extension
|
||||
|
||||
|
953
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.h
vendored
Normal file
953
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.h
vendored
Normal file
@ -0,0 +1,953 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009-2011 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2011 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.10.0.0 30-Nov-09 release match - added mpg123_feature (mb)
|
||||
1.12.0.0 14-Apr-10 release match - added framebyframe and "handle" ReplaceReaders (mb)
|
||||
1.13.0.0 13-Jan-11 release match - added encsize (mb)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
#include "enum.h"
|
||||
#include "error.h"
|
||||
#include "id3v1.h"
|
||||
#include "id3v2.h"
|
||||
#include "advanced.h"
|
||||
|
||||
#include <io.h> // for posix proof of concept only
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <vcclr.h>
|
||||
using namespace std;
|
||||
using namespace System;
|
||||
using namespace System::IO;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
|
||||
|
||||
// Recommended usage when creating reference type on the managed heap (not using stack semantics
|
||||
// for reference types...) [see (Microsoft) Destructors and Finalizers in Visual C++]
|
||||
//
|
||||
// C++/CLI
|
||||
// A myA;
|
||||
// // use myA here
|
||||
//
|
||||
// Equivalent user code:
|
||||
//
|
||||
// A ^ myA = gcnew A;
|
||||
// try { /* use myA here */ } finally { delete myA; }
|
||||
//
|
||||
//
|
||||
// C# (from wikipedia)
|
||||
// using(A myA = new A()) { /* Use myA here */ }
|
||||
// Compiler calls myA.Dispose(), in a "finally" of a "try/finally" block
|
||||
//
|
||||
// Equivalent user code:
|
||||
//
|
||||
// A myA = new myA();
|
||||
// try { /* Use myA here */ } finally { myA.Dispose(); }
|
||||
//
|
||||
// Otherwise Finalizer will be nondeterministically called by GC
|
||||
|
||||
|
||||
///<summary>Wrapper for libmpg123.</summary>
|
||||
public ref class mpg123
|
||||
{
|
||||
|
||||
#pragma region Callback and Delegate
|
||||
|
||||
// Functional callbacks for low-level I/O ReplaceReader
|
||||
|
||||
public:
|
||||
///<summary>Seek Delegate.
|
||||
///<para>Callback seek function to provide low-level stream access to posix-like seek operations.
|
||||
/// Requires user supplied static callback fuction of form off_t fn(int fd, off_t offset, int origin).</para>
|
||||
///<para>Returns callee supplied resulting offset from start of file or -1 for error.</para>
|
||||
///</summary>
|
||||
///<param name="fd">Contains file descriptor.</param>
|
||||
///<param name="offset">Contains required offset value.</param>
|
||||
///<param name="origin">Contains relative origin value (whence) applied to offset.</param>
|
||||
///<returns>Callee supplied resulting offset from start of file or -1 for error.</returns>
|
||||
[UnmanagedFunctionPointer(CallingConvention::Cdecl)]
|
||||
delegate off_t SeekDelegate(int fd, off_t offset, int origin);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention::Cdecl)]
|
||||
delegate off_t SeekHandleDelegate(void* handle, off_t offset, int origin);
|
||||
|
||||
///<summary>Read Delegate.
|
||||
///<para>Callback read function to provide low-level stream access to posix-like read operations.
|
||||
/// Requires user supplied static callback fuction of form ssize_t fn(int fd, void* buffer, size_t size).</para>
|
||||
///<para>Returns callee supplied resulting actual number of bytes read or -1 for error.</para>
|
||||
///</summary>
|
||||
///<param name="fd">Contains file descriptor.</param>
|
||||
///<param name="offset">Contains address of buffer.</param>
|
||||
///<param name="origin">Contains size of buffer.</param>
|
||||
///<returns>Callee supplied resulting actual number of bytes read or -1 for error.</returns>
|
||||
[UnmanagedFunctionPointer(CallingConvention::Cdecl)]
|
||||
delegate ssize_t ReadDelegate(int fd, void* buffer, size_t size);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention::Cdecl)]
|
||||
delegate ssize_t ReadHandleDelegate(void* handle, void* buffer, size_t size);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention::Cdecl)]
|
||||
delegate void CleanupHandleDelegate(void* handle);
|
||||
|
||||
private:
|
||||
// Delegate "keep alive" fields to prevent GC of delegate.
|
||||
SeekDelegate^ seekDel;
|
||||
ReadDelegate^ readDel;
|
||||
|
||||
SeekHandleDelegate^ seekHDel;
|
||||
ReadHandleDelegate^ readHDel;
|
||||
CleanupHandleDelegate^ cleanHDel;
|
||||
|
||||
GCHandle userObjectHandle;
|
||||
|
||||
// Temporary delegate store, replacereader action is defered until next stream 'open' action
|
||||
SeekDelegate^ r_seekDel;
|
||||
ReadDelegate^ r_readDel;
|
||||
|
||||
SeekHandleDelegate^ r_seekHDel;
|
||||
ReadHandleDelegate^ r_readHDel;
|
||||
CleanupHandleDelegate^ r_cleanHDel;
|
||||
|
||||
bool useHandleReplacement;
|
||||
bool lastReplacementWasHandle;
|
||||
|
||||
#pragma endregion -Callback and Delegate
|
||||
|
||||
|
||||
#pragma region Library and Handle Setup
|
||||
|
||||
// \defgroup mpg123_init mpg123 library and handle setup
|
||||
//
|
||||
// Functions to initialise and shutdown the mpg123 library and handles.
|
||||
// The parameters of handles have workable defaults, you only have to tune them when you want to tune something;-)
|
||||
// Tip: Use a RVA setting...
|
||||
//
|
||||
|
||||
private:
|
||||
mpg123_handle* mh;
|
||||
|
||||
internal:
|
||||
mpg123(mpg123_handle* mh);
|
||||
|
||||
protected:
|
||||
///<summary>Finalizer.
|
||||
///<para>Cleanly handles mpg123_delete of internal (unmanaged) mpg123 handle.</para></summary>
|
||||
/// Implementation of CLR Finalize().
|
||||
!mpg123(void);
|
||||
|
||||
public:
|
||||
///<summary>Constructor.
|
||||
///<para>Only creates mpg123 object, you must call one of the New() methods to obtain a decoder library handle.</para>
|
||||
///<para>Recommended usage: using(mpg123 obj = new mpg123()){ use obj here }</para></summary>
|
||||
mpg123(void);
|
||||
|
||||
///<summary>Destructor. Used for final object deletion.
|
||||
///<para>Calls finalizer for clean disposal of internal (unmanaged) library handles.</para>
|
||||
///</summary>
|
||||
/// Implementation of CLR Dispose().
|
||||
/// ~Destructor and !Finalizer are the prescribed implementation of Dispose() and Finalize().
|
||||
/// See Destructors and Finalizers in Visual C++
|
||||
~mpg123(void);
|
||||
|
||||
///<summary>(mpg123_init) Function to initialise the mpg123 library.
|
||||
///<para>This function is not thread-safe. Call it exactly once per process, before any other (possibly threaded) work with the library.</para>
|
||||
///<para>Returns MPG123_OK if successful, otherwise an error number.</para></summary>
|
||||
///<returns>Returns MPG123_OK if successful, otherwise an error number.</returns>
|
||||
static mpg123clr::mpg::ErrorCode __clrcall mpg123_init(void);
|
||||
|
||||
///<summary>(mpg123_exit) Function to close down the mpg123 library.
|
||||
///<para>This function is not thread-safe. Call it exactly once per process, before any other (possibly threaded) work with the library.</para></summary>
|
||||
static void __clrcall mpg123_exit(void);
|
||||
|
||||
///<summary>(mpg123_new) Obtain am mpg123 handle with designated decoder.
|
||||
///<para>Returns MPG123_OK or applicable error code.</para>
|
||||
///</summary>
|
||||
///<param name="decoder">Name of the decoder to attach.</param>
|
||||
///<returns>MPG123_OK or applicable error code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_new(String ^ decoder);
|
||||
|
||||
///<summary>Obtain an mpg123 handle with default decoder.
|
||||
///<para>Returns MPG123_OK or applicable error code.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123_OK or applicable error code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_new(void);
|
||||
|
||||
///<summary>Obtain am mpg123 handle with default decoder.
|
||||
///<para>Allows use of common parms object for multiple connections.</para>
|
||||
///<para>Returns MPG123_OK or applicable error code.</para>
|
||||
///</summary>
|
||||
///<param name="par">Supplied Advanced parameter object.</param>
|
||||
///<returns>MPG123_OK or applicable error code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_parnew(mpg123clr::advpars^ par);
|
||||
|
||||
///<summary>Obtain am mpg123 handle with designated decoder.
|
||||
///<para>Allows use of common parms object for multiple connections.</para>
|
||||
///<para>Returns MPG123_OK or applicable error code.</para>
|
||||
///</summary>
|
||||
///<param name="par">Supplied Advanced parameter object.</param>
|
||||
///<param name="decoder">Name of the decoder to attach.</param>
|
||||
///<returns>MPG123_OK or applicable error code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_parnew(mpg123clr::advpars^ par, String^ decoder);
|
||||
|
||||
///<summary>(mpg123_delete) Delete internal mpg123 handle.
|
||||
///<para>The framework will dispose of the object when it goes out of scope - you do not need to explicitly call Delete().
|
||||
/// However it is available to allow reuse of this object with successive handles - using New()/Delete() pairs.</para>
|
||||
///</summary>
|
||||
void __clrcall mpg123_delete(void);
|
||||
|
||||
public:
|
||||
|
||||
///<summary>Set a specific parameter value.
|
||||
///<para>Returns MPG123_OK or applicable error code.</para>
|
||||
///</summary>
|
||||
///<param name="type">Define the parameter to be set. (parms enumeration)</param>
|
||||
///<param name="val">Integer value to apply.</param>
|
||||
///<param name="fval">Real value to apply.</param>
|
||||
///<returns>MPG123_OK or applicable error code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_param(mpg123clr::mpg::parms type, int val, double fval);
|
||||
|
||||
///<summary>Get a specific parameter value.
|
||||
///<para>Returns MPG123_OK or applicable error code.</para>
|
||||
///</summary>
|
||||
///<param name="type">Define the parameter to get. (parms enumeration)</param>
|
||||
///<param name="val">Returned integer value.</param>
|
||||
///<param name="fval">Returned real value.</param>
|
||||
///<returns>MPG123_OK or applicable error code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_getparam(mpg123clr::mpg::parms type, [Out] int% val, [Out] double% fval);
|
||||
|
||||
///<summary>Query libmpg123 feature.
|
||||
///<para>Returns 1 for success, 0 for unimplemented feature.</para>
|
||||
///</summary>
|
||||
///<param name="key">Define the feature to query. (feature_set enumeration)</param>
|
||||
///<returns>1 for success, 0 for unimplemented feature.</returns>
|
||||
static int __clrcall mpg123_feature(mpg123clr::mpg::feature_set key);
|
||||
|
||||
#pragma endregion -Library and Handle Setup
|
||||
|
||||
#pragma region Internal Helpers
|
||||
|
||||
internal:
|
||||
array<String^>^ StringArrayFromPtr(const char ** ptr);
|
||||
|
||||
#pragma endregion -Internal Helpers
|
||||
|
||||
#pragma region Error Handling
|
||||
|
||||
// \defgroup mpg123_error mpg123 error handling
|
||||
//
|
||||
// Functions to get text version of the error numbers and an enumeration
|
||||
// of the error codes returned by libmpg123.
|
||||
//
|
||||
// Most functions operating on a mpg123_handle simply return MPG123_OK on success and MPG123_ERR on failure (setting the internal error variable of the handle to the specific error code).
|
||||
// Decoding/seek functions may also return message codes MPG123_DONE, MPG123_NEW_FORMAT and MPG123_NEED_MORE (please read up on these on how to react!).
|
||||
// The positive range of return values is used for "useful" values when appropriate.
|
||||
//
|
||||
|
||||
public:
|
||||
|
||||
///<summary>Get string describing what error has occured in the context of this object.
|
||||
///<para>When a function operating on an mpg123 handle returns MPG123_ERR, you should use this function to check the actual reason.</para>
|
||||
///<para>This function will catch mh == NULL and return the message for MPG123_BAD_HANDLE.</para>
|
||||
///<para>Returns text representation of last error (incl. None) encountered by this object.</para>
|
||||
///</summary>
|
||||
///<returns>Text representation of last error (incl. None) encountered by this object.</returns>
|
||||
String^ __clrcall mpg123_strerror(void);
|
||||
|
||||
///<summary>Get last error encountered in the context of this object.
|
||||
///<para>When a function operating on an mpg123 handle returns MPG123_ERR, you should use this function to check the actual reason.</para>
|
||||
///<para>This function will catch internal handle == NULL and return MPG123_BAD_HANDLE.</para>
|
||||
///<para>Returns ErrorCode for last encountered error.</para>
|
||||
///</summary>
|
||||
///<returns>The plain errcode intead of a string of last error (incl. None) encountered by this object.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_errcode(void);
|
||||
|
||||
#pragma endregion -Error Handling
|
||||
|
||||
#pragma region Decoder Selection
|
||||
|
||||
// \defgroup mpg123_decoder mpg123 decoder selection
|
||||
//
|
||||
// Functions to list and select the available decoders.
|
||||
// Perhaps the most prominent feature of mpg123: You have several (optimized) decoders to choose from (on x86 and PPC (MacOS) systems, that is).
|
||||
//
|
||||
|
||||
public:
|
||||
|
||||
///<summary>Obtain list of generally available decoder names (plain 8bit ASCII).
|
||||
///<para>Retuns a string array of generally available decoder names (plain 8bit ASCII).</para>
|
||||
///</summary>
|
||||
///<returns>A string array of generally available decoder names (plain 8bit ASCII).</returns>
|
||||
array<String^>^ __clrcall mpg123_decoders(void);
|
||||
|
||||
///<summary>Obtain list of the decoders supported by the CPU (plain 8bit ASCII).
|
||||
///<para>Returns a string array of the decoders supported by the CPU (plain 8bit ASCII).</para>
|
||||
///</summary>
|
||||
///<returns>A string array of the decoders supported by the CPU (plain 8bit ASCII).</returns>
|
||||
array<String^>^ __clrcall mpg123_supported_decoders(void);
|
||||
|
||||
///<summary>Select the decoder to use.
|
||||
///<para>Returns MPG123_OK or applicable error code.</para>
|
||||
///</summary>
|
||||
///<param name="name">Name of the required decoder. (should be in SupportedDecoders list)</param>
|
||||
///<returns>MPG123_OK or applicable error code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_decoder(String^ name);
|
||||
|
||||
///<summary>Get the currently active decoder engine name.
|
||||
///<para>The active decoder engine can vary depening on output constraints, mostly non-resampling, integer output is accelerated via 3DNow and Co.
|
||||
/// but for other modes a fallback engine kicks in.</para>
|
||||
///<para>Note that this can return a decoder that is ony active in the hidden and not available as decoder choice from the outside.</para>
|
||||
///<para>Returns the decoder name or String.Empty on error.</para>
|
||||
///</summary>
|
||||
///<returns>The decoder name or String.Empty on error.</returns>
|
||||
String^ __clrcall mpg123_current_decoder(void);
|
||||
|
||||
#pragma endregion -Decoder Selection
|
||||
|
||||
#pragma region Output Audio Format
|
||||
|
||||
// \defgroup mpg123_output mpg123 output audio format
|
||||
//
|
||||
// Functions to get and select the format of the decoded audio.
|
||||
//
|
||||
|
||||
public:
|
||||
|
||||
///<summary>Get an array of supported standard sample rates.
|
||||
///<para>These are possible native sample rates of MPEG audio files.
|
||||
/// You can still force mpg123 to resample to a different one, but by default you will only get audio in one of these samplings.</para>
|
||||
///<para>Returns array of sample rates.</para>
|
||||
///</summary>
|
||||
///<returns>An array of sample rates.</returns>
|
||||
array<long>^ __clrcall mpg123_rates(void);
|
||||
|
||||
///<summary>An array of supported audio encodings.
|
||||
///<para>An audio encoding is one of the fully qualified members of mpg.enc</para>
|
||||
///<para>Returns array of supported Encodings.</para>
|
||||
///</summary>
|
||||
///<returns>An array of supported Encodings.</returns>
|
||||
array<mpg123clr::mpg::enc>^ __clrcall mpg123_encodings(void);
|
||||
|
||||
///<summary>Get the size (in bytes) of one mono sample of the named encoding.
|
||||
///<para>Returns the positive size of encoding in bytes, 0 on invalid encoding.</para>
|
||||
///</summary>
|
||||
///<param name="encoding">The encoding value to analyze.</param>
|
||||
///<returns>The positive size of encoding in bytes, 0 on invalid encoding.</returns>
|
||||
static int __clrcall mpg123_encsize(mpg123clr::mpg::enc encoding);
|
||||
|
||||
///<summary>Configure mpg123 to accept no output format at all.
|
||||
///<para>Use to clear default parameters prior to applying specific settings.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_format_none(void);
|
||||
|
||||
///<summary>Configure mpg123 to accept all formats including any custom formats - this is the default.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_format_all(void);
|
||||
|
||||
///<summary>Configure detailed output formats.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="rate">Sample rate (Hertz)</param>
|
||||
///<param name="channels">Combination of channelcount.stereo and channelcount.mono</param>
|
||||
///<param name="encodings">Combination of accepted encodings for rate and channels e.g. enc.enc_signed16 | enc.enc_ulaw_8 (or 0 for none)</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_format(int rate, mpg123clr::mpg::channelcount channels, mpg123clr::mpg::enc encodings);
|
||||
|
||||
///<summary>Get available support for supplied rate and encoding.
|
||||
///<para>Returns 0 for no support (includes invalid parameters), or combination of channelcount.stereo and channelcount.mono.</para>
|
||||
///</summary>
|
||||
///<param name="rate">Sample rate (Hertz)</param>
|
||||
///<param name="encoding">Combination of accepted encodings for rate and channels e.g. enc.enc_signed16 | enc.enc_ulaw_8 (or 0 for none)</param>
|
||||
///<returns>Returns 0 for no support (includes invalid parameters), or combination of channelcount.stereo and channelcount.mono.</returns>
|
||||
mpg123clr::mpg::channelcount __clrcall mpg123_format_support(int rate, mpg123clr::mpg::enc encoding);
|
||||
|
||||
///<summary>Get current output format.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="rate">Returns current sample rate (Hertz)</param>
|
||||
///<param name="channels">Returns combination of channelcount.stereo and channelcount.mono</param>
|
||||
///<param name="encoding">Returns combination of accepted encodings for rate and channels e.g. enc.enc_signed16 | enc.enc_ulaw_8 (or 0 for none)</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_getformat([Out] int% rate, [Out] mpg123clr::mpg::channelcount% channels, [Out] mpg123clr::mpg::enc% encoding);
|
||||
|
||||
#pragma endregion -Output Audio Format
|
||||
|
||||
#pragma region File Input and Decoding
|
||||
|
||||
// \defgroup mpg123_input mpg123 file input and decoding
|
||||
//
|
||||
// Functions for input bitstream and decoding operations.
|
||||
// Decoding/seek functions may also return message codes MPG123_DONE, MPG123_NEW_FORMAT and MPG123_NEED_MORE (please read up on these on how to react!).
|
||||
//
|
||||
|
||||
public:
|
||||
|
||||
///<summary>Open and prepare to decode the file specified by ANSI filename.
|
||||
///<para>This does not open HTTP urls; the mpg library contains no networking code.
|
||||
/// If you want to decode internet streams, use Open(fd) or Open().</para>
|
||||
///
|
||||
///<para>Returns MPG123 error codes</para>
|
||||
///</summary>
|
||||
///<param name="path">ANSI file path. Accepts ANSI path characters. For Unicode paths use tOpen.
|
||||
/// NOTE: can be used in Unicode environment as long as wide-char codepages are avoided.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_open(String^ path);
|
||||
|
||||
///<summary>Use a previously obtained file descriptor as the bitstream input.
|
||||
///<para>NOTE: Close() will NOT close a file opened with this method.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="fd">File Descriptor of pre required file.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_open_fd(int fd);
|
||||
|
||||
///<summary>Use an opaque handle as bitstream input.
|
||||
///<para>This works only with the replaced I/O from mpg123_replace_reader_handle()!</para>
|
||||
///<para>mpg123_close() will call the cleanup callback for your handle (if you gave one).</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_open_handle(System::Object^ obj);
|
||||
|
||||
///<summary>Open a new bitstream and prepare for direct feeding.
|
||||
///<para>This works together with Decode(); you are responsible for reading and feeding the input bitstream.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_open_feed(void);
|
||||
|
||||
///<summary>Closes the source, if the library opened it.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_close(void);
|
||||
|
||||
///<summary>Open and prepare to decode the file specified by UNICODE (wide-character) filename.
|
||||
///<para>This does not open HTTP urls; the mpg library contains no networking code.
|
||||
/// If you want to decode internet streams, use Open(fd) or Open().</para>
|
||||
///
|
||||
///<para>Returns MPG123 error codes</para>
|
||||
///</summary>
|
||||
///<param name="path">UNICODE wide-character file path. See also ANSI Open(path).</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_topen(String^ path);
|
||||
|
||||
///<summary>Closes the file opened with tOpen.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_tclose(void);
|
||||
|
||||
///<summary>Read from stream and decode.
|
||||
///<para>Equivalent to mpg123_read(,,,)</para>
|
||||
///<para>Returns MPG123 error codes. (watch out for MPG123_DONE and friends!)</para>
|
||||
///</summary>
|
||||
///<param name="buffer">Supplied buffer in which to return audio output data.</param>
|
||||
///<param name="count">Returns number of actual audio output bytes returned.</param>
|
||||
///<returns>MPG123 error codes. (watch out for MPG123_DONE and friends!)</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_read(array<unsigned char>^ buffer, [Out] size_t% count);
|
||||
|
||||
///<summary>Read from stream and decode.
|
||||
///<para>Equivalent to mpg123_read(,,,) but modified to better support CLR Stream.Read</para>
|
||||
///<para>Returns MPG123 error codes. (watch out for MPG123_DONE and friends!)</para>
|
||||
///</summary>
|
||||
///<param name="buffer">Supplied buffer in which to return audio output data.</param>
|
||||
///<param name="offset">Offset in buffer at which to begin storing data.</param>
|
||||
///<param name="size">Maximum number of bytes to return.</param>
|
||||
///<param name="count">Returns number of actual audio output bytes returned.</param>
|
||||
///<returns>MPG123 error codes. (watch out for MPG123_DONE and friends!)</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_read(array<unsigned char>^ buffer, size_t offset, size_t size, [Out] size_t% count);
|
||||
|
||||
///<summary>Feed data for a stream that has been opened with Open() - (mpg123_open_feed).
|
||||
///<para>Equivalent to mpg123_feed(...), it's give and take: You provide the bytestream, mpg123 gives you the decoded samples.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="inbuffer">Input buffer.</param>
|
||||
///<param name="size">Number of input bytes.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_feed(array<unsigned char>^ inbuffer, size_t size);
|
||||
|
||||
///<summary>Decode MPEG Audio from inmemory to outmemory.
|
||||
///<para>This is very close to a drop-in replacement for old mpglib.</para>
|
||||
///<para>When you give zero-sized output buffer the input will be parsed until
|
||||
/// decoded data is available. This enables you to get MPG123_NEW_FORMAT (and query it)
|
||||
/// without taking decoded data.</para>
|
||||
///<para>Think of this function being the union of Read() and Feed() (which it actually is, sort of;-).
|
||||
/// You can actually always decide if you want those specialized functions in separate steps or one call this one here.</para>
|
||||
///<para>Returns MPG123 error codes. (watch out especially for MPG123_NEED_MORE)</para>
|
||||
///</summary>
|
||||
///<param name="inbuffer">Input buffer.</param>
|
||||
///<param name="insize">Number of input bytes.</param>
|
||||
///<param name="outbuffer">Supplied buffer in which to return audio output data.</param>
|
||||
///<param name="outsize">Size in bytes of buffer.</param>
|
||||
///<param name="count">Returns number of actual audio output bytes returned.</param>
|
||||
///<returns>MPG123 error codes. (watch out especially for MPG123_NEED_MORE)</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_decode(array<unsigned char>^ inbuffer, size_t insize, array<unsigned char>^ outbuffer, size_t outsize, [Out] size_t% count);
|
||||
|
||||
///<summary>Decode next MPEG frame to internal buffer or read a frame and return after setting a new format.
|
||||
///<para>Returns MPG123 error codes. (watch out for MPG123_NEW_FORMAT)</para>
|
||||
///</summary>
|
||||
///<param name="num">Returns current frame offset.</param>
|
||||
///<param name="audio">Returns pointer to internal buffer to read the decoded audio from. (Can be NULL for NEW_FORMAT)</param>
|
||||
///<param name="count">Returns number of actual audio output bytes ready in the buffer.</param>
|
||||
///<returns>MPG123 error codes. (watch out for MPG123_NEW_FORMAT)</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_decode_frame([Out] off_t% num, [Out] IntPtr% audio, [Out] size_t% count);
|
||||
|
||||
///<summary>Decode current MPEG frame to internal buffer.
|
||||
///<para>Use with mpg123_framebyframe_next to progress through data.</para>
|
||||
///<para>Warning: This is experimental API that might change in future releases!
|
||||
/// Please watch mpg123 development closely when using it.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="num">Returns current frame offset.</param>
|
||||
///<param name="audio">Returns pointer to internal buffer to read the decoded audio from. (Can be NULL for NEW_FORMAT)</param>
|
||||
///<param name="bytes">Returns number of actual audio output bytes ready in the buffer.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_framebyframe_decode([Out] off_t% num, [Out] IntPtr% audio, [Out] size_t% bytes);
|
||||
|
||||
///<summary>Find, read and parse the next mp3 frame.
|
||||
///<para>Use with mpg123_framebyframe_decode to obtain frame data.</para>
|
||||
///<para>Warning: This is experimental API that might change in future releases!
|
||||
/// Please watch mpg123 development closely when using it.</para>
|
||||
///<para>Returns MPG123 error codes. (watch out for MPG123_NEW_FORMAT)</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes. (watch out for MPG123_NEW_FORMAT)</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_framebyframe_next(void);
|
||||
|
||||
#pragma endregion -File Input and Decoding
|
||||
|
||||
#pragma region Position and Seeking
|
||||
|
||||
// \defgroup mpg123_seek mpg123 position and seeking
|
||||
//
|
||||
// Functions querying and manipulating position in the decoded audio bitstream.
|
||||
// The position is measured in decoded audio samples, or MPEG frame offset for the specific functions.
|
||||
// If gapless code is in effect, the positions are adjusted to compensate the skipped padding/delay - meaning, you should not care about that at all and just use the position defined for the samples you get out of the decoder;-)
|
||||
// The general usage is modelled after stdlib's ftell() and fseek().
|
||||
// Especially, the whence parameter for the seek functions has the same meaning as the one for fseek() and needs the same constants from stdlib.h:
|
||||
// - SEEK_SET: set position to (or near to) specified offset
|
||||
// - SEEK_CUR: change position by offset from now
|
||||
// - SEEK_END: set position to offset from end
|
||||
//
|
||||
// Note that sample-accurate seek only works when gapless support has been enabled at compile time; seek is frame-accurate otherwise.
|
||||
// Also, really sample-accurate seeking (meaning that you get the identical sample value after seeking compared to plain decoding up to the position) is only guaranteed when you do not mess with the position code by using MPG123_UPSPEED, MPG123_DOWNSPEED or MPG123_START_FRAME. The first two mainly should cause trouble with NtoM resampling, but in any case with these options in effect, you have to keep in mind that the sample offset is not the same as counting the samples you get from decoding since mpg123 counts the skipped samples, too (or the samples played twice only once)!
|
||||
// Short: When you care about the sample position, don't mess with those parameters;-)
|
||||
// Also, seeking is not guaranteed to work for all streams (underlying stream may not support it).
|
||||
//
|
||||
|
||||
public:
|
||||
|
||||
///<summary>Get the current position in samples. On the next read, you'd get that sample.
|
||||
///<para>Returns the current sample position.</para>
|
||||
///</summary>
|
||||
///<returns>The current sample position.</returns>
|
||||
long long __clrcall mpg123_tell();
|
||||
|
||||
///<summary>Get the frame number that the next read will give you data from.
|
||||
///<para>Returns the current frame number position.</para>
|
||||
///</summary>
|
||||
///<returns>The current frame number position.</returns>
|
||||
long long __clrcall mpg123_tellframe();
|
||||
|
||||
///<summary>Get the current byte offset in the input stream.
|
||||
///<para>Returns the current byte offset.</para>
|
||||
///</summary>
|
||||
///<returns>The current byte offset.</returns>
|
||||
long long __clrcall mpg123_tell_stream();
|
||||
|
||||
///<summary>Seek to a desired sample offset.
|
||||
///<para>Returns the resulting offset >= 0 or error/message code.</para>
|
||||
///</summary>
|
||||
///<param name="offset">The distance to move.</param>
|
||||
///<param name="origin">(whence) The relative location to move from.(SeekOrigin.Begin, SeekOrigin.Current, SeekOrigin.End)</param>
|
||||
///<returns>Returns the resulting offset >= 0 or error/message code.</returns>
|
||||
long long __clrcall mpg123_seek(long long offset, SeekOrigin origin);
|
||||
|
||||
///<summary>Seek to a desired sample offset in data feeding mode.
|
||||
///<para>This just prepares things to be right only if you ensure that the next chunk of input data will be from input_offset byte position.</para>
|
||||
///<para>Returns the resulting offset >= 0 or error/message code.</para>
|
||||
///</summary>
|
||||
///<param name="offset">The distance to move.</param>
|
||||
///<param name="origin">(whence) The relative location to move from.(SeekOrigin.Begin, SeekOrigin.Current, SeekOrigin.End)</param>
|
||||
///<param name="input_offset">Returns the position it expects to be at the next time data is fed to Decode().</param>
|
||||
///<returns>Returns the resulting offset >= 0 or error/message code.</returns>
|
||||
long long __clrcall mpg123_feedseek(long long offset, SeekOrigin origin, [Out] long long% input_offset);
|
||||
|
||||
///<summary>Seek to a desired MPEG frame index.
|
||||
///<para>Returns the resulting offset >= 0 or error/message code.</para>
|
||||
///</summary>
|
||||
///<param name="frameoffset">The numberof frames to move.</param>
|
||||
///<param name="origin">(whence) The relative location to move from.(SEEK_SET, SEEK_CUR or SEEK_END)</param>
|
||||
///<returns>Returns the resulting offset >= 0 or error/message code.</returns>
|
||||
long long __clrcall mpg123_seek_frame(long long frameoffset, SeekOrigin origin);
|
||||
|
||||
///<summary>Seek to an absolute MPEG frame offset corresponding to an offset in seconds.
|
||||
///<para>This assumes that the samples per frame do not change in the file/stream, which is a good assumption for any sane file/stream only.</para>
|
||||
///<para>Returns the resulting offset >= 0 or error/message code.</para>
|
||||
///</summary>
|
||||
///<param name="seconds">The absolute time offset required.</param>
|
||||
///<returns>Returns the resulting offset >= 0 or error/message code.</returns>
|
||||
long long __clrcall mpg123_timeframe(double seconds);
|
||||
|
||||
///<summary>Get a copy of the frame index table. Somewhat equivalent to mpg123_index(,,).
|
||||
///<para>The library requests not to modify table values. Since this is a copy, modification is meaningless - it has no effect on library routines.</para>
|
||||
///<para>NOTE: The returned index table value types are Int64 independant of library build.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="index">Returns array of source file position offsets (not output samples). Length of array is equivalent to mpg123_index "fill" parameter.</param>
|
||||
///<param name="step">Returns number of MPEG frames per index entry.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_index([Out] array<long long>^% index, [Out] long long% step);
|
||||
|
||||
///<summary>Get a pointer to the frame index table. Equivalent to mpg123_index(,,).
|
||||
///<para>Do not modify table values unless you really know what you are doing!</para>
|
||||
///<para>NOTE: The returned index table value types may be Int32 or Int64 depending on library build.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="indexarr">Returns pointer to source file position offset index array (not output samples).</param>
|
||||
///<param name="step">Returns number of MPEG frames per index entry.</param>
|
||||
///<param name="fill">Returns number of recorded index offsets; size of the array.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_index([Out] IntPtr% indexarr, [Out] long long% step, [Out] size_t% fill);
|
||||
|
||||
///<summary>Get information about current and remaining frames/seconds. Equivalent to mpg123_position(,,,,,,).
|
||||
///<para>WARNING: This function is there because of special usage by standalone mpg123 and may be removed in the final version of libmpg123!</para>
|
||||
///<para>You provide an offset (in frames) from now and a number of output bytes
|
||||
/// served by libmpg123 but not yet played. You get the projected current frame
|
||||
/// and seconds, as well as the remaining frames/seconds. This does _not_ care
|
||||
/// about skipped samples due to gapless playback.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="frameoffset">Offset (in frames) from now.</param>
|
||||
///<param name="bufferedbytes">Number of output bytes served by library but not yet played.</param>
|
||||
///<param name="currentframe">Returns projected current frame.</param>
|
||||
///<param name="framesleft">Returns projected frames remaining.</param>
|
||||
///<param name="currentseconds">Returns projected current seconds.</param>
|
||||
///<param name="secondsleft">Returns projected seconds remaining.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_position(long long frameoffset, long long bufferedbytes,
|
||||
[Out] long long% currentframe, [Out] long long% framesleft,
|
||||
[Out] double% currentseconds, [Out] double% secondsleft);
|
||||
|
||||
#pragma endregion -Position and Seeking
|
||||
|
||||
#pragma region Volume and Equalizer
|
||||
|
||||
// \defgroup mpg123_voleq mpg123 volume and equalizer
|
||||
//
|
||||
|
||||
public:
|
||||
|
||||
///<summary>Set the 32 Band Audio Equalizer settings.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="channel">Can be MPG123_LEFT, MPG123_RIGHT or MPG123_LEFT|MPG123_RIGHT for both. (enum mpg.channels)</param>
|
||||
///<param name ="band">The equaliser band to change (from 0 to 31)</param>
|
||||
///<param name="fval">The (linear) adjustment factor to be applied.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_eq(mpg123clr::mpg::channels channel, int band, double fval);
|
||||
|
||||
///<summary>Get the 32 Band Audio Equalizer settings.
|
||||
///<para>Rreturns the (linear) adjustment factor.</para>
|
||||
///</summary>
|
||||
///<param name="channel">Can be MPG123_LEFT, MPG123_RIGHT or MPG123_LEFT|MPG123_RIGHT for (arithmetic mean of) both. (enum mpg.channels)</param>
|
||||
///<param name="band">The equaliser band to get (from 0 to 31)</param>
|
||||
///<return>The (linear) adjustment factor.</return>
|
||||
double __clrcall mpg123_geteq(mpg123clr::mpg::channels channel, int band);
|
||||
|
||||
///<summary>Reset the 32 Band Audio Equalizer settings to flat.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_reset_eq();
|
||||
|
||||
///<summary>Set the absolute output volume including the RVA setting.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="volume">The (linear) adjustment factor to be applied, volume < 0 just applies (a possibly changed) RVA setting.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_volume(double volume);
|
||||
|
||||
///<summary>Adjust output volume including the RVA setting.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="change">The (linear) adjustment factor to be applied.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_volume_change(double change);
|
||||
|
||||
///<summary>Get the current volume setting, the actual value due to RVA, and the RVA adjustment itself.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="basevol">Returns the current linear volume factor. (not percent)</param>
|
||||
///<param name="really">Returns the actual linear volume factor due to RVA. (not percent)</param>
|
||||
///<param name="rva_db">Returns the RVA adjustment in decibels.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_getvolume([Out] double% basevol, [Out] double% really, [Out] double% rva_db);
|
||||
|
||||
#pragma endregion -Volume and Equalizer
|
||||
|
||||
#pragma region Status and Information
|
||||
|
||||
// \defgroup mpg123_status mpg123 status and information
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
[StructLayout(LayoutKind::Sequential, CharSet=CharSet::Ansi, Pack=1)]
|
||||
ref struct mpeg_frameinfo
|
||||
{
|
||||
mpg123clr::mpg::mpeg_version version; // The MPEG version (1.0/2.0/2.5).
|
||||
int layer; // The MPEG Audio Layer (MP1/MP2/MP3).
|
||||
long rate; // The sampling rate in Hz.
|
||||
mpg123clr::mpg::mpeg_mode mode; // The audio mode (Mono, Stereo, Joint-stero, Dual Channel).
|
||||
int mode_ext; // The mode extension bit flag.
|
||||
int framesize; // The size of the frame (in bytes).
|
||||
mpg123clr::mpg::mpeg_flags flags; // MPEG Audio flag bits.
|
||||
int emphasis; // The emphasis type.
|
||||
int bitrate; // Bitrate of the frame (kbps).
|
||||
int abr_rate; // The target average bitrate.
|
||||
mpg123clr::mpg::mpeg_vbr vbr; // The VBR mode.
|
||||
};
|
||||
|
||||
///<summary>Get the frame information about the MPEG audio bitstream.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="finfo">Returns the frame information.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_info([Out]mpeg_frameinfo^% finfo);
|
||||
|
||||
///<summary>Get the frame information about the MPEG audio bitstream.
|
||||
///<para>SafeInfo uses "safe" managed structures but is somewhat slower than Info().
|
||||
/// Recommend using Info() unless it gives specific problems.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="finfo">Returns the frame information.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_safeinfo([Out]mpeg_frameinfo^% finfo);
|
||||
|
||||
///<summary>Get the safe output buffer size for all cases (when you want to replace the internal buffer).
|
||||
///<para>Returns safe buffer size.</para>
|
||||
///</summary>
|
||||
///<returns>Safe buffer size.</returns>
|
||||
static size_t __clrcall mpg123_safe_buffer(void);
|
||||
|
||||
///<summary>Make a full parsing scan of each frame in the file.
|
||||
///<para>ID3 tags are found. An accurate length value is stored. Seek index will be filled.
|
||||
/// A seek back to current position is performed.</para>
|
||||
///<para>This function refuses work when stream is not seekable.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_scan(void);
|
||||
|
||||
///<summary>Return, if possible, the full (expected) length of current track in samples.
|
||||
///<para>Returns length (>= 0) or MPG123_ERR if there is no length guess possible. (Multiply by BlockAlign for byte-count)</para>
|
||||
///</summary>
|
||||
///<returns>Length (>= 0) or MPG123_ERR if there is no length guess possible. (Multiply by BlockAlign for byte-count)</returns>
|
||||
long long __clrcall mpg123_length(void);
|
||||
|
||||
///<summary>Override the value for file size in bytes.
|
||||
///<para>Useful for getting sensible track length values in feed mode or for HTTP streams.</para>
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="size">Size to set.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_set_filesize(long long size);
|
||||
|
||||
///<summary>Time Per Frame (seconds).
|
||||
///<para>Returns time per frame in seconds ( < 0 is error ).</para>
|
||||
///</summary>
|
||||
///<returns>Time per frame in seconds ( < 0 is error ).</returns>
|
||||
double __clrcall mpg123_tpf(void);
|
||||
|
||||
///<summary>Get and reset the clip count.
|
||||
///<para>Returns the number of previously encountered clips.</para>
|
||||
///</summary>
|
||||
///<returns>The number of previously encountered clips.</returns>
|
||||
long __clrcall mpg123_clip();
|
||||
|
||||
///<summary>Get various current decoder/stream state information.
|
||||
///<para>Returns MPG123 error codes.</para>
|
||||
///</summary>
|
||||
///<param name="key">The key to identify the information to get (enum mpg.state).</param>
|
||||
///<param name="val">Returns integer values.</param>
|
||||
///<param name="fval">Returns real values.</param>
|
||||
///<returns>MPG123 error codes.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_getstate(mpg123clr::mpg::state key, [Out] int% val, [Out] double% fval);
|
||||
|
||||
#pragma endregion -Status and Information
|
||||
|
||||
#pragma region Metadata Handling
|
||||
|
||||
// \defgroup mpg123_metadata mpg123 metadata handling
|
||||
//
|
||||
// Functions to retrieve the metadata from MPEG Audio files and streams.
|
||||
// Also includes string handling functions.
|
||||
//
|
||||
|
||||
// clr - much of the metadata has been relocated to class files for maintainability
|
||||
// see string.h, text.h, id3v1.h and id3v2.h
|
||||
//
|
||||
|
||||
///<summary>Query if there is (new) meta info, be it ID3 or ICY (or something new in future).
|
||||
///<para>Returns a combination of flags. (enum id3.id3check)</para>
|
||||
///</summary>
|
||||
///<returns>Returns a combination of flags. (enum id3.id3check)</returns>
|
||||
mpg123clr::id3::id3check __clrcall mpg123_meta_check(void); /* On error (no valid handle) just 0 is returned. */
|
||||
|
||||
///<summary>Get ID3 data. Data structures may change on any (next) read/decode function call.
|
||||
///<para>v1 and/or v2 may be Empty if no corresponding data exists.</para>
|
||||
///<para>Returns MPG123_OK or MPG123_ERR.</para>
|
||||
///</summary>
|
||||
///<param name="v1">Returns mpg123id3v1 data structure containing ID3v1 data (usually from end of file).</param>
|
||||
///<param name="v2">Returns mpg123id3v2 data structure containing ID3v2 data (usually - but not restricted to - from beginning of file).</param>
|
||||
///<returns>Returns MPG123_OK or MPG123_ERR.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_id3([Out]id3::mpg123id3v1^% v1, [Out]id3::mpg123id3v2^% v2);
|
||||
|
||||
///<summary>Get ICY meta data. Data structure may change on any (next) read/decode function call.
|
||||
///<para>Icy_meta may be null if no corresponding data exists.</para>
|
||||
///<para>Returns MPG123_OK or MPG123_ERR.</para>
|
||||
///</summary>
|
||||
///<param name="icy_meta">Returns ICY meta data (windows-1252 encoded).</param>
|
||||
///<returns>Returns MPG123_OK or MPG123_ERR.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_icy([Out]IntPtr% icy_meta); /* same for ICY meta string */
|
||||
|
||||
///<summary>Decode from windows-1252 (the encoding ICY metainfo used) to UTF-8.
|
||||
///<para>Returns byte array of utf8 encoded data.</para>
|
||||
///</summary>
|
||||
///<param name="icy_text">ICY meta data in ICY encoding.</param>
|
||||
///<returns>Returns byte array of utf8 encoded data.</returns>
|
||||
static array<unsigned char>^ __clrcall mpg123_icy2utf8(IntPtr icy_text);
|
||||
|
||||
#pragma endregion -Metadata Handling
|
||||
|
||||
#pragma region Advanced Parameter API
|
||||
|
||||
// \defgroup mpg123_advpar mpg123 advanced parameter API
|
||||
//
|
||||
// Direct access to a parameter set without full handle around it.
|
||||
// Possible uses:
|
||||
// - Influence behaviour of library _during_ initialization of handle (MPG123_VERBOSE).
|
||||
// - Use one set of parameters for multiple handles.
|
||||
//
|
||||
// The functions for handling mpg123_pars (mpg123_par() and mpg123_fmt()
|
||||
// family) directly return a fully qualified mpg123 error code, the ones
|
||||
// operating on full handles normally MPG123_OK or MPG123_ERR, storing the
|
||||
// specific error code itself inside the handle.
|
||||
//
|
||||
|
||||
// see advanced.h
|
||||
|
||||
#pragma endregion -Advanced Parameter API
|
||||
|
||||
#pragma region Low Level I/O
|
||||
|
||||
// \defgroup mpg123_lowio mpg123 low level I/O
|
||||
// You may want to do tricky stuff with I/O that does not work with mpg123's default file access or you want to make it decode into your own pocket...
|
||||
//
|
||||
|
||||
///<summary>Replace default internal buffer with user-supplied buffer.
|
||||
///<para>Instead of working on it's own private buffer, mpg123 will directly use the one you provide for storing decoded audio.</para>
|
||||
///<para>The data buffer should be pinned before calling this function.</para>
|
||||
///<para>Returns MPG123_OK or MPG123 error code.</para>
|
||||
///</summary>
|
||||
///<param name="data">Pointer to supplied buffer.</param>
|
||||
///<param name="size">Size of supplied buffer.</param>
|
||||
///<returns>MPG123_OK or MPG123_ERR code.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_replace_buffer(IntPtr data, size_t size);
|
||||
|
||||
///<summary>The max size of one frame's decoded output with current settings.
|
||||
///<para>Use that to determine an appropriate minimum buffer size for decoding one frame.</para>
|
||||
///<para>Returns size of required buffer.</para>
|
||||
///</summary>
|
||||
///<returns>Size of required buffer.</returns>
|
||||
size_t __clrcall mpg123_outblock(void);
|
||||
|
||||
///<summary>Replace low-level stream access functions; read and lseek as known in POSIX.
|
||||
///<para>You can use this to make any fancy file opening/closing yourself,
|
||||
/// using mpg123_open_fd() to set the file descriptor for your read/lseek (doesn't need to be a 'real' file descriptor...).</para>
|
||||
///<para>Setting a function to NULL means that the default internal function is used (active from next Open call onward).</para>
|
||||
/////////////////////////
|
||||
///<para>Always returns MPG123_OK.</para>
|
||||
///</summary>
|
||||
///<param name="r_read">Delegate for read function, null for default.</param>
|
||||
///<param name="r_lseek">Delegate for lseek function, null for default.</param>
|
||||
///<returns>Always MPG123_OK.</returns>
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_replace_reader(ReadDelegate^ r_read, SeekDelegate^ r_lseek);
|
||||
|
||||
///////////////////////////////////////
|
||||
mpg123clr::mpg::ErrorCode __clrcall mpg123_replace_reader_handle(ReadHandleDelegate^ rh_read, SeekHandleDelegate^ rh_lseek, CleanupHandleDelegate^ rh_clean);
|
||||
|
||||
private:
|
||||
|
||||
// Defered internal implementation of ReplaceReader - action is defered until next 'Open' operation.
|
||||
void __clrcall _ReplaceReader(void);
|
||||
|
||||
public:
|
||||
|
||||
// These functions are not part of the mpg123clr wrapper but are included as proof of concept
|
||||
// of how to implement callback functions.
|
||||
|
||||
///<summary>Proof of concept posix-like lseek function.
|
||||
///<para>This routine should not normally be called from your callback routine, it is a sample function
|
||||
/// showing how such a callback could be implemented.</para>
|
||||
///</summary>
|
||||
///<param name="fd">File descriptor.</param>
|
||||
///<param name="offset">Required position.</param>
|
||||
///<param name="origin">Whence.</param>
|
||||
///<returns>Resultant position.</returns>
|
||||
static long PosixSeek(int fd, long offset, int origin)
|
||||
{
|
||||
long ret = _lseek(fd, offset, origin);
|
||||
return ret;
|
||||
}
|
||||
|
||||
///<summary>Proof of concept posix-like read function.
|
||||
///<para>This routine should not normally be called from your callback routine, it is a sample function
|
||||
/// showing how such a callback could be implemented.</para>
|
||||
///</summary>
|
||||
///<param name="fd">File descriptor.</param>
|
||||
///<param name="buf">Buffer address.</param>
|
||||
///<param name="count">Size of buffer.</param>
|
||||
///<returns>Actual bytes read.</returns>
|
||||
static int PosixRead(int fd, void*buf, unsigned int count)
|
||||
{
|
||||
int ret = _read(fd, buf, count);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#pragma endregion -Low Level I/O
|
||||
|
||||
};
|
||||
|
||||
}
|
102
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.rc
vendored
Normal file
102
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.rc
vendored
Normal file
@ -0,0 +1,102 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,13,0,0
|
||||
PRODUCTVERSION 1,13,0,0
|
||||
FILEFLAGSMASK 0x17L
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "mpg123 Project"
|
||||
VALUE "FileDescription", "mpg123clr Dynamic Link Library"
|
||||
VALUE "FileVersion", "1, 13, 0, 0"
|
||||
VALUE "InternalName", "mpg123clr"
|
||||
VALUE "LegalCopyright", "2009-2011 - the mpg123 project"
|
||||
VALUE "OriginalFilename", "mpg123clr.dll"
|
||||
VALUE "ProductName", "mpg123 Common Language Runtime Dynamic Link Library"
|
||||
VALUE "ProductVersion", "1, 13, 0, 0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
328
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.vcproj
vendored
Normal file
328
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/mpg123clr.vcproj
vendored
Normal file
@ -0,0 +1,328 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="mpg123clr"
|
||||
ProjectGUID="{99E8B20E-9C29-46BC-B766-A50F237D88BF}"
|
||||
RootNamespace="mpg123clr"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
ManagedExtensions="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)..";"$(SolutionDir)..\..\..\src\libmpg123\""
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MPG123CLR_EXPORTS"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="2"
|
||||
GenerateXMLDocumentationFiles="true"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
AssemblyDebug="1"
|
||||
SubSystem="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
OutputDocumentFile="$(OutDir)\$(ProjectName).xml"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
CharacterSet="1"
|
||||
ManagedExtensions="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)..";"$(SolutionDir)..\..\..\src\libmpg123\""
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MPG123CLR_EXPORTS"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="2"
|
||||
GenerateXMLDocumentationFiles="true"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
OutputDocumentFile="$(OutDir)\$(ProjectName).xml"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
|
||||
RelativePathToProject="..\2008\libmpg123\libmpg123.vcproj"
|
||||
/>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\advanced.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\AssemblyInfo.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\dllmain.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="0"
|
||||
CompileAsManaged="0"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="0"
|
||||
CompileAsManaged="0"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\error.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\id3v1.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\id3v2.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\mpg123clr.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\string.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\text.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\advanced.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\enum.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\error.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\id3v1.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\id3v2.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\mpg123clr.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\resource.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\string.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\targetver.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\text.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\mpg123clr.rc"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
14
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/resource.h
vendored
Normal file
14
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/resource.h
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by mpg123clr.rc
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
8
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/stdafx.cpp
vendored
Normal file
8
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/stdafx.cpp
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// mpg123clr.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
// TODO: reference any additional headers you need in STDAFX.H
|
||||
// and not in this file
|
38
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/stdafx.h
vendored
Normal file
38
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/stdafx.h
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
*/
|
||||
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "targetver.h"
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
// Windows Header Files:
|
||||
#include <windows.h>
|
||||
|
||||
|
||||
|
||||
// TODO: reference additional headers your program requires here
|
||||
|
||||
struct mpg123_pars_struct{};
|
||||
struct mpg123_handle_struct{};
|
166
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/string.cpp
vendored
Normal file
166
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/string.cpp
vendored
Normal file
@ -0,0 +1,166 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009-2011 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2011 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.9.0.0 01-Oct-09 Technical cleanup - subst nullptr for NULL (mb)
|
||||
1.13.0.0 13-Jan-11 release match - added strlen (mb)
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "string.h"
|
||||
|
||||
// Constructor for overlaid instance (instanced)
|
||||
mpg123clr::mpg123str::mpg123str(void)
|
||||
{
|
||||
instanced = true;
|
||||
sb = new ::mpg123_string;
|
||||
mpg123_init_string();
|
||||
|
||||
}
|
||||
|
||||
// Constructor for mpg123_string handle instance (referenced)
|
||||
mpg123clr::mpg123str::mpg123str(mpg123_string* sb)
|
||||
{
|
||||
instanced = false;
|
||||
this->sb = sb;
|
||||
}
|
||||
|
||||
mpg123clr::mpg123str::mpg123str(const char* str)
|
||||
{
|
||||
instanced = true;
|
||||
sb = new ::mpg123_string;
|
||||
mpg123_init_string();
|
||||
|
||||
::mpg123_set_string(sb, str);
|
||||
}
|
||||
|
||||
// Destructor cleans up all resources
|
||||
mpg123clr::mpg123str::~mpg123str(void)
|
||||
{
|
||||
// clean up code to release managed resources
|
||||
// ...
|
||||
|
||||
// call Finalizer to clean up unmanaged resources
|
||||
this->!mpg123str();
|
||||
}
|
||||
|
||||
// Finalizer cleans up unmanaged resources
|
||||
mpg123clr::mpg123str::!mpg123str(void)
|
||||
{
|
||||
if (instanced && (sb != nullptr)) mpg123_free_string();
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_add_string(String ^ s)
|
||||
{
|
||||
return mpg123_add_substring(s, 0, s->Length);
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_add_substring(String ^ s, int from, int count)
|
||||
{
|
||||
// convert CLR string to CLI string
|
||||
using namespace Runtime::InteropServices;
|
||||
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(s->Substring(from, count))).ToPointer();
|
||||
|
||||
// add mpg123_string info
|
||||
int ret = ::mpg123_add_string(sb, chars);
|
||||
|
||||
// free temporary memory
|
||||
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_copy_string(mpg123str^ to)
|
||||
{
|
||||
return ::mpg123_copy_string(sb, to->sb);
|
||||
}
|
||||
|
||||
void mpg123clr::mpg123str::mpg123_free_string()
|
||||
{
|
||||
::mpg123_free_string(sb);
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_grow_string(int newSize)
|
||||
{
|
||||
return ::mpg123_grow_string(sb, newSize);
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_resize_string(int newSize)
|
||||
{
|
||||
return ::mpg123_resize_string(sb, newSize);
|
||||
}
|
||||
|
||||
void mpg123clr::mpg123str::mpg123_init_string()
|
||||
{
|
||||
::mpg123_init_string(sb);
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_set_string(String ^ s)
|
||||
{
|
||||
return mpg123_set_substring(s, 0, s->Length);
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_set_substring(String ^ s, int from, int count)
|
||||
{
|
||||
// convert CLR string to CLI string
|
||||
using namespace Runtime::InteropServices;
|
||||
const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(s->Substring(from, count))).ToPointer();
|
||||
|
||||
// set mpg123_string info
|
||||
int ret = ::mpg123_set_string(sb, chars);
|
||||
|
||||
// free temporary memory
|
||||
Marshal::FreeHGlobal(IntPtr((void*)chars));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
long long mpg123clr::mpg123str::mpg123_strlen(bool utf8)
|
||||
{
|
||||
// TODO: determine use for utf8 vs ansi
|
||||
return ::mpg123_strlen(sb, utf8);
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::Fill::get()
|
||||
{
|
||||
// WARN 4267 - clr limited to 32bit-length-size strings by PtrToStringAnsi
|
||||
return (int)sb->fill;
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::Size::get()
|
||||
{
|
||||
// WARN 4267 - clr limited to 32bit-length-size strings by PtrToStringAnsi
|
||||
return (int)sb->size;
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123str::Text::get()
|
||||
{
|
||||
if (sb->fill == 0) return gcnew String("");
|
||||
|
||||
// WARN 4267 - clr limited to 32bit-length-size strings by PtrToStringAnsi
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->p, (int)strnlen(sb->p, sb->fill));
|
||||
}
|
||||
|
||||
mpg123clr::mpg123str::text_encoding mpg123clr::mpg123str::mpg123_enc_from_id3(unsigned char id3_enc_byte)
|
||||
{
|
||||
return (mpg123clr::mpg123str::text_encoding) ::mpg123_enc_from_id3(id3_enc_byte);
|
||||
}
|
||||
|
||||
int mpg123clr::mpg123str::mpg123_store_utf8(text_encoding enc, const unsigned char *source, size_t source_size)
|
||||
{
|
||||
return ::mpg123_store_utf8(sb, (mpg123_text_encoding)enc, source, source_size);
|
||||
}
|
265
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/string.h
vendored
Normal file
265
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/string.h
vendored
Normal file
@ -0,0 +1,265 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009-2011 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2011 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
1.9.0.0 16-Sep-09 1.9.0 Update - add enc_from_id3, store_utf8
|
||||
1.9.0.0 24-Sep-09 Function names harmonized with libmpg123 (mb)
|
||||
1.13.0.0 13-Jan-11 release match - added strlen (mb)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <vcclr.h>
|
||||
using namespace std;
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
|
||||
// Recommended usage when creating reference type on the managed heap (not using stack semantics
|
||||
// for reference types...) [see Destructors and Finalizers in Visual C++]
|
||||
//
|
||||
// A ^ myA = gcnew A;
|
||||
// try
|
||||
// {
|
||||
// use myA
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// delete myA;
|
||||
// }
|
||||
|
||||
|
||||
///<summary>Wrapper for mpg123_string.
|
||||
///<para>mpg123str can be used as both (publicly) an instance object and (privately) a reference object.
|
||||
/// Construction and Finalizer operations perform differently depending on the instance type...
|
||||
///</para>
|
||||
///<para>Instanced: i.e. new mpg123str();
|
||||
/// Normal operation of any object. Construction initializes memory and Destruction frees memory.
|
||||
///</para>
|
||||
///<para>Referenced: i.e. new mpg123str(sb);
|
||||
/// Construction and Destruction have no effect on the referenced object, mpg123str objects may be freely
|
||||
/// made and deleted without affecting the referenced object.
|
||||
///</para>
|
||||
///<para>However!
|
||||
///</para>
|
||||
///<para>All methods operate on the referenced object (and NOT a copy of the object), the underlying mpg123_string
|
||||
/// is directly modified in situ. Therefore the referenced object can be initialized and disposed by
|
||||
/// explicitly calling Init() and Free().</para>
|
||||
///<para>The length of strings is limited to a 32bit value due to limitations of the CLI marshaler.
|
||||
///</para>
|
||||
///</summary>
|
||||
[StructLayout(LayoutKind::Sequential, CharSet=CharSet::Ansi)]
|
||||
public ref struct mpg123str
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
///<summary>text_encoding enumeration.</summary>
|
||||
enum class text_encoding
|
||||
{
|
||||
text_unknown = mpg123_text_unknown, /// Unkown encoding... mpg123_id3_encoding can return that on invalid codes.
|
||||
text_utf8 = mpg123_text_utf8, /// UTF-8
|
||||
text_latin1 = mpg123_text_latin1, /// ISO-8859-1. Note that sometimes latin1 in ID3 is abused for totally different encodings.
|
||||
text_icy = mpg123_text_icy, /// ICY metadata encoding, usually CP-1252 but we take it as UTF-8 if it qualifies as such.
|
||||
text_cp1252 = mpg123_text_cp1252, /// Really CP-1252 without any guessing.
|
||||
text_utf16 = mpg123_text_utf16, /// Some UTF-16 encoding. The last of a set of leading BOMs (byte order mark) rules.
|
||||
/// When there is no BOM, big endian ordering is used. Note that UCS-2 qualifies as UTF-8 when
|
||||
/// you don't mess with the reserved code points. If you want to decode little endian data
|
||||
/// without BOM you need to prepend 0xff 0xfe yourself.
|
||||
text_utf16bom = mpg123_text_utf16bom, /// Just an alias for UTF-16, ID3v2 has this as distinct code.
|
||||
text_utf16be = mpg123_text_utf16be, /// Another alias for UTF16 from ID3v2. Note, that, because of the mess that is reality,
|
||||
/// BOMs are used if encountered. There really is not much distinction between the UTF16 types for mpg123
|
||||
/// One exception: Since this is seen in ID3v2 tags, leading null bytes are skipped for all other UTF16
|
||||
/// types (we expect a BOM before real data there), not so for utf16be!
|
||||
text_max = mpg123_text_max /// Placeholder for the maximum encoding value.
|
||||
};
|
||||
|
||||
///<summary>id3_enc enumeration.</summary>
|
||||
enum class id3_enc
|
||||
{
|
||||
id3_latin1 = mpg123_id3_latin1, /// Note: This sometimes can mean anything in practice...
|
||||
id3_utf16bom = mpg123_id3_utf16bom, /// UTF16, UCS-2 ... it's all the same for practical purposes.
|
||||
id3_utf16be = mpg123_id3_utf16be, /// Big-endian UTF-16, BOM see note for mpg123_text_utf16be.
|
||||
id3_utf8 = mpg123_id3_utf8, /// Our lovely overly ASCII-compatible 8 byte encoding for the world.
|
||||
id3_enc_max = mpg123_id3_enc_max /// Placeholder to check valid range of encoding byte.
|
||||
};
|
||||
|
||||
|
||||
private:
|
||||
mpg123_string* sb;
|
||||
bool instanced;
|
||||
|
||||
internal:
|
||||
///<summary>Reference Constructor. Does nothing to referenced mpg123_string structure.
|
||||
///<para>Reference objects may be freely created and deleted without affecting the underlying mpg123_string object.
|
||||
/// However, operations on the referenced object do modify the object in-situ (i.e. 'this' is not a 'copy'), and
|
||||
/// the referenced object may be explicitly initialized and disposed by calling the appropriate methods. (Init() and Free())</para>
|
||||
///<para>Recommended usage: using(mpg123str obj = new mpg123str(sb)){ use obj here }</para>
|
||||
///</summary>
|
||||
mpg123str(mpg123_string* sb);
|
||||
|
||||
///<summary>Internal Constructor.
|
||||
///<para>Only used on empty fields.</para>
|
||||
///</summary>
|
||||
mpg123str(const char* str);
|
||||
|
||||
protected:
|
||||
///<summary>Finalizer.
|
||||
///<para>Cleanly handles mpg123_free_string of instanced mpg123_string object.</para>
|
||||
///<para>Does not dispose referenced mpg123_string object. Referenced objects may be explicitly disposed by using Free().</para>
|
||||
///</summary>
|
||||
/// Implementation of CLR Finalize().
|
||||
!mpg123str(void);
|
||||
|
||||
public:
|
||||
///<summary>Constructor, also initializes underlying mpg123_string structure.
|
||||
///<para>Instanced objects automatically dispose of underlying mpg123_string object.</para>
|
||||
///<para>Recommended usage: using(mpg123str obj = new mpg123str(sb)){ use obj here }</para>
|
||||
///</summary>
|
||||
mpg123str(void);
|
||||
|
||||
///<summary>Destructor. Used for final object deletion.
|
||||
///<para>Instance objects call the finalizer for clean disposal of internal mpg123_string object.</para>
|
||||
///<para>Reference objects may be freely deleted without affecting the underlying mpg123_string object.
|
||||
/// However, the referenced object may be explicitly disposed by calling Free()</para>
|
||||
///</summary>
|
||||
// Implementation of CLR Dispose().
|
||||
// ~Destructor and !Finalizer are the prescribed implementation of Dispose() and Finalize().
|
||||
// See Destructors and Finalizers in Visual C++
|
||||
~mpg123str(void);
|
||||
|
||||
///<summary>Append a C# string to this mpg123str.
|
||||
///<para>Returns 0 on error, 1 on success.</para>
|
||||
///</summary>
|
||||
///<param name="s">String to be appended.</param>
|
||||
///<returns>0 on error, 1 on success.</returns>
|
||||
int __clrcall mpg123_add_string(String ^ s);
|
||||
|
||||
///<summary>Append a C# substring to this mpg123str.
|
||||
///<para>Returns 0 on error, 1 on success.</para>
|
||||
///</summary>
|
||||
///<param name="s">String to be appended.</param>
|
||||
///<param name="from">String offset to copy from.</param>
|
||||
///<param name="count">Number of characters to copy. (a null byte is always appended)</param>
|
||||
///<returns>0 on error, 1 on success.</returns>
|
||||
int __clrcall mpg123_add_substring(String ^ s, int from, int count);
|
||||
|
||||
///<summary>Copy the contents of this string to another.
|
||||
///<para>Returns 0 on error, 1 on success.</para>
|
||||
///</summary>
|
||||
///<param name="to">Where to copy this string to.</param>
|
||||
///<returns>0 on error, 1 on success.</returns>
|
||||
int __clrcall mpg123_copy_string(mpg123str^ to);
|
||||
|
||||
///<summary>Free-up mempory for an existing mpg123_string.
|
||||
///</summary>
|
||||
void __clrcall mpg123_free_string(void);
|
||||
|
||||
///<summary>Increase size of a mpg123_string if necessary (it may stay larger).
|
||||
///<para>Returns 0 on error, 1 on success.</para>
|
||||
///</summary>
|
||||
///<param name="newSize">Required size.</param>
|
||||
///<returns>0 on error, 1 on success.</returns>
|
||||
int __clrcall mpg123_grow_string(int newSize);
|
||||
|
||||
///<summary>Change the size of a mpg123_string.
|
||||
///<para>Returns 0 on error, 1 on success.</para>
|
||||
///</summary>
|
||||
///<param name="newSize">Required size.</param>
|
||||
///<returns>0 on error, 1 on success.</returns>
|
||||
int __clrcall mpg123_resize_string(int newSize);
|
||||
|
||||
///<summary>Create and allocate memory for a new mpg123_string.
|
||||
///</summary>
|
||||
void __clrcall mpg123_init_string(void);
|
||||
|
||||
///<summary>Set the contents to a C# string.
|
||||
///<para>Returns 0 on error, 1 on success.</para>
|
||||
///</summary>
|
||||
///<param name="s">String to be applied.</param>
|
||||
///<returns>0 on error, 1 on success.</returns>
|
||||
int __clrcall mpg123_set_string(String ^ s);
|
||||
|
||||
///<summary>Set the contents to a C# substring.
|
||||
///<para>Returns 0 on error, 1 on success.</para>
|
||||
///</summary>
|
||||
///<param name="s">String to be applied.</param>
|
||||
///<param name="from">String offset to copy from.</param>
|
||||
///<param name="count">Number of characters to copy. (a null byte is always appended)</param>
|
||||
///<returns>0 on error, 1 on success.</returns>
|
||||
int __clrcall mpg123_set_substring(String ^ s, int from, int count);
|
||||
|
||||
///<summary>Count characters in a mpg123 string (non-null bytes or UTF-8 characters).
|
||||
///<para>Even with the fill property, the character count is not obvious as there could be multiple trailing null bytes.</para>
|
||||
///<para>Returns the character count.</para>
|
||||
///</summary>
|
||||
///<param name="utf8">Flag to tell if the string is in utf8 encoding.</param>
|
||||
///<returns>Character count.</returns>
|
||||
long long __clrcall mpg123_strlen(bool utf8);
|
||||
|
||||
///<summary>Get the number of used bytes. (including closing zero byte).
|
||||
///<para>Property returns the number of used bytes.</para>
|
||||
///</summary>
|
||||
///<value>The number of used bytes.</value>
|
||||
property int Fill{int __clrcall get();} // property
|
||||
|
||||
///<summary>Get the number of bytes allocated.
|
||||
///<para>Property returns the number of bytes allocated.</para>
|
||||
///</summary>
|
||||
///<value>The number of bytes allocated.</value>
|
||||
property int Size{int __clrcall get();} // property
|
||||
|
||||
///<summary>Get a C# string representation of the mpg123str.
|
||||
///<para>Property returns C# string text.</para>
|
||||
///</summary>
|
||||
///<value>C# string text.</value>
|
||||
property String^ Text{String^ __clrcall get();}
|
||||
|
||||
// 1.9.0.0 +add
|
||||
|
||||
///<summary>Convert ID3 encoding byte to mpg123 encoding index.
|
||||
///<para>Returns the text_encoding enum of the converted value.</para>
|
||||
///</summary>
|
||||
///<param name="id3_enc_byte">The ID3 encoding byte to be converted.</param>
|
||||
///<returns>The text_encoding enum of the converted value.</returns>
|
||||
static text_encoding __clrcall mpg123_enc_from_id3(unsigned char id3_enc_byte);
|
||||
|
||||
///<summary>Store text data in string, after converting to UTF-8 from indicated encoding.
|
||||
///<para>A prominent error can be that you provided an unknown encoding value, or this build of libmpg123 lacks support for certain encodings (ID3 or ICY stuff missing).
|
||||
/// Also, you might want to take a bit of care with preparing the data; for example, strip leading zeroes (I have seen that).</para>
|
||||
///<para>CLR - e.g. UnicodeEncoding(true, true) works with utf16be.</para>
|
||||
///<para>Returns 0 on error, 1 on success (on error, mpg123_free_string is called on sb).</para>
|
||||
///</summary>
|
||||
///<param name="enc">Mpg123 text encoding value.</param>
|
||||
///<param name="source">Source buffer with plain unsigned bytes.</param>
|
||||
///<param name="source_size">Number of bytes in the source buffer.</param>
|
||||
///<returns>0 on error, 1 on success (on error, mpg123_free_string is called on sb).</returns>
|
||||
int __clrcall mpg123_store_utf8(text_encoding enc, const unsigned char *source, size_t source_size);
|
||||
|
||||
// 1.9.0.0 -add
|
||||
|
||||
};
|
||||
|
||||
}
|
24
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/targetver.h
vendored
Normal file
24
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/targetver.h
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
// The following macros define the minimum required platform. The minimum required platform
|
||||
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
|
||||
// your application. The macros work by enabling all features available on platform versions up to and
|
||||
// including the version specified.
|
||||
|
||||
// Modify the following defines if you have to target a platform prior to the ones specified below.
|
||||
// Refer to MSDN for the latest info on corresponding values for different platforms.
|
||||
#ifndef WINVER // Specifies that the minimum required platform is Windows Vista.
|
||||
#define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
|
||||
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98.
|
||||
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0.
|
||||
#define _WIN32_IE 0x0700 // Change this to the appropriate value to target other versions of IE.
|
||||
#endif
|
67
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/text.cpp
vendored
Normal file
67
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/text.cpp
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
*/
|
||||
|
||||
#include "StdAfx.h"
|
||||
#include "text.h"
|
||||
|
||||
mpg123clr::mpg123text::mpg123text(void)
|
||||
{
|
||||
}
|
||||
|
||||
mpg123clr::mpg123text::mpg123text(mpg123_text* sb)
|
||||
{
|
||||
this->sb = sb;
|
||||
}
|
||||
|
||||
// Destructor
|
||||
mpg123clr::mpg123text::~mpg123text(void)
|
||||
{
|
||||
// clean up code to release managed resources
|
||||
// ...
|
||||
|
||||
// call Finalizer to clean up unmanaged resources
|
||||
this->!mpg123text();
|
||||
}
|
||||
|
||||
// Finalizer
|
||||
mpg123clr::mpg123text::!mpg123text(void)
|
||||
{
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123text::lang::get()
|
||||
{
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->lang, (int)strnlen(sb->lang, 3));
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123text::id::get()
|
||||
{
|
||||
return Marshal::PtrToStringAnsi((IntPtr)sb->id, (int)strnlen(sb->id, 4));
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123text::description::get()
|
||||
{
|
||||
mpg123str^ str = gcnew mpg123str(&sb->description);
|
||||
return str->Text;
|
||||
}
|
||||
|
||||
String^ mpg123clr::mpg123text::text::get()
|
||||
{
|
||||
mpg123str^ str = gcnew mpg123str(&sb->text);
|
||||
return str->Text;
|
||||
}
|
111
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/text.h
vendored
Normal file
111
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2008clr/mpg123clr/text.h
vendored
Normal file
@ -0,0 +1,111 @@
|
||||
/*
|
||||
mpg123clr: MPEG Audio Decoder library Common Language Runtime version.
|
||||
|
||||
copyright 2009 by Malcolm Boczek - free software under the terms of the LGPL 2.1
|
||||
mpg123clr.dll is a derivative work of libmpg123 - all original mpg123 licensing terms apply.
|
||||
|
||||
All rights to this work freely assigned to the mpg123 project.
|
||||
*/
|
||||
/*
|
||||
libmpg123: MPEG Audio Decoder library
|
||||
|
||||
copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
|
||||
see COPYING and AUTHORS files in distribution or http://mpg123.org
|
||||
|
||||
*/
|
||||
/*
|
||||
1.8.1.0 04-Aug-09 Initial release.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#pragma warning(disable : 4635)
|
||||
#include "mpg123.h"
|
||||
#pragma warning(default : 4635)
|
||||
|
||||
#include "string.h"
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include <vcclr.h>
|
||||
using namespace std;
|
||||
using namespace System;
|
||||
using namespace System::Runtime::InteropServices;
|
||||
|
||||
namespace mpg123clr
|
||||
{
|
||||
// Recommended usage when creating reference type on the managed heap (not using stack semantics
|
||||
// for reference types...) [see Destructors and Finalizers in Visual C++]
|
||||
//
|
||||
// A ^ myA = gcnew A;
|
||||
// try
|
||||
// {
|
||||
// use myA
|
||||
// }
|
||||
// finally
|
||||
// {
|
||||
// delete myA;
|
||||
// }
|
||||
|
||||
|
||||
///<summary>Wrapper for mpg123_text.</summary>
|
||||
[StructLayout(LayoutKind::Sequential, CharSet=CharSet::Ansi)]
|
||||
public ref struct mpg123text
|
||||
{
|
||||
private:
|
||||
mpg123_text* sb;
|
||||
|
||||
internal:
|
||||
///<summary>Constructor.
|
||||
///<para>Recommended usage: only as tracking marker to existing mpg123_text objects.</para></summary>
|
||||
mpg123text(void);
|
||||
|
||||
///<summary>Reference Constructor.
|
||||
///<para>Recommended usage: only as tracking marker to existing mpg123_text objects.</para></summary>
|
||||
mpg123text(mpg123_text* sb);
|
||||
|
||||
protected:
|
||||
///<summary>Finalizer.
|
||||
///<para>Does nothing. mpg123text can only be instanced as a reference to an existing mpg123_text object (which is responsible for its own disposal.</para></summary>
|
||||
/// Implementation of CLR Finalize().
|
||||
!mpg123text(void);
|
||||
|
||||
public:
|
||||
///<summary>Destructor. Used for final object deletion.
|
||||
///<para>Calls finalizer.</para>
|
||||
///</summary>
|
||||
/// Implementation of CLR Dispose().
|
||||
/// ~Destructor and !Finalizer are the prescribed implementation of Dispose() and Finalize().
|
||||
/// See Destructors and Finalizers in Visual C++
|
||||
~mpg123text(void);
|
||||
|
||||
///<summary>Get a string representation of the 3-letter language code.
|
||||
///<para>Only COMM and USLT have a language element.</para>
|
||||
///<para>Property returns string representation of the 3-letter language code.</para>
|
||||
///</summary>
|
||||
///<value>String representation of the 3-letter language code.</value>
|
||||
property String^ lang{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get a string representation of the ID3v2 field id. (i.e. TALB, TPE2 etc.)
|
||||
///<para>Property returns string representation of the ID3v2 field id. (i.e. TALB, TPE2 etc.)</para>
|
||||
///</summary>
|
||||
///<value>String representation of the ID3v2 field id. (i.e. TALB, TPE2 etc.)</value>
|
||||
property String^ id{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get a string representation of the description field.
|
||||
///<para>Only COMM and TXXX have a description element.</para>
|
||||
///<para>Property returns string representation of the description field.</para>
|
||||
///</summary>
|
||||
///<value>String representation of the description field.</value>
|
||||
property String^ description{String^ __clrcall get();}
|
||||
|
||||
///<summary>Get a string representation of the ID3 tag text.
|
||||
///<para>This is for COMM, TXXX and all the other text fields.</para>
|
||||
///<para>Property returns string representation of the ID3 tag text.</para>
|
||||
///</summary>
|
||||
///<value>String representation of the ID3 tag text.</value>
|
||||
property String^ text{String^ __clrcall get();}
|
||||
|
||||
};
|
||||
}
|
34
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2015/uwp/libmpg123.sln
vendored
Normal file
34
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2015/uwp/libmpg123.sln
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.23107.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpg123", "libmpg123\libmpg123.vcxproj", "{2411FC2F-79ED-4787-A143-DE3644B0FBF5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|ARM = Debug|ARM
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|ARM = Release|ARM
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Debug|x64.Build.0 = Debug|x64
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Debug|x86.Build.0 = Debug|Win32
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Release|ARM.Build.0 = Release|ARM
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Release|x64.ActiveCfg = Release|x64
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Release|x64.Build.0 = Release|x64
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Release|x86.ActiveCfg = Release|Win32
|
||||
{2411FC2F-79ED-4787-A143-DE3644B0FBF5}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
616
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2015/uwp/libmpg123/libmpg123.vcxproj
vendored
Normal file
616
libsdl2_mixer/external/mpg123-1.25.6/ports/MSVC++/2015/uwp/libmpg123/libmpg123.vcxproj
vendored
Normal file
@ -0,0 +1,616 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|ARM">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|ARM">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\..\..\src\compat\compat.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\abi_align.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\debug.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\decode.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\frame.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\gapless.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\getbits.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\getcpuflags.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\huffman.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\icy.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\icy2utf8.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\id3.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\index.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\l12_integer_tables.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\l2tables.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\l3_integer_tables.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\mangle.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\mpeghead.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\mpg123lib_intern.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\fmt123.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\newhuffman.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\optimize.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\parse.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\reader.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\sample.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\synth.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\synths.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\synth_8bit.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\synth_mono.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\synth_ntom.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\synth_sse3d.h" />
|
||||
<ClInclude Include="..\..\..\..\..\src\libmpg123\true.h" />
|
||||
<ClInclude Include="..\..\..\config.h" />
|
||||
<ClInclude Include="..\..\..\mpg123.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\..\..\src\compat\compat.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\compat\compat_str.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\dct64.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\dct64_i386.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\dct64_i486.c">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\equalizer.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\feature.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\format.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\frame.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\icy.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\icy2utf8.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\id3.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\index.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\layer1.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\layer2.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\layer3.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\libmpg123.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\ntom.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\optimize.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\parse.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\readers.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\stringbuf.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\synth.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\synth_8bit.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\synth_i486.c">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\synth_real.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\synth_s32.c" />
|
||||
<ClCompile Include="..\..\..\..\..\src\libmpg123\tabinit.c" />
|
||||
<ClCompile Include="..\..\..\msvc.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\..\..\src\libmpg123\check_neon.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct36_3dnow.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct36_3dnowext.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct36_avx.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct36_neon.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct36_neon64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct36_sse.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct36_x86_64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_3dnow.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_3dnowext.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_avx.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_avx_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_mmx.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_neon.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_neon64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_neon64_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_neon_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_sse.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_sse_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_x86_64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\dct64_x86_64_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\equalizer_3dnow.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\getcpuflags.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\getcpuflags_x86_64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\libmpg123.sym.in" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\mpg123.h.in" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_3dnow.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_3dnowext.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_arm.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_arm_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_i586.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_i586_dither.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_mmx.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon64_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon64_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon64_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_neon_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_sse.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_sse_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_sse_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_sse_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_avx.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_avx_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_avx_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_avx_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon64_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon64_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon64_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_neon_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_sse_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_x86_64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_x86_64.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_x86_64_accurate.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_x86_64_float.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\synth_x86_64_s32.S" />
|
||||
<None Include="..\..\..\..\..\src\libmpg123\tabinit_mmx.S" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{2411fc2f-79ed-4787-a143-de3644b0fbf5}</ProjectGuid>
|
||||
<Keyword>DynamicLibrary</Keyword>
|
||||
<ProjectName>libmpg123</ProjectName>
|
||||
<RootNamespace>libmpg123</RootNamespace>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<AppContainerApplication>true</AppContainerApplication>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<WindowsTargetPlatformVersion>10.0.10240.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformMinVersion>10.0.10240.0</WindowsTargetPlatformMinVersion>
|
||||
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<IgnoreImportLibrary>false</IgnoreImportLibrary>
|
||||
<IntDir>$(Platform)\$(Configuration)\</IntDir>
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<IgnoreImportLibrary>false</IgnoreImportLibrary>
|
||||
<IntDir>$(Platform)\$(Configuration)\</IntDir>
|
||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)\</OutDir>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<IgnoreImportLibrary>false</IgnoreImportLibrary>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<IgnoreImportLibrary>false</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<IgnoreImportLibrary>false</IgnoreImportLibrary>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<IgnoreImportLibrary>false</IgnoreImportLibrary>
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..;$(ProjectDir)..\..\..\..\..\src;$(ProjectDir)..\..\..\..\..\src\libmpg123;$(ProjectDir)..\..\..\..\..\src\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
|
||||
<AdditionalLibraryDirectories>$(IntDir)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
</Link>
|
||||
<PreLinkEvent>
|
||||
<Command>cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_3dnow.S" /nologo > "$(IntDir)dct36_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct36_3dnow.o" "$(IntDir)dct36_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(IntDir)dct36_3dnowext.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct36_3dnowext.o" "$(IntDir)dct36_3dnowext.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(IntDir)dct36_sse.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct36_sse.o" "$(IntDir)dct36_sse.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(IntDir)dct64_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_3dnow.o" "$(IntDir)dct64_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_3dnowext.S" /nologo > "$(IntDir)dct64_3dnowext.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_3dnowext.o" "$(IntDir)dct64_3dnowext.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_mmx.S" /nologo > "$(IntDir)dct64_mmx.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_mmx.o" "$(IntDir)dct64_mmx.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_sse.S" /nologo > "$(IntDir)dct64_sse.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_sse.o" "$(IntDir)dct64_sse.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_sse_float.S" /nologo > "$(IntDir)dct64_sse_float.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_sse_float.o" "$(IntDir)dct64_sse_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\equalizer_3dnow.S" /nologo > "$(IntDir)equalizer_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)equalizer_3dnow.o" "$(IntDir)equalizer_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\getcpuflags.S" /nologo > "$(IntDir)getcpuflags.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)getcpuflags.o" "$(IntDir)getcpuflags.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_3dnow.S" /nologo > "$(IntDir)synth_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_3dnow.o" "$(IntDir)synth_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_3dnowext.S" /nologo > "$(IntDir)synth_3dnowext.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_3dnowext.o" "$(IntDir)synth_3dnowext.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_i586.S" /nologo > "$(IntDir)synth_i586.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_i586.o" "$(IntDir)synth_i586.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_mmx.S" /nologo > "$(IntDir)synth_mmx.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_mmx.o" "$(IntDir)synth_mmx.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse.S" /nologo > "$(IntDir)synth_sse.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse.o" "$(IntDir)synth_sse.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse_float.S" /nologo > "$(IntDir)synth_sse_float.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse_float.o" "$(IntDir)synth_sse_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_sse_float.S" /nologo > "$(IntDir)synth_stereo_sse_float.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_stereo_sse_float.o" "$(IntDir)synth_stereo_sse_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\tabinit_mmx.S" /nologo > "$(IntDir)tabinit_mmx.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)tabinit_mmx.o" "$(IntDir)tabinit_mmx.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse_accurate.S" /nologo > "$(IntDir)synth_sse_accurate.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse_accurate.o" "$(IntDir)synth_sse_accurate.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse_s32.S" /nologo > "$(IntDir)synth_sse_s32.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse_s32.o" "$(IntDir)synth_sse_s32.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S" /nologo > "$(IntDir)synth_stereo_sse_accurate.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_stereo_sse_accurate.o" "$(IntDir)synth_stereo_sse_accurate.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S" /nologo > "$(IntDir)synth_stereo_sse_s32.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_stereo_sse_s32.o" "$(IntDir)synth_stereo_sse_s32.asm"
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..;$(ProjectDir)..\..\..\..\..\src;$(ProjectDir)..\..\..\..\..\src\libmpg123;$(ProjectDir)..\..\..\..\..\src\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
|
||||
<AdditionalLibraryDirectories>$(IntDir)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>dct36_3dnow.o;dct36_3dnowext.o;dct36_sse.o;dct64_3dnow.o;dct64_3dnowext.o;dct64_mmx.o;dct64_sse.o;dct64_sse_float.o;equalizer_3dnow.o;getcpuflags.o;synth_3dnow.o;synth_3dnowext.o;synth_i586.o;synth_mmx.o;synth_sse.o;synth_sse_float.o;synth_stereo_sse_float.o;tabinit_mmx.o;synth_sse_accurate.o;synth_sse_s32.o;synth_stereo_sse_accurate.o;synth_stereo_sse_s32.o;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PreLinkEvent>
|
||||
<Command>cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_3dnow.S" /nologo > "$(IntDir)dct36_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct36_3dnow.o" "$(IntDir)dct36_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_3dnowext.S" /nologo > "$(IntDir)dct36_3dnowext.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct36_3dnowext.o" "$(IntDir)dct36_3dnowext.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_sse.S" /nologo > "$(IntDir)dct36_sse.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct36_sse.o" "$(IntDir)dct36_sse.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_3dnow.S" /nologo > "$(IntDir)dct64_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_3dnow.o" "$(IntDir)dct64_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_3dnowext.S" /nologo > "$(IntDir)dct64_3dnowext.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_3dnowext.o" "$(IntDir)dct64_3dnowext.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_mmx.S" /nologo > "$(IntDir)dct64_mmx.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_mmx.o" "$(IntDir)dct64_mmx.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_sse.S" /nologo > "$(IntDir)dct64_sse.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_sse.o" "$(IntDir)dct64_sse.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_sse_float.S" /nologo > "$(IntDir)dct64_sse_float.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)dct64_sse_float.o" "$(IntDir)dct64_sse_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\equalizer_3dnow.S" /nologo > "$(IntDir)equalizer_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)equalizer_3dnow.o" "$(IntDir)equalizer_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\getcpuflags.S" /nologo > "$(IntDir)getcpuflags.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)getcpuflags.o" "$(IntDir)getcpuflags.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_3dnow.S" /nologo > "$(IntDir)synth_3dnow.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_3dnow.o" "$(IntDir)synth_3dnow.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_3dnowext.S" /nologo > "$(IntDir)synth_3dnowext.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_3dnowext.o" "$(IntDir)synth_3dnowext.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_i586.S" /nologo > "$(IntDir)synth_i586.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_i586.o" "$(IntDir)synth_i586.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_mmx.S" /nologo > "$(IntDir)synth_mmx.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_mmx.o" "$(IntDir)synth_mmx.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse.S" /nologo > "$(IntDir)synth_sse.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse.o" "$(IntDir)synth_sse.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse_float.S" /nologo > "$(IntDir)synth_sse_float.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse_float.o" "$(IntDir)synth_sse_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_sse_float.S" /nologo > "$(IntDir)synth_stereo_sse_float.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_stereo_sse_float.o" "$(IntDir)synth_stereo_sse_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\tabinit_mmx.S" /nologo > "$(IntDir)tabinit_mmx.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)tabinit_mmx.o" "$(IntDir)tabinit_mmx.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse_accurate.S" /nologo > "$(IntDir)synth_sse_accurate.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse_accurate.o" "$(IntDir)synth_sse_accurate.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_sse_s32.S" /nologo > "$(IntDir)synth_sse_s32.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_sse_s32.o" "$(IntDir)synth_sse_s32.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S" /nologo > "$(IntDir)synth_stereo_sse_accurate.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_stereo_sse_accurate.o" "$(IntDir)synth_stereo_sse_accurate.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S" /nologo > "$(IntDir)synth_stereo_sse_s32.asm"
|
||||
yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o "$(IntDir)synth_stereo_sse_s32.o" "$(IntDir)synth_stereo_sse_s32.asm"
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..;$(ProjectDir)..\..\..\..\..\src;$(ProjectDir)..\..\..\..\..\src\libmpg123;$(ProjectDir)..\..\..\..\..\src\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
|
||||
<AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
</Link>
|
||||
<PreLinkEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..;$(ProjectDir)..\..\..\..\..\src;$(ProjectDir)..\..\..\..\..\src\libmpg123;$(ProjectDir)..\..\..\..\..\src\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
|
||||
<AdditionalLibraryDirectories>$(OutDir)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
<PreLinkEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..;$(ProjectDir)..\..\..\..\..\src;$(ProjectDir)..\..\..\..\..\src\libmpg123;$(ProjectDir)..\..\..\..\..\src\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_X86_64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
|
||||
<AdditionalLibraryDirectories>$(IntDir)</AdditionalLibraryDirectories>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
<AdditionalDependencies>getcpuflags_x86_64.o;dct36_x86_64.o;synth_x86_64_float.o;synth_x86_64_s32.o;synth_stereo_x86_64_float.o;synth_stereo_x86_64_s32.o;synth_x86_64.o;dct64_x86_64.o;dct64_x86_64_float.o;synth_stereo_x86_64.o;synth_x86_64_accurate.o;synth_stereo_x86_64_accurate.o;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PreLinkEvent>
|
||||
<Command>cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\getcpuflags_x86_64.S" /nologo > "$(IntDir)getcpuflags_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)getcpuflags_x86_64.o" "$(IntDir)getcpuflags_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_x86_64.S" /nologo > "$(IntDir)dct36_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)dct36_x86_64.o" "$(IntDir)dct36_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64_float.S" /nologo > "$(IntDir)synth_x86_64_float.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64_float.o" "$(IntDir)synth_x86_64_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64_s32.S" /nologo > "$(IntDir)synth_x86_64_s32.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64_s32.o" "$(IntDir)synth_x86_64_s32.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_float.S" /nologo > "$(IntDir)synth_stereo_x86_64_float.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64_float.o" "$(IntDir)synth_stereo_x86_64_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_s32.S" /nologo > "$(IntDir)synth_stereo_x86_64_s32.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64_s32.o" "$(IntDir)synth_stereo_x86_64_s32.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64.S" /nologo > "$(IntDir)synth_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64.o" "$(IntDir)synth_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_x86_64.S" /nologo > "$(IntDir)dct64_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)dct64_x86_64.o" "$(IntDir)dct64_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_x86_64_float.S" /nologo > "$(IntDir)dct64_x86_64_float.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)dct64_x86_64_float.o" "$(IntDir)dct64_x86_64_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64.S" /nologo > "$(IntDir)synth_stereo_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64.o" "$(IntDir)synth_stereo_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64_accurate.S" /nologo > "$(IntDir)synth_x86_64_accurate.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64_accurate.o" "$(IntDir)synth_x86_64_accurate.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_accurate.S" /nologo > "$(IntDir)synth_stereo_x86_64_accurate.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64_accurate.o" "$(IntDir)synth_stereo_x86_64_accurate.asm"
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir)..\..\..;$(ProjectDir)..\..\..\..\..\src;$(ProjectDir)..\..\..\..\..\src\libmpg123;$(ProjectDir)..\..\..\..\..\src\compat;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_X86_64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<DisableSpecificWarnings>4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<GenerateWindowsMetadata>false</GenerateWindowsMetadata>
|
||||
<AdditionalLibraryDirectories>$(IntDir)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>getcpuflags_x86_64.o;dct36_x86_64.o;synth_x86_64_float.o;synth_x86_64_s32.o;synth_stereo_x86_64_float.o;synth_stereo_x86_64_s32.o;synth_x86_64.o;dct64_x86_64.o;dct64_x86_64_float.o;synth_stereo_x86_64.o;synth_x86_64_accurate.o;synth_stereo_x86_64_accurate.o;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PreLinkEvent>
|
||||
<Command>cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\getcpuflags_x86_64.S" /nologo > "$(IntDir)getcpuflags_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)getcpuflags_x86_64.o" "$(IntDir)getcpuflags_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct36_x86_64.S" /nologo > "$(IntDir)dct36_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)dct36_x86_64.o" "$(IntDir)dct36_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64_float.S" /nologo > "$(IntDir)synth_x86_64_float.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64_float.o" "$(IntDir)synth_x86_64_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64_s32.S" /nologo > "$(IntDir)synth_x86_64_s32.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64_s32.o" "$(IntDir)synth_x86_64_s32.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_float.S" /nologo > "$(IntDir)synth_stereo_x86_64_float.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64_float.o" "$(IntDir)synth_stereo_x86_64_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_s32.S" /nologo > "$(IntDir)synth_stereo_x86_64_s32.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64_s32.o" "$(IntDir)synth_stereo_x86_64_s32.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64.S" /nologo > "$(IntDir)synth_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64.o" "$(IntDir)synth_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_x86_64.S" /nologo > "$(IntDir)dct64_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)dct64_x86_64.o" "$(IntDir)dct64_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\dct64_x86_64_float.S" /nologo > "$(IntDir)dct64_x86_64_float.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)dct64_x86_64_float.o" "$(IntDir)dct64_x86_64_float.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64.S" /nologo > "$(IntDir)synth_stereo_x86_64.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64.o" "$(IntDir)synth_stereo_x86_64.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_x86_64_accurate.S" /nologo > "$(IntDir)synth_x86_64_accurate.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_x86_64_accurate.o" "$(IntDir)synth_x86_64_accurate.asm"
|
||||
|
||||
cl /I "..\..\.." /I "$(ProjectDir)..\..\..\..\..\src" /EP /TC "$(ProjectDir)..\..\..\..\..\src\libmpg123\synth_stereo_x86_64_accurate.S" /nologo > "$(IntDir)synth_stereo_x86_64_accurate.asm"
|
||||
yasm -a x86 -m amd64 -f win64 -p gas -r raw -g null -o "$(IntDir)synth_stereo_x86_64_accurate.o" "$(IntDir)synth_stereo_x86_64_accurate.asm"
|
||||
</Command>
|
||||
</PreLinkEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user