From 02333914e84dccfd5b5510d27c7767b0da3a7af7 Mon Sep 17 00:00:00 2001 From: zvezdochiot Date: Mon, 4 Jul 2022 13:41:56 +0300 Subject: [PATCH] 1.3.2: fix #1 --- COPYING => LICENSE | 0 Makefile | 6 ++-- README => README.md | 44 ++++++++++++++++---------- mswindows/WaveGain.icproj | 18 +++++------ mswindows/WaveGain.vcproj | 22 ++++++------- audio.c => src/audio.c | 0 audio.h => src/audio.h | 0 config.h => src/config.h | 0 dither.c => src/dither.c | 0 dither.h => src/dither.h | 0 gain_analysis.c => src/gain_analysis.c | 0 gain_analysis.h => src/gain_analysis.h | 0 getopt.c => src/getopt.c | 0 getopt.h => src/getopt.h | 0 getopt1.c => src/getopt1.c | 0 i18n.h => src/i18n.h | 0 main.c => src/main.c | 0 main.h => src/main.h | 0 misc.c => src/misc.c | 0 misc.h => src/misc.h | 0 recurse.c => src/recurse.c | 0 recurse.h => src/recurse.h | 0 wavegain.c => src/wavegain.c | 0 wavegain.h => src/wavegain.h | 0 24 files changed, 50 insertions(+), 40 deletions(-) rename COPYING => LICENSE (100%) rename README => README.md (91%) rename audio.c => src/audio.c (100%) rename audio.h => src/audio.h (100%) rename config.h => src/config.h (100%) rename dither.c => src/dither.c (100%) rename dither.h => src/dither.h (100%) rename gain_analysis.c => src/gain_analysis.c (100%) rename gain_analysis.h => src/gain_analysis.h (100%) rename getopt.c => src/getopt.c (100%) rename getopt.h => src/getopt.h (100%) rename getopt1.c => src/getopt1.c (100%) rename i18n.h => src/i18n.h (100%) rename main.c => src/main.c (100%) rename main.h => src/main.h (100%) rename misc.c => src/misc.c (100%) rename misc.h => src/misc.h (100%) rename recurse.c => src/recurse.c (100%) rename recurse.h => src/recurse.h (100%) rename wavegain.c => src/wavegain.c (100%) rename wavegain.h => src/wavegain.h (100%) diff --git a/COPYING b/LICENSE similarity index 100% rename from COPYING rename to LICENSE diff --git a/Makefile b/Makefile index 0572ca1..6fd4ba3 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,11 @@ SHELL = /bin/sh CC = gcc TARGET = wavegain -CFLAGS += -m32 +CFLAGS += -Wall DEFS = -DHAVE_CONFIG_H LIBS = -lm -SOURCES := $(wildcard *.c) -HEADERS := $(wildcard *.h) +SOURCES := $(wildcard src/*.c) +HEADERS := $(wildcard src/*.h) prefix = /usr/local bindir = $(prefix)/bin diff --git a/README b/README.md similarity index 91% rename from README rename to README.md index fe35f79..5803577 100644 --- a/README +++ b/README.md @@ -1,4 +1,11 @@ -ReplayGain for wave files, v1.3.2 +![GitHub release (latest by date)](https://img.shields.io/github/v/release/Sound-Linux-More/wavegain) +![GitHub Release Date](https://img.shields.io/github/release-date/Sound-Linux-More/wavegain) +![GitHub repo size](https://img.shields.io/github/repo-size/Sound-Linux-More/wavegain) +![GitHub all releases](https://img.shields.io/github/downloads/Sound-Linux-More/wavegain/total) +![GitHub](https://img.shields.io/github/license/Sound-Linux-More/wavegain) + +# Wavegain +ReplayGain for wave files WaveGain is an application of the ReplayGain algorithms to standard PCM wave files. Calculated gain adjustments are applied directly to the audio data, @@ -12,8 +19,7 @@ current players are aware of this "standard", the metadata is used only by WaveGain for the "--undo-gain" feature, which is lossy. -About replaygain -------------------------------------------------------------------------------- +## About replaygain Replaygain is a standard that allows compatible players to play audio files with an adjusted volume gain so they have a consistent perceived loudness. @@ -35,8 +41,7 @@ http://wiki.hydrogenaudio.org/index.php?title=Replaygain http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_specification -The saga of a Debian package for wavegain: -------------------------------------------------------------------------------- +## The saga of a Debian package for wavegain: - Current source code (in .zip format) and windows binaries are published at http://www.rarewares.org/others.php @@ -53,8 +58,7 @@ packaging improved from the Mint release, and some patches to fix some (serious) Linux issues. -Install how-to -------------------------------------------------------------------------------- +## Install how-to There are 2 approaches: you can build and install a .deb package, or simply compile and install from source. For both I assume you are already at the @@ -62,13 +66,19 @@ source directory (which is not the root directory of the cloned repository) Debian method: This is OUTDATED, UNMAINTANED and NON-WORKING! Use Traditional Method instead! +```sh $ sudo apt-get install devscripts # if you don't already have debuild $ debuild -- binary && sudo dpkg --install ../wavegain_*.deb +``` Traditional method: +```sh $ make && sudo make install # by default installs to /usr/local/bin/wavegain +``` or +```sh $ make && sudo make install prefix=/usr # to install to /usr/bin/wavegain +``` Currently, 64-bit binaries build fine but can generate corrupted audio on output files, so to prevent this by default it builts a 32-bit executable instead, @@ -76,11 +86,13 @@ which runs and works fine on 64-bit architectures. However, multi-arch libraries and headers might be needed as a pre-requiste for compiling. On Debian/Ubuntu this can be installed by: +```sh sudo apt install gcc-multilib +``` + +## Pre-compiled binaries and old versions -Pre-compiled binaries and old versions -------------------------------------------------------------------------------- You can find pre-compiled .DEB binariy packages for i386 and amd64, as well as as some other goodies, like a mega-archive of all previous versions and a (lame and outdated) html manual in the Downloads section of GitHub: @@ -88,8 +100,7 @@ and a (lame and outdated) html manual in the Downloads section of GitHub: https://github.com/MestreLion/wavegain/downloads -License and copyright -------------------------------------------------------------------------------- +## License and copyright WaveGain is Copyright (c) 2002-2010 John Edwards , a.k.a. John33, and several other co-authors and contributors are mentioned as @@ -107,13 +118,14 @@ The Debianization and aditional material, like this README and Makefile, is Copyright (c) 2012 Rodrigo Silva (MestreLion) -Documentation (from wavegain --help) -------------------------------------------------------------------------------- +## Documentation (from wavegain --help) Copyright (c) 2002-2010 John Edwards Additional code by Magnus Holmgren, Gian-Carlo Pascutto, and Tycho - Usage: wavegain [options] input.wav [...] +Usage: +```sh +wavegain [options] input.wav [...] OPTIONS -h, --help Prints this help information. @@ -183,6 +195,4 @@ Additional code by Magnus Holmgren, Gian-Carlo Pascutto, and Tycho 11025Hz or 8000Hz. 16 bit integer 'aiff' files are also supported. Wildcards (?, *) can be used in the filename, or '-' for stdin. - - -wavegain-1.3.2 +``` diff --git a/mswindows/WaveGain.icproj b/mswindows/WaveGain.icproj index 6a6b83a..284f66c 100644 --- a/mswindows/WaveGain.icproj +++ b/mswindows/WaveGain.icproj @@ -30,7 +30,7 @@ Name="Source Files" > diff --git a/audio.c b/src/audio.c similarity index 100% rename from audio.c rename to src/audio.c diff --git a/audio.h b/src/audio.h similarity index 100% rename from audio.h rename to src/audio.h diff --git a/config.h b/src/config.h similarity index 100% rename from config.h rename to src/config.h diff --git a/dither.c b/src/dither.c similarity index 100% rename from dither.c rename to src/dither.c diff --git a/dither.h b/src/dither.h similarity index 100% rename from dither.h rename to src/dither.h diff --git a/gain_analysis.c b/src/gain_analysis.c similarity index 100% rename from gain_analysis.c rename to src/gain_analysis.c diff --git a/gain_analysis.h b/src/gain_analysis.h similarity index 100% rename from gain_analysis.h rename to src/gain_analysis.h diff --git a/getopt.c b/src/getopt.c similarity index 100% rename from getopt.c rename to src/getopt.c diff --git a/getopt.h b/src/getopt.h similarity index 100% rename from getopt.h rename to src/getopt.h diff --git a/getopt1.c b/src/getopt1.c similarity index 100% rename from getopt1.c rename to src/getopt1.c diff --git a/i18n.h b/src/i18n.h similarity index 100% rename from i18n.h rename to src/i18n.h diff --git a/main.c b/src/main.c similarity index 100% rename from main.c rename to src/main.c diff --git a/main.h b/src/main.h similarity index 100% rename from main.h rename to src/main.h diff --git a/misc.c b/src/misc.c similarity index 100% rename from misc.c rename to src/misc.c diff --git a/misc.h b/src/misc.h similarity index 100% rename from misc.h rename to src/misc.h diff --git a/recurse.c b/src/recurse.c similarity index 100% rename from recurse.c rename to src/recurse.c diff --git a/recurse.h b/src/recurse.h similarity index 100% rename from recurse.h rename to src/recurse.h diff --git a/wavegain.c b/src/wavegain.c similarity index 100% rename from wavegain.c rename to src/wavegain.c diff --git a/wavegain.h b/src/wavegain.h similarity index 100% rename from wavegain.h rename to src/wavegain.h