Skip to content

Commit

Permalink
3ds: Fix libsndfile build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed Jun 23, 2016
1 parent ada1039 commit b403cf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/decoder_libsndfile.cpp
Expand Up @@ -139,13 +139,13 @@ int LibsndfileDecoder::FillBuffer(uint8_t* buffer, int length) {
break;
case Format::S32:
{
// Uses int_least32_t because the 3ds toolchain typedefs int32_t to long int
// which is an incompatible pointer type
decoded=sf_read_int(soundfile,(int_least32_t*)buffer,length/sizeof(int_least32_t));
// Uses int instead of int32_t because the 3ds toolchain typedefs
// to long int which is an incompatible pointer type
decoded=sf_read_int(soundfile,(int*)buffer,length/sizeof(int));

if(!decoded) finished=true;

decoded*=sizeof(int_least32_t);
decoded*=sizeof(int);
}
break;
default:
Expand Down

0 comments on commit b403cf3

Please sign in to comment.