mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
New version of mpg123
This commit is contained in:
parent
c086e5f8b7
commit
10210fb5e3
145
src/contrib/mpg123decoder/mpg123/AUTHORS
Normal file
145
src/contrib/mpg123decoder/mpg123/AUTHORS
Normal file
@ -0,0 +1,145 @@
|
||||
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.
|
||||
--------------------
|
||||
|
||||
Current maintainers with various sorts of contributions:
|
||||
Thomas Orgis <thomas@orgis.org>
|
||||
Nicholas J Humfrey <njh@ecs.soton.ac.uk>
|
||||
|
||||
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):
|
||||
|
||||
Jonathan Yong (jon_y) <10walls@gmail.com>: win32 hacking
|
||||
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>: 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ñ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
|
773
src/contrib/mpg123decoder/mpg123/COPYING
Normal file
773
src/contrib/mpg123decoder/mpg123/COPYING
Normal file
@ -0,0 +1,773 @@
|
||||
This is the file that contains the terms of use, copying, etc. for the mpg123 distribution package.
|
||||
|
||||
Main message:
|
||||
|
||||
Code is copyrighted by Michael Hipp, who made it free software under the terms of the LGPL 2.1.
|
||||
|
||||
But that is not all of it.
|
||||
mpg123 is licensed under the GNU General Lesser Public License, version 2.1, and in parts under the GNU General Public License, version 2.
|
||||
That means that _all_ of mpg123 is licensed under GPL and the major part also under the LGPL.
|
||||
|
||||
Actually, the "major part" currently is the whole distributed package of mpg123. There are some files (old alsa output, libao output) that you get from our svn repository and that do not fall under LGPL.
|
||||
|
||||
When the copyright marker in a source file says "the mpg123 project" that means that the file contains code copyrighted by contributors to mpg123, the "initially written by" naming the person(s) that created the file and thus may have the largest part of copyrights on it.
|
||||
I am explaining this here to emphasize that the copyright always actually lies by the individual member (i.e. contributor to) of the mpg123 project who wrote a specific section of code.
|
||||
Usage of a source code management system like Subversion should provide keeping track of individual copyright traces...
|
||||
|
||||
Please consider that any code that is contributed to the mpg123 project shall be licensed under LGPL 2.1 .
|
||||
If you want to contribute, but don't agree to that (i.e. you want to have your code GPL only) please say so - then, we either you convince is to include your code under GPL, we convince you to make it LGPL instead or, as a last resort, you'll have to do you own GPLed fork.
|
||||
But we should try to avoid the last option...
|
||||
|
||||
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; all files that do carry either a LGPL or GPL note are licensed respectively under the LGPL or GPL as 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
src/contrib/mpg123decoder/mpg123/ChangeLog
Normal file
3
src/contrib/mpg123decoder/mpg123/ChangeLog
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
|
118
src/contrib/mpg123decoder/mpg123/INSTALL
Normal file
118
src/contrib/mpg123decoder/mpg123/INSTALL
Normal file
@ -0,0 +1,118 @@
|
||||
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.)
|
||||
|
||||
There are now two basic ways 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)
|
||||
|
||||
|
||||
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.
|
||||
- For the library only, you may get lucky with MSVC++ using the project files under ports/
|
||||
- For other exotic platforms, see ports/
|
||||
|
||||
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...)
|
||||
|
||||
- libtool's libltdl for runtime output modules (this used to be included, but now we rely on an existing install)
|
||||
|
||||
|
||||
1. New installation via GNU autotools
|
||||
|
||||
The GNU 3-step procedure:
|
||||
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
||||
Run
|
||||
|
||||
./configure --help
|
||||
|
||||
for a list of possible parameters you can specify. 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 on 32bit x86 systems since version 0.66 is a build that combines all possible optimizations and chooses one at runtime (see --cpu, --list-cpu and --test-cpu parameters).
|
||||
|
||||
Another possibly important choice is --with-seektable=<number> for setting the size for the table of stored frame addresses to make seeking faster. When you want a minimal memory footprint, you can set number to 0. Seeking will always start from the beginning, then - being accurate, but rather slow, what doesn't matter if you don't use interactive seeking forth and back.
|
||||
|
||||
There are various library features you can leave out via --disable options (like output formats, resampling modes). Please note that this is only configured/tested for the generic (fpu) decoder, not optimized ones. Perhaps that changes in future.
|
||||
|
||||
1a. 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.
|
||||
|
||||
|
||||
2. The classic way via the provided Makefile
|
||||
|
||||
No, the Makefile is not provided anymore. Even if autotools is complicated, it is more cumbersome to take care of two build systems in parallel.
|
||||
You can dig in SVN for MakeLegacy.sh and src/Makefile.legacy and src/config.h.legacy, if you want.
|
||||
|
||||
Again, to be clear: There is no classic way anymore.
|
||||
|
||||
|
||||
3. Do something different on a special platform/compiler/...
|
||||
|
||||
Look into the ports/ directory for some traces of "porting" mpg123 or usually libmpg123 alone to different systems and compilers.
|
||||
|
||||
3a. 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 .
|
||||
|
||||
|
||||
4. Have fun!
|
||||
|
||||
|
||||
These are some remarks from Michael that could still bear some relevance:
|
||||
|
||||
- There is currently no direct audio hardware support for the
|
||||
"dec" and "generic" targets. That means that you have to use
|
||||
the "-s" commandline option to write the decoded audio data
|
||||
to stdout.
|
||||
|
||||
- On Solaris, use Sun's SparcWorks compiler ("make solaris")
|
||||
if at all possible. It generates faster code than gcc, so
|
||||
use gcc only if there's no other way.
|
||||
|
||||
- The macro "htons" causes a compiler warning in httpget.c
|
||||
(at least on FreeBSD 2.1.x). This can be safely ignored.
|
||||
|
||||
- For Solaris 2.4: append the options "-L/usr/ucblib -lucb"
|
||||
at the end of the link command line. Do this ONLY for
|
||||
Solaris 2.4, NOT for Solaris 2.5 or newer versions.
|
||||
|
||||
- The HP-UX port might be broken. I was able to compile it
|
||||
on an HP-UX 9 account, but there were some problems with
|
||||
libraries on HP-UX 10. I'm not an HP expert, but perhaps
|
||||
someone else can fix it.
|
||||
[note: some people report NO problems also with HP-UX 10]
|
||||
|
||||
- IRIX: some people reported compile problems on IRIX 5.x (5.3)
|
||||
but 6.x seems to compile without problems
|
||||
|
86
src/contrib/mpg123decoder/mpg123/Makefile.am
Normal file
86
src/contrib/mpg123decoder/mpg123/Makefile.am
Normal file
@ -0,0 +1,86 @@
|
||||
## 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
|
||||
dist_man_MANS = man1/mpg123.1
|
||||
|
||||
SUBDIRS = src doc
|
||||
DIST_SUBDIRS = src doc
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
# pkg-config file for the mpg123 library
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libmpg123.pc
|
||||
|
||||
# mpg123.spec is autogenerated but needs to be present in tarball!
|
||||
EXTRA_DIST = \
|
||||
mpg123.spec \
|
||||
makedll.sh \
|
||||
windows-builds.sh \
|
||||
equalize.dat \
|
||||
NEWS.libmpg123 \
|
||||
ports/MSVC++/mpg123.h \
|
||||
ports/MSVC++/config.h \
|
||||
ports/MSVC++/msvc.c \
|
||||
ports/MSVC++/examples/scan.c \
|
||||
ports/MSVC++/examples/feedseek.c \
|
||||
ports/MSVC++/2005/libmpg123/libmpg123.vcproj \
|
||||
ports/MSVC++/2008/mpg123.sln \
|
||||
ports/MSVC++/2008/feedseek/feedseek.vcproj \
|
||||
ports/MSVC++/2008/mpglib/mpglib.vcproj \
|
||||
ports/MSVC++/2008/libmpg123/libmpg123.vcproj \
|
||||
ports/MSVC++/2008/scan/scan.vcproj \
|
||||
ports/MSVC++/2008/dump_seekindex/dump_seekindex.vcproj \
|
||||
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++/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 \
|
||||
scripts/benchmark-cpu.pl
|
972
src/contrib/mpg123decoder/mpg123/Makefile.in
Normal file
972
src/contrib/mpg123decoder/mpg123/Makefile.in
Normal file
@ -0,0 +1,972 @@
|
||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
||||
# Inc.
|
||||
# This Makefile.in 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.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = .
|
||||
DIST_COMMON = README $(am__configure_deps) $(dist_man_MANS) \
|
||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(srcdir)/libmpg123.pc.in $(srcdir)/mpg123.spec.in \
|
||||
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
|
||||
TODO build/config.guess build/config.sub build/depcomp \
|
||||
build/install-sh build/ltmain.sh build/missing
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/addrconfig.m4 \
|
||||
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
|
||||
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/config.h
|
||||
CONFIG_CLEAN_FILES = libmpg123.pc mpg123.spec
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
html-recursive info-recursive install-data-recursive \
|
||||
install-dvi-recursive install-exec-recursive \
|
||||
install-html-recursive install-info-recursive \
|
||||
install-pdf-recursive install-ps-recursive install-recursive \
|
||||
installcheck-recursive installdirs-recursive pdf-recursive \
|
||||
ps-recursive uninstall-recursive
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
man1dir = $(mandir)/man1
|
||||
am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgconfigdir)"
|
||||
NROFF = nroff
|
||||
MANS = $(dist_man_MANS)
|
||||
DATA = $(pkgconfig_DATA)
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
|
||||
$(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
|
||||
distdir dist dist-all distcheck
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d "$(distdir)" \
|
||||
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr "$(distdir)"; }; }
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
DIST_ARCHIVES = $(distdir).tar.gz
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AIX_CFLAGS = @AIX_CFLAGS@
|
||||
AIX_LDFLAGS = @AIX_LDFLAGS@
|
||||
AIX_LIBS = @AIX_LIBS@
|
||||
ALIB_CFLAGS = @ALIB_CFLAGS@
|
||||
ALIB_LDFLAGS = @ALIB_LDFLAGS@
|
||||
ALIB_LIBS = @ALIB_LIBS@
|
||||
ALSA_CFLAGS = @ALSA_CFLAGS@
|
||||
ALSA_LDFLAGS = @ALSA_LDFLAGS@
|
||||
ALSA_LIBS = @ALSA_LIBS@
|
||||
AMTAR = @AMTAR@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
ARTS_CFLAGS = @ARTS_CFLAGS@
|
||||
ARTS_LDFLAGS = @ARTS_LDFLAGS@
|
||||
ARTS_LIBS = @ARTS_LIBS@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCAS = @CCAS@
|
||||
CCASDEPMODE = @CCASDEPMODE@
|
||||
CCASFLAGS = @CCASFLAGS@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
COREAUDIO_CFLAGS = @COREAUDIO_CFLAGS@
|
||||
COREAUDIO_LDFLAGS = @COREAUDIO_LDFLAGS@
|
||||
COREAUDIO_LIBS = @COREAUDIO_LIBS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DECODER_LOBJ = @DECODER_LOBJ@
|
||||
DECODER_OBJ = @DECODER_OBJ@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMMY_CFLAGS = @DUMMY_CFLAGS@
|
||||
DUMMY_LDFLAGS = @DUMMY_LDFLAGS@
|
||||
DUMMY_LIBS = @DUMMY_LIBS@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ESD_CFLAGS = @ESD_CFLAGS@
|
||||
ESD_LDFLAGS = @ESD_LDFLAGS@
|
||||
ESD_LIBS = @ESD_LIBS@
|
||||
EXEC_LT_LDFLAGS = @EXEC_LT_LDFLAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
HP_CFLAGS = @HP_CFLAGS@
|
||||
HP_LDFLAGS = @HP_LDFLAGS@
|
||||
HP_LIBS = @HP_LIBS@
|
||||
INCLUDE_STDIO_H = @INCLUDE_STDIO_H@
|
||||
INCLUDE_STDLIB_H = @INCLUDE_STDLIB_H@
|
||||
INCLUDE_SYS_TYPE_H = @INCLUDE_SYS_TYPE_H@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
JACK_CFLAGS = @JACK_CFLAGS@
|
||||
JACK_LDFLAGS = @JACK_LDFLAGS@
|
||||
JACK_LIBS = @JACK_LIBS@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LFS_LOBJ = @LFS_LOBJ@
|
||||
LIBMPG123_VERSION = @LIBMPG123_VERSION@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_LDFLAGS = @LT_LDFLAGS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MINT_CFLAGS = @MINT_CFLAGS@
|
||||
MINT_LDFLAGS = @MINT_LDFLAGS@
|
||||
MINT_LIBS = @MINT_LIBS@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MODULE_OBJ = @MODULE_OBJ@
|
||||
NAS_CFLAGS = @NAS_CFLAGS@
|
||||
NAS_LDFLAGS = @NAS_LDFLAGS@
|
||||
NAS_LIBS = @NAS_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OPENAL_CFLAGS = @OPENAL_CFLAGS@
|
||||
OPENAL_LDFLAGS = @OPENAL_LDFLAGS@
|
||||
OPENAL_LIBS = @OPENAL_LIBS@
|
||||
OS2_CFLAGS = @OS2_CFLAGS@
|
||||
OS2_LDFLAGS = @OS2_LDFLAGS@
|
||||
OS2_LIBS = @OS2_LIBS@
|
||||
OSS_CFLAGS = @OSS_CFLAGS@
|
||||
OSS_LDFLAGS = @OSS_LDFLAGS@
|
||||
OSS_LIBS = @OSS_LIBS@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
OUTPUT_CFLAGS = @OUTPUT_CFLAGS@
|
||||
OUTPUT_LDFLAGS = @OUTPUT_LDFLAGS@
|
||||
OUTPUT_LIBS = @OUTPUT_LIBS@
|
||||
OUTPUT_MOD = @OUTPUT_MOD@
|
||||
OUTPUT_OBJ = @OUTPUT_OBJ@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@
|
||||
PORTAUDIO_LDFLAGS = @PORTAUDIO_LDFLAGS@
|
||||
PORTAUDIO_LIBS = @PORTAUDIO_LIBS@
|
||||
PULSE_CFLAGS = @PULSE_CFLAGS@
|
||||
PULSE_LDFLAGS = @PULSE_LDFLAGS@
|
||||
PULSE_LIBS = @PULSE_LIBS@
|
||||
RANLIB = @RANLIB@
|
||||
SDL_CFLAGS = @SDL_CFLAGS@
|
||||
SDL_LDFLAGS = @SDL_LDFLAGS@
|
||||
SDL_LIBS = @SDL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SGI_CFLAGS = @SGI_CFLAGS@
|
||||
SGI_LDFLAGS = @SGI_LDFLAGS@
|
||||
SGI_LIBS = @SGI_LIBS@
|
||||
SHELL = @SHELL@
|
||||
SNDIO_CFLAGS = @SNDIO_CFLAGS@
|
||||
SNDIO_LDFLAGS = @SNDIO_LDFLAGS@
|
||||
SNDIO_LIBS = @SNDIO_LIBS@
|
||||
STRIP = @STRIP@
|
||||
SUN_CFLAGS = @SUN_CFLAGS@
|
||||
SUN_LDFLAGS = @SUN_LDFLAGS@
|
||||
SUN_LIBS = @SUN_LIBS@
|
||||
VERSION = @VERSION@
|
||||
WIN32_CFLAGS = @WIN32_CFLAGS@
|
||||
WIN32_LDFLAGS = @WIN32_LDFLAGS@
|
||||
WIN32_LIBS = @WIN32_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
lt_ECHO = @lt_ECHO@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
dist_man_MANS = man1/mpg123.1
|
||||
SUBDIRS = src doc
|
||||
DIST_SUBDIRS = src doc
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
# pkg-config file for the mpg123 library
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libmpg123.pc
|
||||
|
||||
# mpg123.spec is autogenerated but needs to be present in tarball!
|
||||
EXTRA_DIST = \
|
||||
mpg123.spec \
|
||||
makedll.sh \
|
||||
windows-builds.sh \
|
||||
equalize.dat \
|
||||
NEWS.libmpg123 \
|
||||
ports/MSVC++/mpg123.h \
|
||||
ports/MSVC++/config.h \
|
||||
ports/MSVC++/msvc.c \
|
||||
ports/MSVC++/examples/scan.c \
|
||||
ports/MSVC++/examples/feedseek.c \
|
||||
ports/MSVC++/2005/libmpg123/libmpg123.vcproj \
|
||||
ports/MSVC++/2008/mpg123.sln \
|
||||
ports/MSVC++/2008/feedseek/feedseek.vcproj \
|
||||
ports/MSVC++/2008/mpglib/mpglib.vcproj \
|
||||
ports/MSVC++/2008/libmpg123/libmpg123.vcproj \
|
||||
ports/MSVC++/2008/scan/scan.vcproj \
|
||||
ports/MSVC++/2008/dump_seekindex/dump_seekindex.vcproj \
|
||||
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++/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 \
|
||||
scripts/benchmark-cpu.pl
|
||||
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
|
||||
$(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
$(am__cd) $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
$(am__aclocal_m4_deps):
|
||||
libmpg123.pc: $(top_builddir)/config.status $(srcdir)/libmpg123.pc.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
mpg123.spec: $(top_builddir)/config.status $(srcdir)/mpg123.spec.in
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
-rm -f libtool config.lt
|
||||
install-man1: $(dist_man_MANS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
|
||||
@list=''; test -n "$(man1dir)" || exit 0; \
|
||||
{ for i in $$list; do echo "$$i"; done; \
|
||||
l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
|
||||
sed -n '/\.1[a-z]*$$/p'; \
|
||||
} | while read p; do \
|
||||
if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; echo "$$p"; \
|
||||
done | \
|
||||
sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
|
||||
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
|
||||
sed 'N;N;s,\n, ,g' | { \
|
||||
list=; while read file base inst; do \
|
||||
if test "$$base" = "$$inst"; then list="$$list $$file"; else \
|
||||
echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
|
||||
$(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
|
||||
fi; \
|
||||
done; \
|
||||
for i in $$list; do echo "$$i"; done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
test -z "$$files" || { \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
|
||||
done; }
|
||||
|
||||
uninstall-man1:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list=''; test -n "$(man1dir)" || exit 0; \
|
||||
files=`{ for i in $$list; do echo "$$i"; done; \
|
||||
l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
|
||||
sed -n '/\.1[a-z]*$$/p'; \
|
||||
} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
|
||||
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
|
||||
test -z "$$files" || { \
|
||||
echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
|
||||
cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
|
||||
install-pkgconfigDATA: $(pkgconfig_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
|
||||
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
|
||||
for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
echo "$$d$$p"; \
|
||||
done | $(am__base_list) | \
|
||||
while read files; do \
|
||||
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
|
||||
$(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
|
||||
done
|
||||
|
||||
uninstall-pkgconfigDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
|
||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||
test -n "$$files" || exit 0; \
|
||||
echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
|
||||
cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run `make' without going through this Makefile.
|
||||
# To change the values of `make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in `config.status', edit `config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
$(RECURSIVE_CLEAN_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
*k*) failcom='fail=yes';; \
|
||||
esac; \
|
||||
done; \
|
||||
dot_seen=no; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
rev=''; for subdir in $$list; do \
|
||||
if test "$$subdir" = "."; then :; else \
|
||||
rev="$$subdir $$rev"; \
|
||||
fi; \
|
||||
done; \
|
||||
rev="$$rev ."; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
for subdir in $$rev; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done && test -z "$$fail"
|
||||
tags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||
done
|
||||
ctags-recursive:
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@list='$(MANS)'; if test -n "$$list"; then \
|
||||
list=`for p in $$list; do \
|
||||
if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
|
||||
if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
|
||||
if test -n "$$list" && \
|
||||
grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
|
||||
echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
|
||||
grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
|
||||
echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
|
||||
echo " typically \`make maintainer-clean' will remove them" >&2; \
|
||||
exit 1; \
|
||||
else :; fi; \
|
||||
else :; fi
|
||||
$(am__remove_distdir)
|
||||
test -d "$(distdir)" || mkdir "$(distdir)"
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
-test -n "$(am__skip_mode_fix)" \
|
||||
|| find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r "$(distdir)"
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-lzma: distdir
|
||||
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-xz: distdir
|
||||
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.lzma*) \
|
||||
unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
|
||||
*.tar.xz*) \
|
||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
test -d $(distdir)/_build || exit 0; \
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& am__cwd=`pwd` \
|
||||
&& $(am__cd) $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||
&& cd "$$am__cwd" \
|
||||
|| exit 1
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
||||
distuninstallcheck:
|
||||
@$(am__cd) '$(distuninstallcheck_dir)' \
|
||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile $(MANS) $(DATA)
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgconfigdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-libtool \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-man install-pkgconfigDATA
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man: install-man1
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-man uninstall-pkgconfigDATA
|
||||
|
||||
uninstall-man: uninstall-man1
|
||||
|
||||
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
|
||||
install-am install-strip tags-recursive
|
||||
|
||||
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
|
||||
all all-am am--refresh check check-am clean clean-generic \
|
||||
clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
|
||||
dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
|
||||
distcheck distclean distclean-generic distclean-libtool \
|
||||
distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man install-man1 \
|
||||
install-pdf install-pdf-am install-pkgconfigDATA install-ps \
|
||||
install-ps-am install-strip installcheck installcheck-am \
|
||||
installdirs installdirs-am maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
|
||||
uninstall uninstall-am uninstall-man uninstall-man1 \
|
||||
uninstall-pkgconfigDATA
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
1108
src/contrib/mpg123decoder/mpg123/NEWS
Normal file
1108
src/contrib/mpg123decoder/mpg123/NEWS
Normal file
File diff suppressed because it is too large
Load Diff
110
src/contrib/mpg123decoder/mpg123/NEWS.libmpg123
Normal file
110
src/contrib/mpg123decoder/mpg123/NEWS.libmpg123
Normal file
@ -0,0 +1,110 @@
|
||||
Changes in libmpg123 libtool interface versions...
|
||||
|
||||
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.
|
||||
|
203
src/contrib/mpg123decoder/mpg123/README
Normal file
203
src/contrib/mpg123decoder/mpg123/README
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
|
36
src/contrib/mpg123decoder/mpg123/TODO
Normal file
36
src/contrib/mpg123decoder/mpg123/TODO
Normal file
@ -0,0 +1,36 @@
|
||||
Things that need to be done...
|
||||
|
||||
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...
|
||||
|
||||
6. Ensure proper operation of free format with the feeder.
|
||||
MPG123_NEED_MORE needs to be propagated from the freeformat framesize guesser.
|
1147
src/contrib/mpg123decoder/mpg123/aclocal.m4
vendored
Normal file
1147
src/contrib/mpg123decoder/mpg123/aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1561
src/contrib/mpg123decoder/mpg123/build/config.guess
vendored
Normal file
1561
src/contrib/mpg123decoder/mpg123/build/config.guess
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1686
src/contrib/mpg123decoder/mpg123/build/config.sub
vendored
Normal file
1686
src/contrib/mpg123decoder/mpg123/build/config.sub
vendored
Normal file
File diff suppressed because it is too large
Load Diff
630
src/contrib/mpg123decoder/mpg123/build/depcomp
Normal file
630
src/contrib/mpg123decoder/mpg123/build/depcomp
Normal file
@ -0,0 +1,630 @@
|
||||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2009-04-28.21; # UTC
|
||||
|
||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 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 outputing dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
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"
|
||||
|
||||
# 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
|
||||
|
||||
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 -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## 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).
|
||||
## - 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 -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||
## 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.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" |
|
||||
## 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.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -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 -eq 0; then :
|
||||
else
|
||||
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 ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||
tr '
|
||||
' ' ' >> "$depfile"
|
||||
echo >> "$depfile"
|
||||
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> "$depfile"
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
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.
|
||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
test "x$dir" = "x$object" && dir=
|
||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
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 -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
# Each line is of the form `foo.o: dependent.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||
# That's a tab and a space in the [].
|
||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
icc)
|
||||
# Intel's C compiler understands `-MD -MF file'. However on
|
||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||
# ICC 7.0 will fill foo.d with something like
|
||||
# foo.o: sub/foo.c
|
||||
# foo.o: sub/foo.h
|
||||
# which is wrong. We want:
|
||||
# sub/foo.o: sub/foo.c
|
||||
# sub/foo.o: sub/foo.h
|
||||
# sub/foo.c:
|
||||
# sub/foo.h:
|
||||
# ICC 7.1 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using \ :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
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.
|
||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
test "x$dir" = "x$object" && dir=
|
||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
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 -eq 0; then :
|
||||
else
|
||||
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,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
|
||||
# Add `dependent.h:' lines.
|
||||
sed -ne '2,${
|
||||
s/^ *//
|
||||
s/ \\*$//
|
||||
s/$/:/
|
||||
p
|
||||
}' "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
echo "#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.
|
||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
test "x$dir" = "x$object" && dir=
|
||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# With Tru64 cc, shared objects can also be used to make a
|
||||
# static library. This mechanism is used in libtool 1.4 series to
|
||||
# handle both shared and static libraries in a single compilation.
|
||||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
||||
#
|
||||
# With libtool 1.5 this exception was removed, and libtool now
|
||||
# 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.libs/$base.lo.d # libtool 1.4
|
||||
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
||||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
||||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1=$dir$base.o.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
tmpdepfile3=$dir$base.d
|
||||
tmpdepfile4=$dir$base.d
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||
# That's a tab and a space in the [].
|
||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
#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:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
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"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||
' | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
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:: \1 \\:p' >> "$depfile"
|
||||
echo " " >> "$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:
|
520
src/contrib/mpg123decoder/mpg123/build/install-sh
Normal file
520
src/contrib/mpg123decoder/mpg123/build/install-sh
Normal file
@ -0,0 +1,520 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2009-04-28.21; # 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.
|
||||
|
||||
nl='
|
||||
'
|
||||
IFS=" "" $nl"
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit=${DOITPROG-}
|
||||
if test -z "$doit"; then
|
||||
doit_exec=exec
|
||||
else
|
||||
doit_exec=$doit
|
||||
fi
|
||||
|
||||
# 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_glob='?'
|
||||
initialize_posix_glob='
|
||||
test "$posix_glob" != "?" || {
|
||||
if (set -f) 2>/dev/null; then
|
||||
posix_glob=
|
||||
else
|
||||
posix_glob=:
|
||||
fi
|
||||
}
|
||||
'
|
||||
|
||||
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
|
||||
no_target_directory=
|
||||
|
||||
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
|
||||
*' '* | *' '* | *'
|
||||
'* | *'*'* | *'?'* | *'['*)
|
||||
echo "$0: invalid mode: $mode" >&2
|
||||
exit 1;;
|
||||
esac
|
||||
shift;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift;;
|
||||
|
||||
-s) stripcmd=$stripprog;;
|
||||
|
||||
-t) dst_arg=$2
|
||||
shift;;
|
||||
|
||||
-T) no_target_directory=true;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
--) shift
|
||||
break;;
|
||||
|
||||
-*) echo "$0: invalid option: $1" >&2
|
||||
exit 1;;
|
||||
|
||||
*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
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
|
||||
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
|
||||
trap '(exit $?); exit' 1 2 13 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 starting with `-'.
|
||||
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
|
||||
# Protect names starting with `-'.
|
||||
case $dst in
|
||||
-*) dst=./$dst;;
|
||||
esac
|
||||
|
||||
# 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 -n "$no_target_directory"; then
|
||||
echo "$0: $dst_arg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dstdir=$dst
|
||||
dst=$dstdir/`basename "$src"`
|
||||
dstdir_status=0
|
||||
else
|
||||
# Prefer dirname, but fall back on a substitute if dirname fails.
|
||||
dstdir=`
|
||||
(dirname "$dst") 2>/dev/null ||
|
||||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
||||
X"$dst" : 'X\(//\)[^/]' \| \
|
||||
X"$dst" : 'X\(//\)$' \| \
|
||||
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
|
||||
echo X"$dst" |
|
||||
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
/^X\(\/\/\)[^/].*/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
/^X\(\/\/\)$/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
/^X\(\/\).*/{
|
||||
s//\1/
|
||||
q
|
||||
}
|
||||
s/.*/./; q'
|
||||
`
|
||||
|
||||
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-writeable 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
|
||||
|
||||
eval "$initialize_posix_glob"
|
||||
|
||||
oIFS=$IFS
|
||||
IFS=/
|
||||
$posix_glob set -f
|
||||
set fnord $dstdir
|
||||
shift
|
||||
$posix_glob set +f
|
||||
IFS=$oIFS
|
||||
|
||||
prefixes=
|
||||
|
||||
for d
|
||||
do
|
||||
test -z "$d" && 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` &&
|
||||
|
||||
eval "$initialize_posix_glob" &&
|
||||
$posix_glob set -f &&
|
||||
set X $old && old=:$2:$4:$5:$6 &&
|
||||
set X $new && new=:$2:$4:$5:$6 &&
|
||||
$posix_glob 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:
|
8406
src/contrib/mpg123decoder/mpg123/build/ltmain.sh
Normal file
8406
src/contrib/mpg123decoder/mpg123/build/ltmain.sh
Normal file
File diff suppressed because it is too large
Load Diff
376
src/contrib/mpg123decoder/mpg123/build/missing
Normal file
376
src/contrib/mpg123decoder/mpg123/build/missing
Normal file
@ -0,0 +1,376 @@
|
||||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
|
||||
scriptversion=2009-04-28.21; # UTC
|
||||
|
||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
|
||||
# 2008, 2009 Free Software Foundation, Inc.
|
||||
# Originally 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
|
||||
|
||||
run=:
|
||||
sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
|
||||
sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
|
||||
|
||||
# In the cases where this matters, `missing' is being run in the
|
||||
# srcdir already.
|
||||
if test -f configure.ac; then
|
||||
configure_ac=configure.ac
|
||||
else
|
||||
configure_ac=configure.in
|
||||
fi
|
||||
|
||||
msg="missing on your system"
|
||||
|
||||
case $1 in
|
||||
--run)
|
||||
# Try to run requested program, and just exit if it succeeds.
|
||||
run=
|
||||
shift
|
||||
"$@" && exit 0
|
||||
# Exit code 63 means version mismatch. This often happens
|
||||
# when the user try to use an ancient version of a tool on
|
||||
# a file that requires a minimum version. In this case we
|
||||
# we should proceed has if the program had been absent, or
|
||||
# if --run hadn't been passed.
|
||||
if test $? = 63; then
|
||||
run=:
|
||||
msg="probably too old"
|
||||
fi
|
||||
;;
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||
error status if there is no known handling for PROGRAM.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
--run try to run the given command, and emulate it if it fails
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
autoconf touch file \`configure'
|
||||
autoheader touch file \`config.h.in'
|
||||
autom4te touch the output file, or create a stub one
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
help2man touch the output file
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
|
||||
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
|
||||
|
||||
# normalize program name to check for.
|
||||
program=`echo "$1" | sed '
|
||||
s/^gnu-//; t
|
||||
s/^gnu//; t
|
||||
s/^g//; t'`
|
||||
|
||||
# Now exit if we have it, but it failed. Also exit now if we
|
||||
# don't have it and --version was passed (most likely to detect
|
||||
# the program). This is about non-GNU programs, so use $1 not
|
||||
# $program.
|
||||
case $1 in
|
||||
lex*|yacc*)
|
||||
# Not GNU programs, they don't have --version.
|
||||
;;
|
||||
|
||||
tar*)
|
||||
if test -n "$run"; then
|
||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
# We have it, but it failed.
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
# Could not run --version or --help. This is probably someone
|
||||
# running `$TOOL --version' or `$TOOL --help' to check whether
|
||||
# $TOOL exists and not knowing $TOOL uses missing.
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# If it does not exist, or fails to run (possibly an outdated version),
|
||||
# try to emulate it.
|
||||
case $program in
|
||||
aclocal*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`${configure_ac}'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||
test -z "$files" && files="config.h"
|
||||
touch_files=
|
||||
for f in $files; do
|
||||
case $f in
|
||||
*:*) touch_files="$touch_files "`echo "$f" |
|
||||
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||
*) touch_files="$touch_files $f.in";;
|
||||
esac
|
||||
done
|
||||
touch $touch_files
|
||||
;;
|
||||
|
||||
automake*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print |
|
||||
sed 's/\.am$/.in/' |
|
||||
while read f; do touch "$f"; done
|
||||
;;
|
||||
|
||||
autom4te*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, but is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them.
|
||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||
archive site."
|
||||
|
||||
file=`echo "$*" | sed -n "$sed_output"`
|
||||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
||||
if test -f "$file"; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo "#! /bin/sh"
|
||||
echo "# Created by GNU Automake missing as a replacement of"
|
||||
echo "# $ $@"
|
||||
echo "exit 0"
|
||||
chmod +x $file
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
bison*|yacc*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' $msg. You should only need it if
|
||||
you modified a \`.y' file. You may need the \`Bison' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Bison' from any GNU archive site."
|
||||
rm -f y.tab.c y.tab.h
|
||||
if test $# -ne 1; then
|
||||
eval LASTARG="\${$#}"
|
||||
case $LASTARG in
|
||||
*.y)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||
if test -f "$SRCFILE"; then
|
||||
cp "$SRCFILE" y.tab.c
|
||||
fi
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||
if test -f "$SRCFILE"; then
|
||||
cp "$SRCFILE" y.tab.h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if test ! -f y.tab.h; then
|
||||
echo >y.tab.h
|
||||
fi
|
||||
if test ! -f y.tab.c; then
|
||||
echo 'main() { return 0; }' >y.tab.c
|
||||
fi
|
||||
;;
|
||||
|
||||
lex*|flex*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.l' file. You may need the \`Flex' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Flex' from any GNU archive site."
|
||||
rm -f lex.yy.c
|
||||
if test $# -ne 1; then
|
||||
eval LASTARG="\${$#}"
|
||||
case $LASTARG in
|
||||
*.l)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||
if test -f "$SRCFILE"; then
|
||||
cp "$SRCFILE" lex.yy.c
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if test ! -f lex.yy.c; then
|
||||
echo 'main() { return 0; }' >lex.yy.c
|
||||
fi
|
||||
;;
|
||||
|
||||
help2man*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a dependency of a manual page. You may need the
|
||||
\`Help2man' package in order for those modifications to take
|
||||
effect. You can get \`Help2man' from any GNU archive site."
|
||||
|
||||
file=`echo "$*" | sed -n "$sed_output"`
|
||||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
||||
if test -f "$file"; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo ".ab help2man is required to generate this page"
|
||||
exit $?
|
||||
fi
|
||||
;;
|
||||
|
||||
makeinfo*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
indirectly affecting the aspect of the manual. The spurious
|
||||
call might also be the consequence of using a buggy \`make' (AIX,
|
||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||
the \`GNU make' package. Grab either from any GNU archive site."
|
||||
# The file to touch is that specified with -o ...
|
||||
file=`echo "$*" | sed -n "$sed_output"`
|
||||
test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
|
||||
if test -z "$file"; then
|
||||
# ... or it is the one specified with @setfilename ...
|
||||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||
file=`sed -n '
|
||||
/^@setfilename/{
|
||||
s/.* \([^ ]*\) *$/\1/
|
||||
p
|
||||
q
|
||||
}' $infile`
|
||||
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
||||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
||||
fi
|
||||
# If the file does not exist, the user really needs makeinfo;
|
||||
# let's fail without touching anything.
|
||||
test -f $file || exit 1
|
||||
touch $file
|
||||
;;
|
||||
|
||||
tar*)
|
||||
shift
|
||||
|
||||
# We have already tried tar in the generic part.
|
||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||
# messages.
|
||||
if (gnutar --version > /dev/null 2>&1); then
|
||||
gnutar "$@" && exit 0
|
||||
fi
|
||||
if (gtar --version > /dev/null 2>&1); then
|
||||
gtar "$@" && exit 0
|
||||
fi
|
||||
firstarg="$1"
|
||||
if shift; then
|
||||
case $firstarg in
|
||||
*o*)
|
||||
firstarg=`echo "$firstarg" | sed s/o//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
case $firstarg in
|
||||
*h*)
|
||||
firstarg=`echo "$firstarg" | sed s/h//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo 1>&2 "\
|
||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||
You may want to install GNU tar or Free paxutils, or check the
|
||||
command line arguments."
|
||||
exit 1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
it often tells you about the needed prerequisites for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# 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:
|
19239
src/contrib/mpg123decoder/mpg123/configure
vendored
Normal file
19239
src/contrib/mpg123decoder/mpg123/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2098
src/contrib/mpg123decoder/mpg123/configure.ac
Normal file
2098
src/contrib/mpg123decoder/mpg123/configure.ac
Normal file
File diff suppressed because it is too large
Load Diff
2
src/contrib/mpg123decoder/mpg123/doc/ACCURACY
Normal file
2
src/contrib/mpg123decoder/mpg123/doc/ACCURACY
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
src/contrib/mpg123decoder/mpg123/doc/BENCHMARKING
Normal file
110
src/contrib/mpg123decoder/mpg123/doc/BENCHMARKING
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
src/contrib/mpg123decoder/mpg123/doc/BUGS
Normal file
3
src/contrib/mpg123decoder/mpg123/doc/BUGS
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
src/contrib/mpg123decoder/mpg123/doc/CONTACT
Normal file
17
src/contrib/mpg123decoder/mpg123/doc/CONTACT
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).
|
22
src/contrib/mpg123decoder/mpg123/doc/LICENSE
Normal file
22
src/contrib/mpg123decoder/mpg123/doc/LICENSE
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.
|
31
src/contrib/mpg123decoder/mpg123/doc/Makefile.am
Normal file
31
src/contrib/mpg123decoder/mpg123/doc/Makefile.am
Normal file
@ -0,0 +1,31 @@
|
||||
## 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
|
||||
|
||||
|
||||
EXTRA_DIST = \
|
||||
BENCHMARKING \
|
||||
BUGS \
|
||||
CONTACT \
|
||||
PATENTS \
|
||||
README.3DNOW \
|
||||
README.gain \
|
||||
README.remote \
|
||||
ROAD_TO_LGPL \
|
||||
TODO \
|
||||
LICENSE \
|
||||
THANKS \
|
||||
ACCURACY \
|
||||
libmpg123_speed.txt \
|
||||
doxyhead.xhtml \
|
||||
doxy_examples.c \
|
||||
doxygen.conf \
|
||||
examples/mpg123_to_wav.c \
|
||||
examples/scan.c \
|
||||
examples/mpglib.c \
|
||||
examples/id3dump.c \
|
||||
examples/feedseek.c \
|
||||
examples/dump_seekindex.c \
|
||||
examples/Makefile
|
460
src/contrib/mpg123decoder/mpg123/doc/Makefile.in
Normal file
460
src/contrib/mpg123decoder/mpg123/doc/Makefile.in
Normal file
@ -0,0 +1,460 @@
|
||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
||||
# Inc.
|
||||
# This Makefile.in 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.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = doc
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in THANKS TODO
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/addrconfig.m4 \
|
||||
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
|
||||
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/src/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AIX_CFLAGS = @AIX_CFLAGS@
|
||||
AIX_LDFLAGS = @AIX_LDFLAGS@
|
||||
AIX_LIBS = @AIX_LIBS@
|
||||
ALIB_CFLAGS = @ALIB_CFLAGS@
|
||||
ALIB_LDFLAGS = @ALIB_LDFLAGS@
|
||||
ALIB_LIBS = @ALIB_LIBS@
|
||||
ALSA_CFLAGS = @ALSA_CFLAGS@
|
||||
ALSA_LDFLAGS = @ALSA_LDFLAGS@
|
||||
ALSA_LIBS = @ALSA_LIBS@
|
||||
AMTAR = @AMTAR@
|
||||
API_VERSION = @API_VERSION@
|
||||
AR = @AR@
|
||||
ARTS_CFLAGS = @ARTS_CFLAGS@
|
||||
ARTS_LDFLAGS = @ARTS_LDFLAGS@
|
||||
ARTS_LIBS = @ARTS_LIBS@
|
||||
AS = @AS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCAS = @CCAS@
|
||||
CCASDEPMODE = @CCASDEPMODE@
|
||||
CCASFLAGS = @CCASFLAGS@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
COREAUDIO_CFLAGS = @COREAUDIO_CFLAGS@
|
||||
COREAUDIO_LDFLAGS = @COREAUDIO_LDFLAGS@
|
||||
COREAUDIO_LIBS = @COREAUDIO_LIBS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DECODER_LOBJ = @DECODER_LOBJ@
|
||||
DECODER_OBJ = @DECODER_OBJ@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMMY_CFLAGS = @DUMMY_CFLAGS@
|
||||
DUMMY_LDFLAGS = @DUMMY_LDFLAGS@
|
||||
DUMMY_LIBS = @DUMMY_LIBS@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ESD_CFLAGS = @ESD_CFLAGS@
|
||||
ESD_LDFLAGS = @ESD_LDFLAGS@
|
||||
ESD_LIBS = @ESD_LIBS@
|
||||
EXEC_LT_LDFLAGS = @EXEC_LT_LDFLAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
HP_CFLAGS = @HP_CFLAGS@
|
||||
HP_LDFLAGS = @HP_LDFLAGS@
|
||||
HP_LIBS = @HP_LIBS@
|
||||
INCLUDE_STDIO_H = @INCLUDE_STDIO_H@
|
||||
INCLUDE_STDLIB_H = @INCLUDE_STDLIB_H@
|
||||
INCLUDE_SYS_TYPE_H = @INCLUDE_SYS_TYPE_H@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
JACK_CFLAGS = @JACK_CFLAGS@
|
||||
JACK_LDFLAGS = @JACK_LDFLAGS@
|
||||
JACK_LIBS = @JACK_LIBS@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LFS_LOBJ = @LFS_LOBJ@
|
||||
LIBMPG123_VERSION = @LIBMPG123_VERSION@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_LDFLAGS = @LT_LDFLAGS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MINT_CFLAGS = @MINT_CFLAGS@
|
||||
MINT_LDFLAGS = @MINT_LDFLAGS@
|
||||
MINT_LIBS = @MINT_LIBS@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MODULE_OBJ = @MODULE_OBJ@
|
||||
NAS_CFLAGS = @NAS_CFLAGS@
|
||||
NAS_LDFLAGS = @NAS_LDFLAGS@
|
||||
NAS_LIBS = @NAS_LIBS@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OPENAL_CFLAGS = @OPENAL_CFLAGS@
|
||||
OPENAL_LDFLAGS = @OPENAL_LDFLAGS@
|
||||
OPENAL_LIBS = @OPENAL_LIBS@
|
||||
OS2_CFLAGS = @OS2_CFLAGS@
|
||||
OS2_LDFLAGS = @OS2_LDFLAGS@
|
||||
OS2_LIBS = @OS2_LIBS@
|
||||
OSS_CFLAGS = @OSS_CFLAGS@
|
||||
OSS_LDFLAGS = @OSS_LDFLAGS@
|
||||
OSS_LIBS = @OSS_LIBS@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
OUTPUT_CFLAGS = @OUTPUT_CFLAGS@
|
||||
OUTPUT_LDFLAGS = @OUTPUT_LDFLAGS@
|
||||
OUTPUT_LIBS = @OUTPUT_LIBS@
|
||||
OUTPUT_MOD = @OUTPUT_MOD@
|
||||
OUTPUT_OBJ = @OUTPUT_OBJ@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@
|
||||
PORTAUDIO_LDFLAGS = @PORTAUDIO_LDFLAGS@
|
||||
PORTAUDIO_LIBS = @PORTAUDIO_LIBS@
|
||||
PULSE_CFLAGS = @PULSE_CFLAGS@
|
||||
PULSE_LDFLAGS = @PULSE_LDFLAGS@
|
||||
PULSE_LIBS = @PULSE_LIBS@
|
||||
RANLIB = @RANLIB@
|
||||
SDL_CFLAGS = @SDL_CFLAGS@
|
||||
SDL_LDFLAGS = @SDL_LDFLAGS@
|
||||
SDL_LIBS = @SDL_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SGI_CFLAGS = @SGI_CFLAGS@
|
||||
SGI_LDFLAGS = @SGI_LDFLAGS@
|
||||
SGI_LIBS = @SGI_LIBS@
|
||||
SHELL = @SHELL@
|
||||
SNDIO_CFLAGS = @SNDIO_CFLAGS@
|
||||
SNDIO_LDFLAGS = @SNDIO_LDFLAGS@
|
||||
SNDIO_LIBS = @SNDIO_LIBS@
|
||||
STRIP = @STRIP@
|
||||
SUN_CFLAGS = @SUN_CFLAGS@
|
||||
SUN_LDFLAGS = @SUN_LDFLAGS@
|
||||
SUN_LIBS = @SUN_LIBS@
|
||||
VERSION = @VERSION@
|
||||
WIN32_CFLAGS = @WIN32_CFLAGS@
|
||||
WIN32_LDFLAGS = @WIN32_LDFLAGS@
|
||||
WIN32_LIBS = @WIN32_LIBS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
lt_ECHO = @lt_ECHO@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
EXTRA_DIST = \
|
||||
BENCHMARKING \
|
||||
BUGS \
|
||||
CONTACT \
|
||||
PATENTS \
|
||||
README.3DNOW \
|
||||
README.gain \
|
||||
README.remote \
|
||||
ROAD_TO_LGPL \
|
||||
TODO \
|
||||
LICENSE \
|
||||
THANKS \
|
||||
ACCURACY \
|
||||
libmpg123_speed.txt \
|
||||
doxyhead.xhtml \
|
||||
doxy_examples.c \
|
||||
doxygen.conf \
|
||||
examples/mpg123_to_wav.c \
|
||||
examples/scan.c \
|
||||
examples/mpglib.c \
|
||||
examples/id3dump.c \
|
||||
examples/feedseek.c \
|
||||
examples/dump_seekindex.c \
|
||||
examples/Makefile
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu doc/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
ctags: CTAGS
|
||||
CTAGS:
|
||||
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
distclean distclean-generic distclean-libtool distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man install-pdf \
|
||||
install-pdf-am install-ps install-ps-am install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
39
src/contrib/mpg123decoder/mpg123/doc/PATENTS
Normal file
39
src/contrib/mpg123decoder/mpg123/doc/PATENTS
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
src/contrib/mpg123decoder/mpg123/doc/README.3DNOW
Normal file
56
src/contrib/mpg123decoder/mpg123/doc/README.3DNOW
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
src/contrib/mpg123decoder/mpg123/doc/README.gain
Normal file
171
src/contrib/mpg123decoder/mpg123/doc/README.gain
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).
|
213
src/contrib/mpg123decoder/mpg123/doc/README.remote
Normal file
213
src/contrib/mpg123decoder/mpg123/doc/README.remote
Normal file
@ -0,0 +1,213 @@
|
||||
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>
|
||||
|
||||
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) v6
|
||||
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
|
||||
|
||||
@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
src/contrib/mpg123decoder/mpg123/doc/ROAD_TO_LGPL
Normal file
270
src/contrib/mpg123decoder/mpg123/doc/ROAD_TO_LGPL
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
src/contrib/mpg123decoder/mpg123/doc/THANKS
Normal file
13
src/contrib/mpg123decoder/mpg123/doc/THANKS
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.
|
63
src/contrib/mpg123decoder/mpg123/doc/TODO
Normal file
63
src/contrib/mpg123decoder/mpg123/doc/TODO
Normal file
@ -0,0 +1,63 @@
|
||||
We badly need:
|
||||
- header reorganization (lots of stuff don't belong to mpg123.h)
|
||||
- integer type safety - STOP using ints where size_t or at least long would be appropriate (expecially stream readers)
|
||||
- sprintf -> snprintf (maybe with switch to support ancient libc; or replacement by us)
|
||||
- rewrite httpget.c; that thing has been a can of bugs for years and I understand why when I look at it (way too many cooks)
|
||||
- really parse ID3V2 tags instead of skipping; done for RVA values... using the string info (just?) needs some Unicode/Locale handling
|
||||
- check support for fixed point arithmentic; generic_nofpu seems wo work generally, but resampling does not sound nice
|
||||
|
||||
From Nicholas:
|
||||
- Seperate out MPEG Audio decoder (only) into seperate library
|
||||
- Allow choice of audio output at runtime, rather than compile time
|
||||
- Choose processor optimization at runtime, rather than compile time?
|
||||
|
||||
From Michael (some time after/around pre-0.59s):
|
||||
|
||||
- add CRC check.
|
||||
- add 'free format stream' support.
|
||||
- optimize layer2.c:
|
||||
step_two: fraction as pointer ..
|
||||
process first channel 0 than channel 1
|
||||
copy channel 0 to channel 1 for: i >= jsbound
|
||||
- better frame reader .. especially for layer 3 - DONE by a good deal by Thomas
|
||||
- MPEG system stream decoder
|
||||
- check again layer1 !! (Layer-1 support not heavily tested ..)
|
||||
Problems with Layer1 fl7 reference stream
|
||||
- Write a special (optimized) 'single channel' decode.
|
||||
- optimized dct64 for down sampling modes
|
||||
- native audio support for AIX and DEC
|
||||
- update manpage
|
||||
- optimizations for downsampling modes on layer2 and layer1
|
||||
|
||||
MORE TODO: (partially done)
|
||||
---------------------------
|
||||
|
||||
A few notes on how mpg123 tries to select a 'good'
|
||||
audio encoding and frequency. (not full implemented yet!!)
|
||||
|
||||
- mpg123 tries to set the settings you specify on the command line
|
||||
in the order of its appearence (exclusiv .. no fallback then)
|
||||
(-r <rate>, --mono, --stereo, --8bit, etc )
|
||||
|
||||
- after this, mpg123 tries to set
|
||||
1. the number of channels (or fallback to mono if stereo isn't possible)
|
||||
2. the audioformat to 16 bit (or fallback to 8bit)
|
||||
3. the "best" frequency: (in this order)
|
||||
- the exact stream frequency or fallback to
|
||||
- 2:1 frequency or fallback to
|
||||
- 4:1 frequency or try the
|
||||
- nearest frequency lower than the frequency of your stream
|
||||
mpg123 automagically converts the rate.
|
||||
|
||||
So, if you think (or even know), that your hardware supports a higher
|
||||
frequency only with eg. mono,8bit you must force mpg123 to play mono
|
||||
and 8bit. ("--8bit -m") etc....
|
||||
|
||||
If you wanna a constant format eg to output the data to stdout you
|
||||
must explicit force it with eg: '-r 44100 --stereo'
|
||||
Else the format will be the format of the mpeg stream.
|
||||
|
||||
|
||||
|
||||
|
||||
|
17
src/contrib/mpg123decoder/mpg123/doc/doxy_examples.c
Normal file
17
src/contrib/mpg123decoder/mpg123/doc/doxy_examples.c
Normal file
@ -0,0 +1,17 @@
|
||||
/** \defgroup mpg123_examples example programs using libmpg123
|
||||
@{ */
|
||||
|
||||
/** \file mpg123_to_wav.c A simple MPEG audio to WAV converter using libmpg123 (read) and libsndfile (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.
|
||||
*/
|
||||
|
||||
/** \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. */
|
||||
|
||||
/* @} */
|
41
src/contrib/mpg123decoder/mpg123/doc/doxygen.conf
Normal file
41
src/contrib/mpg123decoder/mpg123/doc/doxygen.conf
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
# This file describes the settings to be used by the documentation system
|
||||
# doxygen (www.doxygen.org) for a project
|
||||
#
|
||||
|
||||
PROJECT_NAME = "libmpg123"
|
||||
OUTPUT_DIRECTORY = .
|
||||
CREATE_SUBDIRS = NO
|
||||
OUTPUT_LANGUAGE = English
|
||||
FULL_PATH_NAMES = NO
|
||||
|
||||
INPUT = doxy_examples.c examples/mpg123_to_wav.c examples/mpglib.c examples/scan.c examples/id3dump.c ../src/libmpg123/mpg123.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_FILE_EXTENSION = .shtml
|
12
src/contrib/mpg123decoder/mpg123/doc/doxyhead.xhtml
Normal file
12
src/contrib/mpg123decoder/mpg123/doc/doxyhead.xhtml
Normal file
@ -0,0 +1,12 @@
|
||||
<!--#include virtual="../header.html" -->
|
||||
<title>$title</title>
|
||||
<link href="/doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<!--#include virtual="../linkbar.html" -->
|
||||
<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> 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 is to always stay backwards compatible -- only <em>additions</em> are planned (and it's not yet planned to change the plans;-).
|
||||
</div>
|
40
src/contrib/mpg123decoder/mpg123/doc/examples/Makefile
Normal file
40
src/contrib/mpg123decoder/mpg123/doc/examples/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
targets = feedseek mpg123_to_wav mpg123_to_wav_replaced_io scan id3dump mpglib dump_seekindex
|
||||
|
||||
all: $(targets)
|
||||
|
||||
# On largefile-aware systems you might want to use these instead:
|
||||
#MPG123_CFLAGS := $(shell pkg-config --cflags libmpg123_64)
|
||||
#MPG123_LDFLAGS := $(shell pkg-config --libs libmpg123_64)
|
||||
# This works on sane setups where off_t is off_t, and just that.
|
||||
MPG123_CFLAGS := $(shell pkg-config --cflags libmpg123)
|
||||
MPG123_LDFLAGS := $(shell pkg-config --libs libmpg123)
|
||||
SND_CFLAGS := $(shell pkg-config --cflags sndfile)
|
||||
SND_LDFLAGS := $(shell pkg-config --libs sndfile)
|
||||
|
||||
# Oder of libs not that important here...
|
||||
compile = $(CC) $(CPPFLAGS) $(CFLAGS) $(MPG123_CFLAGS)
|
||||
linkflags = $(MPG123_LDFLAGS) $(LDFLAGS)
|
||||
|
||||
mpg123_to_wav: mpg123_to_wav.c
|
||||
$(compile) -o mpg123_to_wav mpg123_to_wav.c $(SND_CFLAGS) $(SND_LDFLAGS) $(linkflags)
|
||||
|
||||
mpg123_to_wav_replaced_io: mpg123_to_wav_replaced_io.c
|
||||
$(compile) -o $@ $< $(SND_CFLAGS) $(SND_LDFLAGS) $(linkflags)
|
||||
|
||||
feedseek: feedseek.c
|
||||
$(compile) -o feedseek feedseek.c $(linkflags)
|
||||
|
||||
scan: scan.c
|
||||
$(compile) -o scan scan.c $(linkflags)
|
||||
|
||||
id3dump:id3dump.c
|
||||
$(compile) -o id3dump id3dump.c $(linkflags)
|
||||
|
||||
dump_seekindex: dump_seekindex.c
|
||||
$(compile) -o dump_seekindex dump_seekindex.c $(linkflags)
|
||||
|
||||
mpglib: mpglib.c
|
||||
$(compile) -o mpglib mpglib.c $(linkflags)
|
||||
|
||||
clean:
|
||||
rm -vf $(targets)
|
@ -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;
|
||||
}
|
237
src/contrib/mpg123decoder/mpg123/doc/examples/feedseek.c
Normal file
237
src/contrib/mpg123decoder/mpg123/doc/examples/feedseek.c
Normal file
@ -0,0 +1,237 @@
|
||||
/*
|
||||
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)
|
||||
{
|
||||
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;
|
||||
}
|
172
src/contrib/mpg123decoder/mpg123/doc/examples/id3dump.c
Normal file
172
src/contrib/mpg123decoder/mpg123/doc/examples/id3dump.c
Normal file
@ -0,0 +1,172 @@
|
||||
/*
|
||||
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];
|
||||
memcpy(id, v2->text[i].id, 4);
|
||||
id[4] = 0;
|
||||
printf("%s\n", id);
|
||||
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;
|
||||
}
|
103
src/contrib/mpg123decoder/mpg123/doc/examples/mpg123_to_wav.c
Normal file
103
src/contrib/mpg123decoder/mpg123/doc/examples/mpg123_to_wav.c
Normal file
@ -0,0 +1,103 @@
|
||||
/*
|
||||
mpg123_to_wav.c
|
||||
|
||||
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 Nicholas Humfrey
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <mpg123.h>
|
||||
#include <sndfile.h>
|
||||
|
||||
|
||||
void usage()
|
||||
{
|
||||
printf("Usage: mpg123_to_wav <input> <output>\n");
|
||||
exit(99);
|
||||
}
|
||||
|
||||
void cleanup(mpg123_handle *mh)
|
||||
{
|
||||
/* It's really to late for error checks here;-) */
|
||||
mpg123_close(mh);
|
||||
mpg123_delete(mh);
|
||||
mpg123_exit();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
SNDFILE* sndfile = NULL;
|
||||
SF_INFO sfinfo;
|
||||
mpg123_handle *mh = NULL;
|
||||
unsigned char* buffer = NULL;
|
||||
size_t buffer_size = 0;
|
||||
size_t done = 0;
|
||||
int channels = 0, encoding = 0;
|
||||
long rate = 0;
|
||||
int err = MPG123_OK;
|
||||
off_t samples = 0;
|
||||
|
||||
if (argc!=3) usage();
|
||||
printf( "Input file: %s\n", argv[1]);
|
||||
printf( "Output file: %s\n", argv[2]);
|
||||
|
||||
err = mpg123_init();
|
||||
if( err != MPG123_OK || (mh = mpg123_new(NULL, &err)) == NULL
|
||||
/* Let mpg123 work with the file, that excludes MPG123_NEED_MORE messages. */
|
||||
|| mpg123_open(mh, argv[1]) != 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",
|
||||
mh==NULL ? mpg123_plain_strerror(err) : mpg123_strerror(mh) );
|
||||
cleanup(mh);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(encoding != MPG123_ENC_SIGNED_16)
|
||||
{ /* Signed 16 is the default output format anyways; it would actually by only different if we forced it.
|
||||
So this check is here just for this explanation. */
|
||||
cleanup(mh);
|
||||
fprintf(stderr, "Bad encoding: 0x%x!\n", encoding);
|
||||
return -2;
|
||||
}
|
||||
/* Ensure that this output format will not change (it could, when we allow it). */
|
||||
mpg123_format_none(mh);
|
||||
mpg123_format(mh, rate, channels, encoding);
|
||||
|
||||
/* Buffer could be almost any size here, mpg123_outblock() is just some recommendation.
|
||||
Important, especially for sndfile writing, is that the size is a multiple of sample size. */
|
||||
buffer_size = mpg123_outblock( mh );
|
||||
buffer = malloc( buffer_size );
|
||||
|
||||
bzero(&sfinfo, sizeof(sfinfo) );
|
||||
sfinfo.samplerate = rate;
|
||||
sfinfo.channels = channels;
|
||||
sfinfo.format = SF_FORMAT_WAV|SF_FORMAT_PCM_16;
|
||||
printf("Creating 16bit WAV with %i channels and %liHz.\n", channels, rate);
|
||||
|
||||
sndfile = sf_open(argv[2], SFM_WRITE, &sfinfo);
|
||||
if(sndfile == NULL){ fprintf(stderr, "Cannot open output file!\n"); cleanup(mh); return -2; }
|
||||
|
||||
do
|
||||
{
|
||||
err = mpg123_read( mh, buffer, buffer_size, &done );
|
||||
sf_write_short( sndfile, (short*)buffer, done/sizeof(short) );
|
||||
samples += done/sizeof(short);
|
||||
/* 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 (err==MPG123_OK);
|
||||
|
||||
if(err != MPG123_DONE)
|
||||
fprintf( stderr, "Warning: Decoding ended prematurely because: %s\n",
|
||||
err == MPG123_ERR ? mpg123_strerror(mh) : mpg123_plain_strerror(err) );
|
||||
|
||||
sf_close( sndfile );
|
||||
|
||||
samples /= channels;
|
||||
printf("%li samples written.\n", (long)samples);
|
||||
cleanup(mh);
|
||||
return 0;
|
||||
}
|
83
src/contrib/mpg123decoder/mpg123/doc/examples/mpglib.c
Normal file
83
src/contrib/mpg123decoder/mpg123/doc/examples/mpglib.c
Normal file
@ -0,0 +1,83 @@
|
||||
/*
|
||||
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
|
||||
|
||||
#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;
|
||||
|
||||
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
src/contrib/mpg123decoder/mpg123/doc/examples/scan.c
Normal file
47
src/contrib/mpg123decoder/mpg123/doc/examples/scan.c
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
src/contrib/mpg123decoder/mpg123/doc/libmpg123_speed.txt
Normal file
84
src/contrib/mpg123decoder/mpg123/doc/libmpg123_speed.txt
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
src/contrib/mpg123decoder/mpg123/equalize.dat
Normal file
37
src/contrib/mpg123decoder/mpg123/equalize.dat
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
src/contrib/mpg123decoder/mpg123/libmpg123.pc.in
Normal file
11
src/contrib/mpg123decoder/mpg123/libmpg123.pc.in
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}
|
34
src/contrib/mpg123decoder/mpg123/m4/addrconfig.m4
Normal file
34
src/contrib/mpg123decoder/mpg123/m4/addrconfig.m4
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
|
||||
])
|
7357
src/contrib/mpg123decoder/mpg123/m4/libtool.m4
vendored
Normal file
7357
src/contrib/mpg123decoder/mpg123/m4/libtool.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
368
src/contrib/mpg123decoder/mpg123/m4/ltoptions.m4
vendored
Normal file
368
src/contrib/mpg123decoder/mpg123/m4/ltoptions.m4
vendored
Normal file
@ -0,0 +1,368 @@
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007, 2008 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 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_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], [0], [Assembler program])dnl
|
||||
|
||||
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
||||
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
|
||||
|
||||
test -z "$OBJDUMP" && OBJDUMP=objdump
|
||||
_LT_DECL([], [OBJDUMP], [0], [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_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],
|
||||
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
||||
[pic_mode="$withval"],
|
||||
[pic_mode=default])
|
||||
|
||||
test -z "$pic_mode" && 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])])
|
123
src/contrib/mpg123decoder/mpg123/m4/ltsugar.m4
vendored
Normal file
123
src/contrib/mpg123decoder/mpg123/m4/ltsugar.m4
vendored
Normal file
@ -0,0 +1,123 @@
|
||||
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007, 2008 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
src/contrib/mpg123decoder/mpg123/m4/ltversion.m4
vendored
Normal file
23
src/contrib/mpg123decoder/mpg123/m4/ltversion.m4
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004 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.
|
||||
|
||||
# Generated from ltversion.in.
|
||||
|
||||
# serial 3017 ltversion.m4
|
||||
# This file is part of GNU Libtool
|
||||
|
||||
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
|
||||
m4_define([LT_PACKAGE_REVISION], [1.3017])
|
||||
|
||||
AC_DEFUN([LTVERSION_VERSION],
|
||||
[macro_version='2.2.6b'
|
||||
macro_revision='1.3017'
|
||||
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
||||
_LT_DECL(, macro_revision, 0)
|
||||
])
|
92
src/contrib/mpg123decoder/mpg123/m4/lt~obsolete.m4
vendored
Normal file
92
src/contrib/mpg123decoder/mpg123/m4/lt~obsolete.m4
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007 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 4 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_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
|
||||
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])])
|
19
src/contrib/mpg123decoder/mpg123/makedll.sh
Normal file
19
src/contrib/mpg123decoder/mpg123/makedll.sh
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.
|
||||
|
||||
|
504
src/contrib/mpg123decoder/mpg123/man1/mpg123.1
Normal file
504
src/contrib/mpg123decoder/mpg123/man1/mpg123.1
Normal file
@ -0,0 +1,504 @@
|
||||
.TH mpg123 1 "31 Jan 2008"
|
||||
.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 " ... | " URL " ... | "
|
||||
.B \-
|
||||
.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; <0 means search whole stream.
|
||||
If you know there are huge chunks of invalid data in your files... here is your hammer.
|
||||
.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\-@ \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\-\-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.
|
||||
.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.
|
||||
.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 independed 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\-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\-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 1 (wait for full buffer before playback).
|
||||
.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. 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\-\^\-title
|
||||
In an xterm, or rxvt (compatible, TERM environment variable is examined), change the window's title to the name of song currently
|
||||
playing.
|
||||
.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
|
||||
\fN.
|
||||
.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 "SEE ALSO"
|
||||
.BR wget (1),
|
||||
.BR sox (1),
|
||||
.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, use the
|
||||
.B \-s
|
||||
option to decode to standard output, direct it into a file
|
||||
and then use an appropriate utility to play that file.
|
||||
You might have to use a tool such as
|
||||
.BR sox (1)
|
||||
to convert the output to an audio format suitable for
|
||||
your audio player.
|
||||
.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
|
||||
Free format streams are not supported, but they could be (there is some code).
|
||||
.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.
|
||||
Notably, this includes Tru64 with MME, but you should be able to install and use OSS there (it perhaps will perform better as MME would anyway).
|
||||
.SH AUTHORS
|
||||
.TP
|
||||
Maintainers:
|
||||
.br
|
||||
Thomas Orgis <maintainer@mpg123.org>, <thomas@orgis.org>
|
||||
.br
|
||||
Nicholas J. Humfrey
|
||||
.TP
|
||||
Creator:
|
||||
.br
|
||||
Michael Hipp
|
||||
.TP
|
||||
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
|
68
src/contrib/mpg123decoder/mpg123/mpg123.spec
Normal file
68
src/contrib/mpg123decoder/mpg123/mpg123.spec
Normal file
@ -0,0 +1,68 @@
|
||||
# This is a generic spec file that should "just work" with rpmbuild on any distro.
|
||||
# Make sure you have appropriate -devel packes installed:
|
||||
# - the package providing libltdl.so and .la (libtool or libtool-devel)
|
||||
# - devel packages for alsa, sdl, etc... to build the respective output modules.
|
||||
Summary: The fast console mpeg audio decoder/player.
|
||||
Name: mpg123
|
||||
Version: 1.13.1
|
||||
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
|
||||
# That is specific to fedora 4 already.
|
||||
#BuildPrereq: libtool-ltdl-devel
|
||||
|
||||
%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 mpg123
|
||||
Group: Development/Libraries
|
||||
|
||||
%description devel
|
||||
Libraries and header files for development with mpg123.
|
||||
|
||||
%prep
|
||||
%setup -q -n %name-%version
|
||||
|
||||
%build
|
||||
%configure --with-cpu=x86_dither --enable-shared --enable-static --disable-ltdl-install
|
||||
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
|
||||
%{_libdir}/libmpg123.so.*
|
||||
%{_libdir}/mpg123/output_*.la
|
||||
%{_libdir}/mpg123/output_*.so
|
||||
|
||||
%files devel
|
||||
%defattr(644,root,root)
|
||||
%{_libdir}/pkgconfig/libmpg123.pc
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/libmpg123.a
|
||||
%{_libdir}/libmpg123.la
|
||||
%{_libdir}/libmpg123.so
|
||||
%exclude %{_libdir}/mpg123/output_*.a
|
||||
|
||||
%changelog
|
||||
* Tue Jan 1 2008 Michael Ryzhykh <mclroy@gmail.com>
|
||||
- Initial Version.
|
||||
|
68
src/contrib/mpg123decoder/mpg123/mpg123.spec.in
Normal file
68
src/contrib/mpg123decoder/mpg123/mpg123.spec.in
Normal file
@ -0,0 +1,68 @@
|
||||
# This is a generic spec file that should "just work" with rpmbuild on any distro.
|
||||
# Make sure you have appropriate -devel packes installed:
|
||||
# - the package providing libltdl.so and .la (libtool or libtool-devel)
|
||||
# - 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
|
||||
# That is specific to fedora 4 already.
|
||||
#BuildPrereq: libtool-ltdl-devel
|
||||
|
||||
%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 mpg123
|
||||
Group: Development/Libraries
|
||||
|
||||
%description devel
|
||||
Libraries and header files for development with mpg123.
|
||||
|
||||
%prep
|
||||
%setup -q -n %name-%version
|
||||
|
||||
%build
|
||||
%configure --with-cpu=x86_dither --enable-shared --enable-static --disable-ltdl-install
|
||||
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
|
||||
%{_libdir}/libmpg123.so.*
|
||||
%{_libdir}/mpg123/output_*.la
|
||||
%{_libdir}/mpg123/output_*.so
|
||||
|
||||
%files devel
|
||||
%defattr(644,root,root)
|
||||
%{_libdir}/pkgconfig/libmpg123.pc
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/libmpg123.a
|
||||
%{_libdir}/libmpg123.la
|
||||
%{_libdir}/libmpg123.so
|
||||
%exclude %{_libdir}/mpg123/output_*.a
|
||||
|
||||
%changelog
|
||||
* Tue Jan 1 2008 Michael Ryzhykh <mclroy@gmail.com>
|
||||
- Initial Version.
|
||||
|
@ -0,0 +1,741 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="libmpg123"
|
||||
ProjectGUID="{5ABE9A83-CA20-4321-878B-BF71EFDE3A6D}"
|
||||
RootNamespace="libmpg123"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug_Generic|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_GENERIC;_DEBUG;_LIB"
|
||||
MinimalRebuild="false"
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_Generic|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_GENERIC;NDEBUG;_LIB"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="1"
|
||||
FloatingPointModel="2"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_i386|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_I386;NDEBUG;_LIB"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="1"
|
||||
FloatingPointModel="2"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_i486|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_I486;NDEBUG;_LIB"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="1"
|
||||
FloatingPointModel="2"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug_i386|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_I386;_DEBUG;_LIB"
|
||||
MinimalRebuild="false"
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug_i486|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I486;REAL_IS_FLOAT;_DEBUG;_LIB"
|
||||
MinimalRebuild="false"
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="false"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\compat.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\compat.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\config.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\dct64.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Release_i386|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release_i486|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\dct64_i386.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug_Generic|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release_Generic|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\dct64_i486.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug_Generic|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release_Generic|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release_i386|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release_i486|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug_i386|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\debug.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\decode.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\equalizer.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\feature.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\format.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\frame.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\frame.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\getbits.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\huffman.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\icy.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\icy.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\icy2utf8.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\icy2utf8.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\id3.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\id3.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\index.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\index.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\l2tables.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\layer1.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\layer2.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\layer3.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\libmpg123.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\mpg123.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\mpg123lib_intern.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\msvc.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\ntom.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\optimize.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\optimize.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\parse.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\parse.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\reader.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\readers.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\sample.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\stringbuf.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\synth.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\synth.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\synth_8bit.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\synth_i486.c"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug_Generic|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release_Generic|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release_i386|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug_i386|Win32"
|
||||
ExcludedFromBuild="true"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\synth_real.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\synth_s32.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\tabinit.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\..\src\libmpg123\true.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="dump_seekindex"
|
||||
ProjectGUID="{B086EA3E-700A-4DED-A91D-85ED8A79A8FC}"
|
||||
RootNamespace="dump_seekindex"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="false"
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="1"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
|
||||
RelativePathToProject=".\libmpg123\libmpg123.vcproj"
|
||||
/>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\..\..\..\doc\examples\dump_seekindex.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
@ -0,0 +1,195 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="feedseek"
|
||||
ProjectGUID="{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}"
|
||||
RootNamespace="feedseek"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="false"
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="1"
|
||||
FloatingPointModel="0"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
|
||||
RelativePathToProject=".\libmpg123\libmpg123.vcproj"
|
||||
/>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\..\examples\feedseek.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,289 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug_Generic|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_Generic|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug_Generic_Dll|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_Generic_Dll|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug_x86|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_x86|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug_x86_Dll|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_x86_Dll|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug_x86_Dll_Minimal|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release_x86_Dll_Minimal|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command=""
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
@ -0,0 +1,44 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpg123", "libmpg123\libmpg123.vcproj", "{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpglib", "mpglib\mpglib.vcproj", "{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "feedseek", "feedseek\feedseek.vcproj", "{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scan", "scan\scan.vcproj", "{245C2785-2FA9-4A6B-8558-35BB8473AEA1}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dump_seekindex", "dump_seekindex\dump_seekindex.vcproj", "{B086EA3E-700A-4DED-A91D-85ED8A79A8FC}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Win32.ActiveCfg = Debug_Generic|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Win32.Build.0 = Debug_Generic|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Win32.ActiveCfg = Release_Generic_Dll|Win32
|
||||
{67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Win32.Build.0 = Release_Generic_Dll|Win32
|
||||
{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Release|Win32.Build.0 = Release|Win32
|
||||
{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Release|Win32.Build.0 = Release|Win32
|
||||
{245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Release|Win32.Build.0 = Release|Win32
|
||||
{B086EA3E-700A-4DED-A91D-85ED8A79A8FC}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{B086EA3E-700A-4DED-A91D-85ED8A79A8FC}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{B086EA3E-700A-4DED-A91D-85ED8A79A8FC}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{B086EA3E-700A-4DED-A91D-85ED8A79A8FC}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="mpglib"
|
||||
ProjectGUID="{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}"
|
||||
RootNamespace="mpglib"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="1"
|
||||
FloatingPointModel="0"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
|
||||
RelativePathToProject=".\libmpg123\libmpg123.vcproj"
|
||||
/>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\..\..\..\doc\examples\mpglib.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
@ -0,0 +1,195 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="scan"
|
||||
ProjectGUID="{245C2785-2FA9-4A6B-8558-35BB8473AEA1}"
|
||||
RootNamespace="scan"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="false"
|
||||
ExceptionHandling="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
FavorSizeOrSpeed="1"
|
||||
OmitFramePointers="true"
|
||||
AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
ExceptionHandling="0"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
EnableFunctionLevelLinking="true"
|
||||
EnableEnhancedInstructionSet="1"
|
||||
FloatingPointModel="0"
|
||||
RuntimeTypeInfo="false"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="0"
|
||||
CompileAs="1"
|
||||
DisableSpecificWarnings="4996"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
<ProjectReference
|
||||
ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
|
||||
RelativePathToProject=".\libmpg123\libmpg123.vcproj"
|
||||
/>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\..\examples\scan.c"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioUserFile
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
ShowAllFiles="false"
|
||||
>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<DebugSettings
|
||||
Command="$(TargetPath)"
|
||||
WorkingDirectory=""
|
||||
CommandArguments=""
|
||||
Attach="false"
|
||||
DebuggerType="3"
|
||||
Remote="1"
|
||||
RemoteMachine="SOAK-PC-ACKBAR"
|
||||
RemoteCommand=""
|
||||
HttpUrl=""
|
||||
PDBPath=""
|
||||
SQLDebugging=""
|
||||
Environment=""
|
||||
EnvironmentMerge="true"
|
||||
DebuggerFlavor=""
|
||||
MPIRunCommand=""
|
||||
MPIRunArguments=""
|
||||
MPIRunWorkingDirectory=""
|
||||
ApplicationCommand=""
|
||||
ApplicationArguments=""
|
||||
ShimCommand=""
|
||||
MPIAcceptMode=""
|
||||
MPIAcceptFilter=""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioUserFile>
|
@ -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
|
@ -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>
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user