summaryrefslogtreecommitdiff
path: root/apps/codecs/aiff.c
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-02-24 11:30:16 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-02-24 11:30:16 +0000
commitaa58715a54cb62638b263b7942c46e25ec928534 (patch)
tree39f213b28d3f8de4460407ec358476a7beed4464 /apps/codecs/aiff.c
parent31fb4f6ff65db32a23217c097d4848fd9292973b (diff)
downloadrockbox-aa58715a54cb62638b263b7942c46e25ec928534.tar.gz
rockbox-aa58715a54cb62638b263b7942c46e25ec928534.zip
libpcm: deletes PCM_CHUNK_SIZE.
aiif.c/wav.c: deletes #include <inttypes.h>. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24877 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/aiff.c')
-rw-r--r--apps/codecs/aiff.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c
index 4b870386c1..fbe814a645 100644
--- a/apps/codecs/aiff.c
+++ b/apps/codecs/aiff.c
@@ -21,7 +21,6 @@
21 ****************************************************************************/ 21 ****************************************************************************/
22 22
23#include "codeclib.h" 23#include "codeclib.h"
24#include <inttypes.h>
25#include "codecs/libpcm/support_formats.h" 24#include "codecs/libpcm/support_formats.h"
26 25
27CODEC_HEADER 26CODEC_HEADER
@@ -50,7 +49,9 @@ static const struct pcm_entry pcm_codecs[] = {
50 49
51#define NUM_FORMATS 6 50#define NUM_FORMATS 6
52 51
53static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR; 52#define PCM_SAMPLE_SIZE (1024*2)
53
54static int32_t samples[PCM_SAMPLE_SIZE] IBSS_ATTR;
54 55
55static const struct pcm_codec *get_codec(uint32_t formattag) 56static const struct pcm_codec *get_codec(uint32_t formattag)
56{ 57{
@@ -266,8 +267,8 @@ next_track:
266 267
267 /* check chunksize */ 268 /* check chunksize */
268 if ((format.chunksize / format.blockalign) * format.samplesperblock * format.channels 269 if ((format.chunksize / format.blockalign) * format.samplesperblock * format.channels
269 > PCM_CHUNK_SIZE) 270 > PCM_SAMPLE_SIZE)
270 format.chunksize = (PCM_CHUNK_SIZE / format.blockalign) * format.blockalign; 271 format.chunksize = (PCM_SAMPLE_SIZE / format.blockalign) * format.blockalign;
271 if (format.chunksize == 0) 272 if (format.chunksize == 0)
272 { 273 {
273 DEBUGF("CODEC_ERROR: chunksize is 0\n"); 274 DEBUGF("CODEC_ERROR: chunksize is 0\n");