changeset 415:d55ffce8b1ba trunk

[svn] Use FMT_S16_NE instead of unnecessary #ifdef WORDS_BIGENDIAN trickery.
author chainsaw
date Tue, 10 Jan 2006 12:47:50 -0800
parents 7fa1738514d5
children cb00a4b01302
files Plugins/Input/wav/wav-sndfile.c Plugins/Input/wav/wav-sndfile.h
diffstat 2 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/wav/wav-sndfile.c	Tue Jan 10 12:22:40 2006 -0800
+++ b/Plugins/Input/wav/wav-sndfile.c	Tue Jan 10 12:47:50 2006 -0800
@@ -131,7 +131,7 @@
 		samples = sf_read_short (sndfile, buffer, BUFFER_SIZE);
 
 		if (samples > 0 && decoding)
-		{	wav_ip.add_vis_pcm (wav_ip.output->written_time (), HOST_SIGNED_SHORT, sfinfo.channels, samples * sizeof (short), buffer);
+		{	wav_ip.add_vis_pcm (wav_ip.output->written_time (), FMT_S16_NE, sfinfo.channels, samples * sizeof (short), buffer);
 
 			while ((wav_ip.output->buffer_free () < (samples * sizeof (short))) && decoding)
 				xmms_usleep (10000);
@@ -178,7 +178,7 @@
 	else
 		song_length = 0;
 
-	if (! wav_ip.output->open_audio (HOST_SIGNED_SHORT, sfinfo.samplerate, sfinfo.channels))
+	if (! wav_ip.output->open_audio (FMT_S16_NE, sfinfo.samplerate, sfinfo.channels))
 	{	sf_close (sndfile);
 		sndfile = NULL;
 		return;
--- a/Plugins/Input/wav/wav-sndfile.h	Tue Jan 10 12:22:40 2006 -0800
+++ b/Plugins/Input/wav/wav-sndfile.h	Tue Jan 10 12:47:50 2006 -0800
@@ -25,12 +25,6 @@
 #define BUFFER_SIZE 			8192
 #define	TITLE_LEN			64
 
-#ifdef WORDS_BIGENDIAN
-# define	HOST_SIGNED_SHORT	FMT_S16_BE
-#else
-# define	HOST_SIGNED_SHORT	FMT_S16_LE
-#endif
-
 static	void 	plugin_init (void);
 static	int	is_our_file (char *filename);
 static	void 	play_start (char *filename);