mirror of
http://mpg123.de/trunk/.git
synced 2025-08-07 21:02:55 +03:00
build: relative header includes, dropping -Isrc/compat and -Isrc/common
Only the generated config.h and the API headers in src/include should be located via search path now. git-svn-id: svn://scm.orgis.org/mpg123/trunk@5386 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
@@ -31,14 +31,7 @@ XFAIL_TESTS =
|
|||||||
check_PROGRAMS =
|
check_PROGRAMS =
|
||||||
|
|
||||||
AM_CPPFLAGS = -DPKGLIBDIR="\"$(pkglibdir)\""
|
AM_CPPFLAGS = -DPKGLIBDIR="\"$(pkglibdir)\""
|
||||||
# That can be trimmed down later when adapting the sources to
|
AM_CPPFLAGS += $(LTDLINCL)
|
||||||
# use relative paths for includes.
|
|
||||||
# TODO: Actually do more relative includes.
|
|
||||||
AM_CPPFLAGS += \
|
|
||||||
$(LTDLINCL) \
|
|
||||||
-I$(top_srcdir)/src \
|
|
||||||
-I$(top_srcdir)/src/compat \
|
|
||||||
-I$(top_srcdir)/src/common
|
|
||||||
|
|
||||||
# Automake cannot handle dependencies behind an autoconf expansion.
|
# Automake cannot handle dependencies behind an autoconf expansion.
|
||||||
# So we need elaborate ifelsery here to make it see the libtool
|
# So we need elaborate ifelsery here to make it see the libtool
|
||||||
|
2
NEWS
2
NEWS
@@ -2,6 +2,8 @@
|
|||||||
------
|
------
|
||||||
- build:
|
- build:
|
||||||
-- Reorganize shared headers, API headers into src/include.
|
-- Reorganize shared headers, API headers into src/include.
|
||||||
|
-- Use relative include paths, avoiding internal directories in
|
||||||
|
CPPFLAGS except for config.h.
|
||||||
-- Group C99 feature checks and make several standard headers
|
-- Group C99 feature checks and make several standard headers
|
||||||
mandatory.
|
mandatory.
|
||||||
-- Get rid of SIZE_P, OFF_P and friends.
|
-- Get rid of SIZE_P, OFF_P and friends.
|
||||||
|
@@ -341,8 +341,6 @@ option(USE_NEW_HUFFTABLE "use new huffman decoding scheme by Taihei (faster on m
|
|||||||
include_directories(
|
include_directories(
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/"
|
"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}"
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/compat"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/common"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/include")
|
"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/include")
|
||||||
|
|
||||||
add_compile_definitions(
|
add_compile_definitions(
|
||||||
|
42
scripts/fixinc.pl
Normal file
42
scripts/fixinc.pl
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
use File::Basename qw(dirname);
|
||||||
|
use File::Spec::Functions qw(abs2rel);
|
||||||
|
|
||||||
|
my @incdirs = ('src/common', 'src/compat', 'src');
|
||||||
|
|
||||||
|
sub header
|
||||||
|
{
|
||||||
|
my ($from, $inc) = @_;
|
||||||
|
for(dirname($from), @incdirs)
|
||||||
|
{
|
||||||
|
my $cand = "$_/$inc";
|
||||||
|
return $cand if -e $cand;
|
||||||
|
}
|
||||||
|
return undef;
|
||||||
|
}
|
||||||
|
|
||||||
|
for my $f (@ARGV)
|
||||||
|
{
|
||||||
|
open(my $ih, '<', $f) or die "meh: $!\n";
|
||||||
|
open(my $oh, '>', "$f.tmp") or die "moh: $!\n";
|
||||||
|
while(my $line = <$ih>)
|
||||||
|
{
|
||||||
|
if($line =~ m,^(\s*\#\s*include\s+)"([^/]+)\"(.*)$,)
|
||||||
|
{
|
||||||
|
my ($pre, $inc, $post) = ($1, $2, $3);
|
||||||
|
my $h = header($f, $inc);
|
||||||
|
if($inc ne "config.h" and defined $h)
|
||||||
|
{
|
||||||
|
if(dirname($h) ne dirname($f))
|
||||||
|
{
|
||||||
|
my $rel = abs2rel($h, dirname($f));
|
||||||
|
print "$f: including $inc ($rel)\n";
|
||||||
|
$line = $pre.'"'.$rel.'"'.$post."\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print $oh "$line";
|
||||||
|
}
|
||||||
|
rename("$f.tmp", $f);
|
||||||
|
}
|
@@ -40,7 +40,7 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
static syn123_handle *sh = NULL;
|
static syn123_handle *sh = NULL;
|
||||||
static struct mpg123_fmt outfmt = { .encoding=0, .rate=0, .channels=0 };
|
static struct mpg123_fmt outfmt = { .encoding=0, .rate=0, .channels=0 };
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
#ifndef _MPG123_AUDIO_H_
|
#ifndef _MPG123_AUDIO_H_
|
||||||
#define _MPG123_AUDIO_H_
|
#define _MPG123_AUDIO_H_
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
#include "mpg123.h"
|
#include "mpg123.h"
|
||||||
#include "out123.h"
|
#include "out123.h"
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
#include "terms.h"
|
#include "terms.h"
|
||||||
#include "metaprint.h"
|
#include "metaprint.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
enum player_state playstate = STATE_PLAYING;
|
enum player_state playstate = STATE_PLAYING;
|
||||||
const char playsym[STATE_COUNT] = { '>', '_', '=', '?' };
|
const char playsym[STATE_COUNT] = { '>', '_', '=', '?' };
|
||||||
|
@@ -39,7 +39,7 @@
|
|||||||
#include <shlwapi.h>
|
#include <shlwapi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#ifndef WINDOWS_UWP
|
#ifndef WINDOWS_UWP
|
||||||
|
|
||||||
|
@@ -279,7 +279,7 @@ size_t INT123_unintr_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *st
|
|||||||
#define normal mpg123_normal
|
#define normal mpg123_normal
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "true.h"
|
#include "../common/true.h"
|
||||||
|
|
||||||
#if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H)
|
#if (!defined(WIN32) || defined (__CYGWIN__)) && defined(HAVE_SIGNAL_H)
|
||||||
void (*INT123_catchsignal(int signum, void(*handler)(int)))(int);
|
void (*INT123_catchsignal(int signum, void(*handler)(int)))(int);
|
||||||
|
@@ -47,7 +47,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#include "wpathconv.h"
|
#include "wpathconv.h"
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/* A safe realloc also for very old systems where realloc(NULL, size) returns NULL. */
|
/* A safe realloc also for very old systems where realloc(NULL, size) returns NULL. */
|
||||||
void *INT123_safe_realloc(void *ptr, size_t size)
|
void *INT123_safe_realloc(void *ptr, size_t size)
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#ifndef _BSD_SOURCE
|
#ifndef _BSD_SOURCE
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
|
|
||||||
#include "mpg123app.h"
|
#include "mpg123app.h"
|
||||||
#include "out123.h"
|
#include "out123.h"
|
||||||
@@ -60,7 +60,7 @@ static int mode = MODE_STOPPED;
|
|||||||
static int init = 0;
|
static int init = 0;
|
||||||
static int sendstat_disabled = FALSE;
|
static int sendstat_disabled = FALSE;
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
void generic_sendmsg (const char *fmt, ...)
|
void generic_sendmsg (const char *fmt, ...)
|
||||||
{
|
{
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpg123app.h"
|
#include "mpg123app.h"
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
/* Load the settings from the path in the global variable equalfile.
|
/* Load the settings from the path in the global variable equalfile.
|
||||||
If there is no file, restore equalizer defaults.
|
If there is no file, restore equalizer defaults.
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
#include "filters.h"
|
#include "filters.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
// Validate syntax of filter specification, returning the number
|
// Validate syntax of filter specification, returning the number
|
||||||
// of configured filters.
|
// of configured filters.
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#ifndef MPG123_FILTERS_H
|
#ifndef MPG123_FILTERS_H
|
||||||
#define MPG123_FILTERS_H
|
#define MPG123_FILTERS_H
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
|
|
||||||
struct filter
|
struct filter
|
||||||
{
|
{
|
||||||
|
@@ -8,9 +8,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
#include "getlopt.h"
|
#include "getlopt.h"
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
int loptind = 1; /* index in argv[] */
|
int loptind = 1; /* index in argv[] */
|
||||||
int loptchr = 0; /* index in argv[loptind] */
|
int loptchr = 0; /* index in argv[loptind] */
|
||||||
|
@@ -34,12 +34,12 @@
|
|||||||
#include "resolver.h"
|
#include "resolver.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "true.h"
|
#include "common/true.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
void httpdata_init(struct httpdata *e)
|
void httpdata_init(struct httpdata *e)
|
||||||
{
|
{
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#define CALCTABLES
|
#define CALCTABLES
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#define ASIZE(a) (sizeof(a)/sizeof(*a))
|
#define ASIZE(a) (sizeof(a)/sizeof(*a))
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include "dither.h"
|
#include "dither.h"
|
||||||
|
|
||||||
static const uint32_t init_seed = 2463534242UL;
|
static const uint32_t init_seed = 2463534242UL;
|
||||||
|
@@ -26,8 +26,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/* static int chans[NUM_CHANNELS] = { 1 , 2 }; */
|
/* static int chans[NUM_CHANNELS] = { 1 , 2 }; */
|
||||||
static const long my_rates[MPG123_RATES] = /* only the standard rates */
|
static const long my_rates[MPG123_RATES] = /* only the standard rates */
|
||||||
@@ -686,7 +686,7 @@ static void conv_s16_to_s32(struct outbuffer *buf)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "swap_bytes_impl.h"
|
#include "../common/swap_bytes_impl.h"
|
||||||
|
|
||||||
void swap_endian(struct outbuffer *buf, int block)
|
void swap_endian(struct outbuffer *buf, int block)
|
||||||
{
|
{
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
#define WANT_GETCPUFLAGS
|
#define WANT_GETCPUFLAGS
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "getcpuflags.h"
|
#include "getcpuflags.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
static void frame_fixed_reset(mpg123_handle *fr);
|
static void frame_fixed_reset(mpg123_handle *fr);
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
This is no stand-alone header, precisely to be able to fool it into using fake handle types for testing the math.
|
This is no stand-alone header, precisely to be able to fool it into using fake handle types for testing the math.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#ifdef GAPLESS
|
#ifdef GAPLESS
|
||||||
/* From internal sample number to external. */
|
/* From internal sample number to external. */
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#define _MPG123_GETBITS_H_
|
#define _MPG123_GETBITS_H_
|
||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#define backbits(fr,nob) ((void)( \
|
#define backbits(fr,nob) ((void)( \
|
||||||
fr->bits_avail += nob, \
|
fr->bits_avail += nob, \
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#ifndef NO_ICY
|
#ifndef NO_ICY
|
||||||
|
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include "mpg123.h"
|
#include "mpg123.h"
|
||||||
|
|
||||||
struct icy_meta
|
struct icy_meta
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
/* Includes string and stdlib headers... */
|
/* Includes string and stdlib headers... */
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
|
|
||||||
/* ThOr: too lazy for this type check; also we use char/short all around anyway.
|
/* ThOr: too lazy for this type check; also we use char/short all around anyway.
|
||||||
Of cource, it would be the proper way to use _these_ kind of types all around. */
|
Of cource, it would be the proper way to use _these_ kind of types all around. */
|
||||||
|
@@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "id3.h"
|
#include "id3.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#ifndef NO_ID3V2 /* Only the main parsing routine will always be there. */
|
#ifndef NO_ID3V2 /* Only the main parsing routine will always be there. */
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "index.h"
|
#include "index.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/* The next expected frame offset, one step ahead. */
|
/* The next expected frame offset, one step ahead. */
|
||||||
static int64_t fi_next(struct frame_index *fi)
|
static int64_t fi_next(struct frame_index *fi)
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
|
|
||||||
struct frame_index
|
struct frame_index
|
||||||
{
|
{
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "getbits.h"
|
#include "getbits.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Allocation value is not allowed to be 15. Initially, libmad showed me the
|
Allocation value is not allowed to be 15. Initially, libmad showed me the
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#include "huffman.h"
|
#include "huffman.h"
|
||||||
#endif
|
#endif
|
||||||
#include "getbits.h"
|
#include "getbits.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For correct MPG123_EXPORT.
|
// For correct MPG123_EXPORT.
|
||||||
#include "abi_align.h"
|
#include "../common/abi_align.h"
|
||||||
|
|
||||||
// Need the full header with non-portable API, for the bare mpg123_open*()
|
// Need the full header with non-portable API, for the bare mpg123_open*()
|
||||||
// declarations. But no renaming shenanigans.
|
// declarations. But no renaming shenanigans.
|
||||||
@@ -40,8 +40,8 @@
|
|||||||
#include "mpg123.h"
|
#include "mpg123.h"
|
||||||
|
|
||||||
#include "lfs_wrap.h"
|
#include "lfs_wrap.h"
|
||||||
#include "abi_align.h"
|
#include "../common/abi_align.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
// A paranoid check that someone did not define a wrong SIZEOF_OFF_T at configure time.
|
// A paranoid check that someone did not define a wrong SIZEOF_OFF_T at configure time.
|
||||||
typedef unsigned char MPG123_STATIC_ASSERT[(SIZEOF_OFF_T == sizeof(off_t)) ? 1 : -1];
|
typedef unsigned char MPG123_STATIC_ASSERT[(SIZEOF_OFF_T == sizeof(off_t)) ? 1 : -1];
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
// We do not want to expose this publicly, but it is cleaner to have it also defined
|
// We do not want to expose this publicly, but it is cleaner to have it also defined
|
||||||
// as portable API to offer the legacy function wrapper over. It's an undocumented
|
// as portable API to offer the legacy function wrapper over. It's an undocumented
|
||||||
|
@@ -7,19 +7,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "version.h"
|
#include "../version.h"
|
||||||
#include "icy2utf8.h"
|
#include "icy2utf8.h"
|
||||||
|
|
||||||
#include "gapless.h"
|
#include "gapless.h"
|
||||||
/* Want accurate rounding function regardless of decoder setup. */
|
/* Want accurate rounding function regardless of decoder setup. */
|
||||||
#define FORCE_ACCURATE
|
#define FORCE_ACCURATE
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#ifndef PORTABLE_API
|
#ifndef PORTABLE_API
|
||||||
#include "lfs_wrap.h"
|
#include "lfs_wrap.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#define SEEKFRAME(mh) ((mh)->ignoreframe < 0 ? 0 : (mh)->ignoreframe)
|
#define SEEKFRAME(mh) ((mh)->ignoreframe < 0 ? 0 : (mh)->ignoreframe)
|
||||||
|
|
||||||
|
@@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
#include "config.h" /* Load this before _anything_ */
|
#include "config.h" /* Load this before _anything_ */
|
||||||
|
|
||||||
#include "abi_align.h"
|
#include "../common/abi_align.h"
|
||||||
|
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
|
|
||||||
// Only portable API plays a role in the library itself, outside of lfs_wrap.c.
|
// Only portable API plays a role in the library itself, outside of lfs_wrap.c.
|
||||||
// Also, we need to ensure no suffix renaming for the primary implementations.
|
// Also, we need to ensure no suffix renaming for the primary implementations.
|
||||||
@@ -278,7 +278,7 @@ static inline int32_t scale_rounded(int32_t x, int shift)
|
|||||||
now: factor on minimum frame buffer size (which takes upsampling into account) */
|
now: factor on minimum frame buffer size (which takes upsampling into account) */
|
||||||
#define AUDIOBUFSIZE 2
|
#define AUDIOBUFSIZE 2
|
||||||
|
|
||||||
#include "true.h"
|
#include "../common/true.h"
|
||||||
|
|
||||||
#define MAX_NAME_SIZE 81
|
#define MAX_NAME_SIZE 81
|
||||||
#define SBLIMIT 32
|
#define SBLIMIT 32
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#define SAFE_NTOM /* Do not depend on int64_t*int64_t with big values still being in the range... */
|
#define SAFE_NTOM /* Do not depend on int64_t*int64_t with big values still being in the range... */
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
int INT123_synth_ntom_set_step(mpg123_handle *fr)
|
int INT123_synth_ntom_set_step(mpg123_handle *fr)
|
||||||
{
|
{
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
#define WANT_GETCPUFLAGS
|
#define WANT_GETCPUFLAGS
|
||||||
#include "mpg123lib_intern.h" /* includes optimize.h */
|
#include "mpg123lib_intern.h" /* includes optimize.h */
|
||||||
#include "getcpuflags.h"
|
#include "getcpuflags.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
|
|
||||||
/* Ugly macros to build conditional synth function array values. */
|
/* Ugly macros to build conditional synth function array values. */
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#include "mpeghead.h"
|
#include "mpeghead.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#define bsbufid(fr) (fr)->bsbuf==(fr)->bsspace[0] ? 0 : ((fr)->bsbuf==fr->bsspace[1] ? 1 : ( (fr)->bsbuf==(fr)->bsspace[0]+512 ? 2 : ((fr)->bsbuf==fr->bsspace[1]+512 ? 3 : -1) ) )
|
#define bsbufid(fr) (fr)->bsbuf==(fr)->bsspace[0] ? 0 : ((fr)->bsbuf==fr->bsspace[1] ? 1 : ( (fr)->bsbuf==(fr)->bsspace[0]+512 ? 2 : ((fr)->bsbuf==fr->bsspace[1]+512 ? 3 : -1) ) )
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
static int stream_init(mpg123_handle *fr);
|
static int stream_init(mpg123_handle *fr);
|
||||||
static int64_t get_fileinfo(mpg123_handle *);
|
static int64_t get_fileinfo(mpg123_handle *);
|
||||||
|
@@ -10,9 +10,9 @@
|
|||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "mpg123.h"
|
#include "mpg123.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
mpg123_string* attribute_align_arg mpg123_new_string(const char *val)
|
mpg123_string* attribute_align_arg mpg123_new_string(const char *val)
|
||||||
{
|
{
|
||||||
|
@@ -10,8 +10,8 @@
|
|||||||
#ifdef OPT_GENERIC_DITHER
|
#ifdef OPT_GENERIC_DITHER
|
||||||
#define FORCE_ACCURATE
|
#define FORCE_ACCURATE
|
||||||
#endif
|
#endif
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Part 1: All synth functions that produce signed short.
|
Part 1: All synth functions that produce signed short.
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Part 2: All synth functions that produce 8bit output.
|
Part 2: All synth functions that produce 8bit output.
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#ifdef REAL_IS_FIXED
|
#ifdef REAL_IS_FIXED
|
||||||
#error "Do not build this file with fixed point math!"
|
#error "Do not build this file with fixed point math!"
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#ifdef REAL_IS_FIXED
|
#ifdef REAL_IS_FIXED
|
||||||
#error "Do not build this file with fixed point math!"
|
#error "Do not build this file with fixed point math!"
|
||||||
|
@@ -19,8 +19,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "mpg123app.h" <<<--- nope!
|
#include "../mpg123app.h" <<<--- nope!
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
static int filept;
|
static int filept;
|
||||||
static int verbose = 1;
|
static int verbose = 1;
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mpg123lib_intern.h"
|
#include "mpg123lib_intern.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
// The (normally precomputed) cos tables.
|
// The (normally precomputed) cos tables.
|
||||||
#include "costabs.h"
|
#include "costabs.h"
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#define BUF_CMD_OPEN XF_CMD_CUSTOM1
|
#define BUF_CMD_OPEN XF_CMD_CUSTOM1
|
||||||
#define BUF_CMD_CLOSE XF_CMD_CUSTOM2
|
#define BUF_CMD_CLOSE XF_CMD_CUSTOM2
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
#define _MPG123_BUFFER_H_
|
#define _MPG123_BUFFER_H_
|
||||||
|
|
||||||
#include "out123_int.h"
|
#include "out123_int.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
|
|
||||||
int INT123_buffer_init(out123_handle *ao, size_t bytes);
|
int INT123_buffer_init(out123_handle *ao, size_t bytes);
|
||||||
void INT123_buffer_exit(out123_handle *ao);
|
void INT123_buffer_exit(out123_handle *ao);
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "out123_int.h"
|
#include "out123_int.h"
|
||||||
#include "hextxt.h"
|
#include "hextxt.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
int hex_formats(out123_handle *ao)
|
int hex_formats(out123_handle *ao)
|
||||||
{
|
{
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "out123_int.h"
|
#include "out123_int.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/* A single module is staticly compiled in for each type */
|
/* A single module is staticly compiled in for each type */
|
||||||
extern mpg123_module_t mpg123_output_module_info;
|
extern mpg123_module_t mpg123_output_module_info;
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "version.h"
|
#include "../version.h"
|
||||||
#include "wav.h"
|
#include "wav.h"
|
||||||
#include "hextxt.h"
|
#include "hextxt.h"
|
||||||
#ifndef NOXFERMEM
|
#ifndef NOXFERMEM
|
||||||
@@ -44,7 +44,7 @@ static int have_buffer(out123_handle *ao)
|
|||||||
#endif
|
#endif
|
||||||
#include "stringlists.h"
|
#include "stringlists.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
const char * attribute_align_arg out123_distversion(unsigned int *major, unsigned int *minor, unsigned int *patch)
|
const char * attribute_align_arg out123_distversion(unsigned int *major, unsigned int *minor, unsigned int *patch)
|
||||||
{
|
{
|
||||||
|
@@ -11,11 +11,11 @@
|
|||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "stringlists.h"
|
#include "stringlists.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#ifndef USE_MODULES
|
#ifndef USE_MODULES
|
||||||
#error This is a build without modules. Why am I here?
|
#error This is a build without modules. Why am I here?
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
/* use AUDIO_BSIZE to set the msec for audio buffering in Ultimedia library
|
/* use AUDIO_BSIZE to set the msec for audio buffering in Ultimedia library
|
||||||
*/
|
*/
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
#include <Alib.h> /* /opt/audio/include */
|
#include <Alib.h> /* /opt/audio/include */
|
||||||
#include <CUlib.h> /* /opt/audio/include */
|
#include <CUlib.h> /* /opt/audio/include */
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
#include <alloca.h> /* GCC complains about missing declaration of alloca. */
|
#include <alloca.h> /* GCC complains about missing declaration of alloca. */
|
||||||
#include <alsa/asoundlib.h>
|
#include <alsa/asoundlib.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
/* Total buffer size in seconds, 0.2 is more true to what ALSA maximally uses
|
/* Total buffer size in seconds, 0.2 is more true to what ALSA maximally uses
|
||||||
here (8192 samples). The earlier default of 0.5 was never true. */
|
here (8192 samples). The earlier default of 0.5 was never true. */
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "../out123_int.h"
|
#include "../out123_int.h"
|
||||||
#include <artsc.h>
|
#include <artsc.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@@ -46,7 +46,7 @@
|
|||||||
#define SFIFO_STATIC
|
#define SFIFO_STATIC
|
||||||
#include "../sfifo.c"
|
#include "../sfifo.c"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
/* Duration of the ring buffer in seconds.
|
/* Duration of the ring buffer in seconds.
|
||||||
Is that all that there is to tunable latency?
|
Is that all that there is to tunable latency?
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../out123_int.h"
|
#include "../out123_int.h"
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
static int open_dummy(out123_handle *ao)
|
static int open_dummy(out123_handle *ao)
|
||||||
{
|
{
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/audioio.h>
|
#include <sys/audioio.h>
|
||||||
#endif
|
#endif
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
static unsigned esd_rate = 0, esd_format = 0, esd_channels = 0;
|
static unsigned esd_rate = 0, esd_format = 0, esd_channels = 0;
|
||||||
|
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
#include "../out123_int.h"
|
#include "../out123_int.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/audio.h>
|
#include <sys/audio.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
|
|
||||||
static int set_rate(out123_handle *ao)
|
static int set_rate(out123_handle *ao)
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int alive;
|
int alive;
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <ioctl.h>
|
#include <ioctl.h>
|
||||||
#include <audios.h>
|
#include <audios.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
/* Globals */
|
/* Globals */
|
||||||
/* extern int outburst; */
|
/* extern int outburst; */
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <audio/audiolib.h>
|
#include <audio/audiolib.h>
|
||||||
#include <audio/soundlib.h>
|
#include <audio/soundlib.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
#define NUM_BUFFERS 16
|
#define NUM_BUFFERS 16
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
// Only one instance at a time! This all needs to go into userptr!
|
// Only one instance at a time! This all needs to go into userptr!
|
||||||
static BOOL opened = FALSE;
|
static BOOL opened = FALSE;
|
||||||
|
@@ -39,7 +39,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
struct oss_stuff
|
struct oss_stuff
|
||||||
{
|
{
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#define SFIFO_STATIC
|
#define SFIFO_STATIC
|
||||||
#include "../sfifo.c"
|
#include "../sfifo.c"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
#define SAMPLE_SIZE (2)
|
#define SAMPLE_SIZE (2)
|
||||||
#define FRAMES_PER_BUFFER (256)
|
#define FRAMES_PER_BUFFER (256)
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
#include <pulse/error.h>
|
#include <pulse/error.h>
|
||||||
#include <pulse/pulseaudio.h>
|
#include <pulse/pulseaudio.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
// Since we learned the async API for enumeration, let's abuse it for
|
// Since we learned the async API for enumeration, let's abuse it for
|
||||||
// a simple check if a pulse server is active before accidentally
|
// a simple check if a pulse server is active before accidentally
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/asoundlib.h>
|
#include <sys/asoundlib.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
typedef struct _qsa_mp_map
|
typedef struct _qsa_mp_map
|
||||||
{
|
{
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
#define SFIFO_STATIC
|
#define SFIFO_STATIC
|
||||||
#include "../sfifo.c"
|
#include "../sfifo.c"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
|
|
||||||
#define SAMPLE_SIZE (2)
|
#define SAMPLE_SIZE (2)
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
#include "../out123_int.h"
|
#include "../out123_int.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <dmedia/audio.h>
|
#include <dmedia/audio.h>
|
||||||
#include "errno.h"
|
#include <errno.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
static int set_rate(out123_handle *ao, ALconfig config)
|
static int set_rate(out123_handle *ao, ALconfig config)
|
||||||
{
|
{
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <sndio.h>
|
#include <sndio.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
static int sndio_to_mpg123_enc(int sign, int bits)
|
static int sndio_to_mpg123_enc(int sign, int bits)
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
static void set_format_helper(out123_handle *ao, audio_info_t *ainfo)
|
static void set_format_helper(out123_handle *ao, audio_info_t *ainfo)
|
||||||
{
|
{
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include <tinyalsa/asoundlib.h>
|
#include <tinyalsa/asoundlib.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "../out123_int.h"
|
#include "../out123_int.h"
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Buffer size and number of buffers in the playback ring
|
Buffer size and number of buffers in the playback ring
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
#include <mmdeviceapi.h>
|
#include <mmdeviceapi.h>
|
||||||
#include <avrt.h>
|
#include <avrt.h>
|
||||||
#include <functiondiscoverykeys_devpkey.h>
|
#include <functiondiscoverykeys_devpkey.h>
|
||||||
#include "debug.h"
|
#include "../../common/debug.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
|
@@ -12,8 +12,8 @@
|
|||||||
#define MPG123_ENUM_API
|
#define MPG123_ENUM_API
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "abi_align.h"
|
#include "../common/abi_align.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include "out123.h"
|
#include "out123.h"
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@ TODO:
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "sfifo.h"
|
#include "sfifo.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Alloc buffer, init FIFO etc...
|
* Alloc buffer, init FIFO etc...
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
functions just for returning driver module lists.
|
functions just for returning driver module lists.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include "out123.h"
|
#include "out123.h"
|
||||||
|
|
||||||
static char* always_strdup(const char *in)
|
static char* always_strdup(const char *in)
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
#include "wav.h"
|
#include "wav.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
/* Create the two WAV headers. */
|
/* Create the two WAV headers. */
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
#include "xfermem.h"
|
#include "xfermem.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
#if defined (HAVE_MMAP) && defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
|
#if defined (HAVE_MMAP) && defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
|
||||||
#define MAP_ANON MAP_ANONYMOUS
|
#define MAP_ANON MAP_ANONYMOUS
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#ifndef _XFERMEM_H_
|
#ifndef _XFERMEM_H_
|
||||||
#define _XFERMEM_H_
|
#define _XFERMEM_H_
|
||||||
|
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
size_t freeindex; /* [W] next free index */
|
size_t freeindex; /* [W] next free index */
|
||||||
|
@@ -20,9 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "syn123_int.h"
|
#include "syn123_int.h"
|
||||||
#include "version.h"
|
#include "../version.h"
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
const char * attribute_align_arg syn123_distversion(unsigned int *major, unsigned int *minor, unsigned int *patch)
|
const char * attribute_align_arg syn123_distversion(unsigned int *major, unsigned int *minor, unsigned int *patch)
|
||||||
{
|
{
|
||||||
|
@@ -82,7 +82,7 @@ TODO: initialize with first sample or zero? is there an actual benefit? impulse
|
|||||||
// SSIZE_MAX is not standard C:-/
|
// SSIZE_MAX is not standard C:-/
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include "syn123_int.h"
|
#include "syn123_int.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
|
|
||||||
// coefficient tables generated from coeff-ellip-6-0.01-36-16.txd
|
// coefficient tables generated from coeff-ellip-6-0.01-36-16.txd
|
||||||
// (coeff-{filter_type}-{order}-{passband_ripple}-{rejection_dB}-{points})
|
// (coeff-{filter_type}-{order}-{passband_ripple}-{rejection_dB}-{points})
|
||||||
|
@@ -19,8 +19,8 @@
|
|||||||
#define NO_SMAX
|
#define NO_SMAX
|
||||||
#define RAND_XORSHIFT32
|
#define RAND_XORSHIFT32
|
||||||
#include "syn123_int.h"
|
#include "syn123_int.h"
|
||||||
#include "sample.h"
|
#include "../common/sample.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
// Avoid conflict with pragmas in isnan() and friends.
|
// Avoid conflict with pragmas in isnan() and friends.
|
||||||
#undef warning
|
#undef warning
|
||||||
|
|
||||||
@@ -988,7 +988,7 @@ mix_end:
|
|||||||
|
|
||||||
/* All the byte-swappery for those little big endian boxes. */
|
/* All the byte-swappery for those little big endian boxes. */
|
||||||
|
|
||||||
#include "swap_bytes_impl.h"
|
#include "../common/swap_bytes_impl.h"
|
||||||
|
|
||||||
void attribute_align_arg
|
void attribute_align_arg
|
||||||
syn123_swap_bytes(void* buf, size_t samplesize, size_t samplecount)
|
syn123_swap_bytes(void* buf, size_t samplesize, size_t samplecount)
|
||||||
|
@@ -17,8 +17,8 @@
|
|||||||
#ifdef LFS_LARGEFILE_64
|
#ifdef LFS_LARGEFILE_64
|
||||||
#define _LARGEFILE64_SOURCE
|
#define _LARGEFILE64_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#include "abi_align.h"
|
#include "../common/abi_align.h"
|
||||||
#include "compat.h"
|
#include "../compat/compat.h"
|
||||||
|
|
||||||
#define SYN123_NO_LARGEFUNC
|
#define SYN123_NO_LARGEFUNC
|
||||||
#include "syn123.h"
|
#include "syn123.h"
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
#define NO_GROW_BUF
|
#define NO_GROW_BUF
|
||||||
#define NO_SMAX
|
#define NO_SMAX
|
||||||
#include "syn123_int.h"
|
#include "syn123_int.h"
|
||||||
#include "debug.h"
|
#include "../common/debug.h"
|
||||||
// Avoid conflict with pragmas in isnan() and friends.
|
// Avoid conflict with pragmas in isnan() and friends.
|
||||||
#undef warning
|
#undef warning
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
#ifdef HAVE_LANGINFO_H
|
#ifdef HAVE_LANGINFO_H
|
||||||
#include <langinfo.h>
|
#include <langinfo.h>
|
||||||
#endif
|
#endif
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
|
|
||||||
#include "local.h"
|
#include "local.h"
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
#include <wincon.h>
|
#include <wincon.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
int utf8force = 0; // enforce UTF-8 workings
|
int utf8force = 0; // enforce UTF-8 workings
|
||||||
int utf8env = 0; // produce UTF-8 text output
|
int utf8env = 0; // produce UTF-8 text output
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "metaprint.h"
|
#include "metaprint.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
int meta_show_lyrics = 0;
|
int meta_show_lyrics = 0;
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
#if defined(WIN32) && defined(DYNAMIC_BUILD)
|
#if defined(WIN32) && defined(DYNAMIC_BUILD)
|
||||||
#define LINK_MPG123_DLL
|
#define LINK_MPG123_DLL
|
||||||
#endif
|
#endif
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "win32_support.h"
|
#include "win32_support.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
static int errors = 0;
|
static int errors = 0;
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
|
|
||||||
#if defined(WIN32) && defined(DYNAMIC_BUILD)
|
#if defined(WIN32) && defined(DYNAMIC_BUILD)
|
||||||
#define LINK_MPG123_DLL
|
#define LINK_MPG123_DLL
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
#include "httpget.h"
|
#include "httpget.h"
|
||||||
#include "streamdump.h"
|
#include "streamdump.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
static void usage(int err);
|
static void usage(int err);
|
||||||
static void want_usage(char* arg, topt *);
|
static void want_usage(char* arg, topt *);
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* everyone needs it */
|
/* everyone needs it */
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
/* import DLL symbols on windows */
|
/* import DLL symbols on windows */
|
||||||
|
|
||||||
#include "httpget.h"
|
#include "httpget.h"
|
||||||
|
@@ -26,9 +26,9 @@
|
|||||||
// Just for parameter struct that we use for HTTP auth and proxy info.
|
// Just for parameter struct that we use for HTTP auth and proxy info.
|
||||||
#include "mpg123app.h"
|
#include "mpg123app.h"
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "net123.h"
|
#include "net123.h"
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <winhttp.h>
|
#include <winhttp.h>
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "net123.h"
|
#include "net123.h"
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <wininet.h>
|
#include <wininet.h>
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
#define ME "out123"
|
#define ME "out123"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "compat.h"
|
#include "compat/compat.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
#include "win32_support.h"
|
#include "win32_support.h"
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
#include "syn123.h"
|
#include "syn123.h"
|
||||||
#include "filters.h"
|
#include "filters.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
/* be paranoid about setpriority support */
|
/* be paranoid about setpriority support */
|
||||||
#ifndef PRIO_PROCESS
|
#ifndef PRIO_PROCESS
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
#include "local.h"
|
#include "local.h"
|
||||||
#include "metaprint.h"
|
#include "metaprint.h"
|
||||||
#include <time.h> /* For srand(). */
|
#include <time.h> /* For srand(). */
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
#ifdef HAVE_RANDOM
|
#ifdef HAVE_RANDOM
|
||||||
#define RAND random
|
#define RAND random
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
#include "mpg123app.h"
|
#include "mpg123app.h"
|
||||||
|
|
||||||
#ifdef NETWORK
|
#ifdef NETWORK
|
||||||
#include "true.h"
|
#include "common/true.h"
|
||||||
#include "resolver.h"
|
#include "resolver.h"
|
||||||
#if !defined (WANT_WIN32_SOCKETS)
|
#if !defined (WANT_WIN32_SOCKETS)
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
int split_url(mpg123_string *url, mpg123_string *auth, mpg123_string *host, mpg123_string *port, mpg123_string *path)
|
int split_url(mpg123_string *url, mpg123_string *auth, mpg123_string *host, mpg123_string *port, mpg123_string *path)
|
||||||
{
|
{
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
#include "streamdump.h"
|
#include "streamdump.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
#ifndef O_BINARY
|
#ifndef O_BINARY
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "sysutil.h"
|
#include "sysutil.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* removed the strndup for better portability */
|
/* removed the strndup for better portability */
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "playlist.h"
|
#include "playlist.h"
|
||||||
#include "metaprint.h"
|
#include "metaprint.h"
|
||||||
#include "debug.h"
|
#include "common/debug.h"
|
||||||
|
|
||||||
static int term_enable = 0;
|
static int term_enable = 0;
|
||||||
static const char *extrabreak = "";
|
static const char *extrabreak = "";
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user