diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
commit | 50a6ca39ad4ed01922aa4f755f0ca579788226cf (patch) | |
tree | c7881b015b220558167310345b162324c96be15a /apps/plugins/wav2wv.c | |
parent | adb506df14aded06ed6e9ebf8540e6fd383ffd6a (diff) | |
download | rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.tar.gz rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.zip |
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/wav2wv.c')
-rw-r--r-- | apps/plugins/wav2wv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/wav2wv.c b/apps/plugins/wav2wv.c index 03900884f9..3211203db9 100644 --- a/apps/plugins/wav2wv.c +++ b/apps/plugins/wav2wv.c | |||
@@ -97,8 +97,8 @@ static int32_t temp_buffer [TEMP_SAMPLES] IDATA_ATTR; | |||
97 | static int wav2wv(const char *infile) | 97 | static int wav2wv(const char *infile) |
98 | { | 98 | { |
99 | int in_fd, out_fd, num_chans, error = false, last_buttons; | 99 | int in_fd, out_fd, num_chans, error = false, last_buttons; |
100 | unsigned int32_t total_bytes_read = 0, total_bytes_written = 0; | 100 | uint32_t total_bytes_read = 0, total_bytes_written = 0; |
101 | unsigned int32_t total_samples, samples_remaining; | 101 | uint32_t total_samples, samples_remaining; |
102 | int32_t *input_buffer = (int32_t *) audiobuf; | 102 | int32_t *input_buffer = (int32_t *) audiobuf; |
103 | unsigned char *output_buffer = (unsigned char *)(audiobuf + 0x100000); | 103 | unsigned char *output_buffer = (unsigned char *)(audiobuf + 0x100000); |
104 | char outfile[MAX_PATH]; | 104 | char outfile[MAX_PATH]; |
@@ -180,7 +180,7 @@ static int wav2wv(const char *infile) | |||
180 | wvupdate (start_tick, native_header.SampleRate, total_samples, 0, 0, 0); | 180 | wvupdate (start_tick, native_header.SampleRate, total_samples, 0, 0, 0); |
181 | 181 | ||
182 | for (samples_remaining = total_samples; samples_remaining;) { | 182 | for (samples_remaining = total_samples; samples_remaining;) { |
183 | unsigned int32_t samples_count, samples_to_pack, bytes_count; | 183 | uint32_t samples_count, samples_to_pack, bytes_count; |
184 | int cnt, buttons; | 184 | int cnt, buttons; |
185 | int32_t value, *lp; | 185 | int32_t value, *lp; |
186 | signed char *cp; | 186 | signed char *cp; |
@@ -204,7 +204,7 @@ static int wav2wv(const char *infile) | |||
204 | cp = (signed char *) input_buffer; | 204 | cp = (signed char *) input_buffer; |
205 | 205 | ||
206 | while (samples_to_pack) { | 206 | while (samples_to_pack) { |
207 | unsigned int32_t samples_this_pass = TEMP_SAMPLES / num_chans; | 207 | uint32_t samples_this_pass = TEMP_SAMPLES / num_chans; |
208 | 208 | ||
209 | if (samples_this_pass > samples_to_pack) | 209 | if (samples_this_pass > samples_to_pack) |
210 | samples_this_pass = samples_to_pack; | 210 | samples_this_pass = samples_to_pack; |