aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-04 17:08:57 +0100
committerMax Kellermann <max@duempel.org>2008-11-04 17:08:57 +0100
commitc1dfa52cbf4e966f11cb8685c1d230f8dbee1fe4 (patch)
treecdda3939e7a3d4e7203b957888786eb41cdd1ae5 /src
parentfef14683aec32c9af22512f5890f2938ad4b5099 (diff)
downloadmpd-c1dfa52cbf4e966f11cb8685c1d230f8dbee1fe4.tar.gz
mpd-c1dfa52cbf4e966f11cb8685c1d230f8dbee1fe4.tar.xz
mpd-c1dfa52cbf4e966f11cb8685c1d230f8dbee1fe4.zip
wavpack: fix indent
Fixed the indent of the switch statement in format_samples_int().
Diffstat (limited to '')
-rw-r--r--src/decoder/wavpack_plugin.c94
1 files changed, 47 insertions, 47 deletions
diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c
index 14ccb8630..2861cde46 100644
--- a/src/decoder/wavpack_plugin.c
+++ b/src/decoder/wavpack_plugin.c
@@ -1,9 +1,9 @@
/* the Music Player Daemon (MPD)
* Copyright (C) 2003-2007 by Warren Dukes (warren.dukes@gmail.com)
* This project's homepage is: http://www.musicpd.org
- *
+ *
* WavPack support added by Laszlo Ashin <kodest@gmail.com>
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@@ -34,18 +34,18 @@ static struct {
const char *name;
int type;
} tagtypes[] = {
- { "artist", TAG_ITEM_ARTIST },
- { "album", TAG_ITEM_ALBUM },
- { "title", TAG_ITEM_TITLE },
- { "track", TAG_ITEM_TRACK },
- { "name", TAG_ITEM_NAME },
- { "genre", TAG_ITEM_GENRE },
- { "date", TAG_ITEM_DATE },
- { "composer", TAG_ITEM_COMPOSER },
- { "performer", TAG_ITEM_PERFORMER },
- { "comment", TAG_ITEM_COMMENT },
- { "disc", TAG_ITEM_DISC },
- { NULL, 0 }
+ { "artist", TAG_ITEM_ARTIST },
+ { "album", TAG_ITEM_ALBUM },
+ { "title", TAG_ITEM_TITLE },
+ { "track", TAG_ITEM_TRACK },
+ { "name", TAG_ITEM_NAME },
+ { "genre", TAG_ITEM_GENRE },
+ { "date", TAG_ITEM_DATE },
+ { "composer", TAG_ITEM_COMPOSER },
+ { "performer", TAG_ITEM_PERFORMER },
+ { "comment", TAG_ITEM_COMMENT },
+ { "disc", TAG_ITEM_DISC },
+ { NULL, 0 }
};
/*
@@ -60,49 +60,49 @@ static void format_samples_int(int Bps, void *buffer, uint32_t samcnt)
int32_t *src = (int32_t *)buffer;
switch (Bps) {
- case 1:
- while (samcnt--)
- *dst++ = *src++;
- break;
- case 2:
- while (samcnt--) {
- temp = *src++;
+ case 1:
+ while (samcnt--)
+ *dst++ = *src++;
+ break;
+ case 2:
+ while (samcnt--) {
+ temp = *src++;
#ifdef WORDS_BIGENDIAN
- *dst++ = (uchar)(temp >> 8);
- *dst++ = (uchar)(temp);
+ *dst++ = (uchar)(temp >> 8);
+ *dst++ = (uchar)(temp);
#else
- *dst++ = (uchar)(temp);
- *dst++ = (uchar)(temp >> 8);
+ *dst++ = (uchar)(temp);
+ *dst++ = (uchar)(temp >> 8);
#endif
- }
- break;
- case 3:
- /* downscale to 16 bits */
- while (samcnt--) {
- temp = *src++;
+ }
+ break;
+ case 3:
+ /* downscale to 16 bits */
+ while (samcnt--) {
+ temp = *src++;
#ifdef WORDS_BIGENDIAN
- *dst++ = (uchar)(temp >> 16);
- *dst++ = (uchar)(temp >> 8);
+ *dst++ = (uchar)(temp >> 16);
+ *dst++ = (uchar)(temp >> 8);
#else
- *dst++ = (uchar)(temp >> 8);
- *dst++ = (uchar)(temp >> 16);
+ *dst++ = (uchar)(temp >> 8);
+ *dst++ = (uchar)(temp >> 16);
#endif
- }
- break;
- case 4:
- /* downscale to 16 bits */
- while (samcnt--) {
- temp = *src++;
+ }
+ break;
+ case 4:
+ /* downscale to 16 bits */
+ while (samcnt--) {
+ temp = *src++;
#ifdef WORDS_BIGENDIAN
- *dst++ = (uchar)(temp >> 24);
- *dst++ = (uchar)(temp >> 16);
+ *dst++ = (uchar)(temp >> 24);
+ *dst++ = (uchar)(temp >> 16);
#else
- *dst++ = (uchar)(temp >> 16);
- *dst++ = (uchar)(temp >> 24);
+ *dst++ = (uchar)(temp >> 16);
+ *dst++ = (uchar)(temp >> 24);
#endif
- }
- break;
+ }
+ break;
}
}