summaryrefslogtreecommitdiff
path: root/apps/plugins/wav2wv.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/wav2wv.c')
-rw-r--r--apps/plugins/wav2wv.c8
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;
97static int wav2wv(const char *infile) 97static 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;