only assign ssd->channels once

SVN revision: 38353
This commit is contained in:
Peter Wehrfritz 2008-12-30 14:53:55 +00:00
parent 6e2a59472e
commit 99e1576927
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ SoundSampleGetData(const char *file, SoundSampleData * ssd)
return -1;
frame_count = afGetFrameCount(in_file, AF_DEFAULT_TRACK);
ssd->channels = ssd->channels = afGetChannels(in_file, AF_DEFAULT_TRACK);
ssd->channels = afGetChannels(in_file, AF_DEFAULT_TRACK);
ssd->rate = (unsigned int)(afGetRate(in_file, AF_DEFAULT_TRACK) + .5);
afGetSampleFormat(in_file, AF_DEFAULT_TRACK, &in_format, &in_width);
ssd->bit_per_sample = in_width;