Skip to content

Commit

Permalink
Tweak CLI shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
bnnm committed Feb 17, 2019
1 parent d938f60 commit ac4aae7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/vgmstream_cli.c
Expand Up @@ -468,11 +468,11 @@ int main(int argc, char ** argv) {
/* slap on a .wav header */
{
uint8_t wav_buf[0x100];
int channels = (cfg.only_stereo != -1) ? 2 : channels;
int channels_write = (cfg.only_stereo != -1) ? 2 : channels;
size_t bytes_done;

bytes_done = make_wav_header(wav_buf,0x100,
len_samples, vgmstream->sample_rate, channels,
len_samples, vgmstream->sample_rate, channels_write,
cfg.write_lwav, cfg.lwav_loop_start, cfg.lwav_loop_end);

fwrite(wav_buf,sizeof(uint8_t),bytes_done,outfile);
Expand Down Expand Up @@ -541,11 +541,11 @@ int main(int argc, char ** argv) {
/* slap on a .wav header */
{
uint8_t wav_buf[0x100];
int channels = (cfg.only_stereo != -1) ? 2 : channels;
int channels_write = (cfg.only_stereo != -1) ? 2 : channels;
size_t bytes_done;

bytes_done = make_wav_header(wav_buf,0x100,
len_samples, vgmstream->sample_rate, channels,
len_samples, vgmstream->sample_rate, channels_write,
cfg.write_lwav, cfg.lwav_loop_start, cfg.lwav_loop_end);

fwrite(wav_buf,sizeof(uint8_t),bytes_done,outfile);
Expand Down

0 comments on commit ac4aae7

Please sign in to comment.