diff options
| author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-02-24 11:30:16 +0000 |
|---|---|---|
| committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-02-24 11:30:16 +0000 |
| commit | aa58715a54cb62638b263b7942c46e25ec928534 (patch) | |
| tree | 39f213b28d3f8de4460407ec358476a7beed4464 /apps/codecs/aiff.c | |
| parent | 31fb4f6ff65db32a23217c097d4848fd9292973b (diff) | |
| download | rockbox-aa58715a54cb62638b263b7942c46e25ec928534.zip rockbox-aa58715a54cb62638b263b7942c46e25ec928534.tar.gz rockbox-aa58715a54cb62638b263b7942c46e25ec928534.tar.bz2 rockbox-aa58715a54cb62638b263b7942c46e25ec928534.tar.xz | |
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.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c index 4b87038..fbe814a 100644 --- a/apps/codecs/aiff.c +++ b/apps/codecs/aiff.c @@ -21,7 +21,6 @@ ****************************************************************************/ #include "codeclib.h" -#include <inttypes.h> #include "codecs/libpcm/support_formats.h" CODEC_HEADER @@ -50,7 +49,9 @@ static const struct pcm_entry pcm_codecs[] = { #define NUM_FORMATS 6 -static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR; +#define PCM_SAMPLE_SIZE (1024*2) + +static int32_t samples[PCM_SAMPLE_SIZE] IBSS_ATTR; static const struct pcm_codec *get_codec(uint32_t formattag) { @@ -266,8 +267,8 @@ next_track: /* check chunksize */ if ((format.chunksize / format.blockalign) * format.samplesperblock * format.channels - > PCM_CHUNK_SIZE) - format.chunksize = (PCM_CHUNK_SIZE / format.blockalign) * format.blockalign; + > PCM_SAMPLE_SIZE) + format.chunksize = (PCM_SAMPLE_SIZE / format.blockalign) * format.blockalign; if (format.chunksize == 0) { DEBUGF("CODEC_ERROR: chunksize is 0\n"); |