view Makefile.am @ 776:bb7b3ded919a

Indeed, libsidplay-fp's audio renderer expects buffer of 16-bit shorts and number of samples as input, AND returns number of samples. Thus, we need to divide and multiply the values accordingly. However, it also seems that some internal buffers in resid-fp are hardcoded to certain size, and using too big audio buffers cause overflows .. trying to compensate for that by limiting the amount of audio rendered. Unfortunately there are still memory corruptions.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Nov 2012 11:59:24 +0200
parents 469b341734b2
children 8f0d11865742
line wrap: on
line source

###
### Makefile.am for XMMS-SID
###
# Require latest automake
AUTOMAKE_OPTIONS = 1.9

PACKAGE = @PACKAGE@
VERSION = @VERSION@

themetune = Kummatti_City.sid
libxmmssiddir = $(pkgdatadir)
libxmmssid_DATA = $(themetune)

SUBDIRS = po

# Personal XMMS directory in user's home
USERHOMEPREFIX = $$HOME/.xmms/Plugins

# All the rest of the distributed files
EXTRA_DIST = mkinstalldirs 		\
	FAQ				\
	BUGS				\
	THANKS				\
	ChangeLog.old			\
	bootstrap.sh			\
	xmms-sid.glade			\
	xmms-sid.spec.in		\
	xmms-sid.spec			\
	xmms-1.2.10-songpos.patch	\
	src/xmms-sid-logo.xpm		\
	Kummatti_City.sid


# Update changelog
update:
	if test -e ".hg"; then hg update tip; fi

.changelog: update
	if test -e ".hg"; then hg2cl; fi
	touch $@

ChangeLog: .changelog

###
### Install/uninstall-targets for single user
###
install-user: $(lib_LTLIBRARIES)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    f="`echo $$p | sed -e 's|^.*/||'`"; \
	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(USERHOMEPREFIX)/$$f"; \
	    $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(USERHOMEPREFIX)/$$f; \
	  else :; fi; \
	done

uninstall-user:
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	    p="`echo $$p | sed -e 's|^.*/||'`"; \
	  echo " $(LIBTOOL) --mode=uninstall rm -f $(USERHOMEPREFIX)/$$p"; \
	  $(LIBTOOL) --mode=uninstall rm -f $(USERHOMEPREFIX)/$$p; \
	done


###
### Source targets
###
# Generated libraries
lib_LTLIBRARIES = libxmmssid.la

# Generals
AM_CFLAGS = -W -Wall -D_REENTRANT @XMMS_CFLAGS@ @SIDPLAY1_CFLAGS@	\
		@SIDPLAY2_CFLAGS@ @BUILDERS_CFLAGS@			\
		-DTHEMETUNE_FILE="\"$(pkgdatadir)/$(themetune)\""	\
		-DLOCALEDIR="\"$(localedir)\""

AM_CXXFLAGS = $(AM_CFLAGS)

libxmmssid_la_LDFLAGS = -module -avoid-version @BUILDERS_LDFLAGS@
libxmmssid_la_LIBADD  = @XMMS_LIBS@ @SIDPLAY1_LIBS@ @SIDPLAY2_LIBS@ @BUILDERS_LIBS@

# Glade-generated sources
update-glade: xmms-sid.glade
	glade -w $<
	touch $@

#src/xs_genui.c src/xs_genui.h src/xs_glade.c src/xs_glade.h src/xs_interface.c src/xs_interface.h: update-glade


# Plugin sources
libxmmssid_la_SOURCES =	\
	src/xs_init.c					\
	src/xs_about.c					\
	src/xs_support.c	src/xs_support.h	\
	src/xs_config.c		src/xs_config.h		\
	src/xs_length.c		src/xs_length.h		\
	src/xs_genui.c		src/xs_genui.h		\
	src/xs_glade.c		src/xs_glade.h		\
	src/xs_interface.c	src/xs_interface.h	\
	src/xs_curve.c		src/xs_curve.h		\
	src/xs_stil.c		src/xs_stil.h		\
	src/xs_title.c		src/xs_title.h		\
	src/xs_fileinfo.c	src/xs_fileinfo.h	\
	src/xs_sidplay.h				\
	src/xs_sidplay1.cc	src/xs_sidplay1.h	\
	src/xs_sidplay2.cc	src/xs_sidplay2.h	\
	src/xs_slsup.c		src/xs_slsup.h		\
	src/xs_player.c		src/xs_player.h		\
	src/xmms-sid.c		src/xmms-sid.h