Fix modules build.

SVN revision: 33820
This commit is contained in:
Kim Woelders 2008-02-23 12:17:18 +00:00
parent 71c2e6f078
commit 9c04728d2e
2 changed files with 3 additions and 1 deletions

View File

@ -150,7 +150,7 @@ libe16_LTLIBRARIES = $(LIBSND_ESD) $(LIBFNT_IFT) $(LIBFNT_XFT) $(LIBFNT_PANGO)
if USE_LIBESD
LIBSND_ESD = libsound_esd.la
libsound_esd_la_SOURCES = sound_esd.c
libsound_esd_la_SOURCES = sound_esd.c sound_load.c
libsound_esd_la_CFLAGS = $(ESD_CFLAGS)
libsound_esd_la_LIBADD = $(ESD_LIBS)
libsound_esd_la_LDFLAGS = -module -avoid-version

View File

@ -48,9 +48,11 @@ SoundSampleGetData(const char *file, SoundSampleData * ssd)
#else
afSetVirtualByteOrder(in_file, AF_DEFAULT_TRACK, AF_BYTEORDER_LITTLEENDIAN);
#endif
#if !USE_MODULES
if (EDebug(EDBUG_TYPE_SOUND))
Eprintf("SoundSampleGetData chan=%d width=%d rate=%d\n", ssd->channels,
ssd->bit_per_sample, ssd->rate);
#endif
bytes_per_frame = (ssd->bit_per_sample * ssd->channels) / 8;
ssd->size = frame_count * bytes_per_frame;