Source release of Wolfenstein 3D Classic Platinum for iOS, 2.1

This commit is contained in:
Travis Bradshaw
2012-01-31 17:08:50 -06:00
parent 16304944b4
commit d7fff51d7d
235 changed files with 64191 additions and 1418 deletions

View File

@@ -96,7 +96,10 @@ PRIVATE void Sound_UploadSound( W8 *data, int sample_size, int channels, sfx_t *
// Upload the sound
pfalGenBuffers( 1, &sfx->bufferNum );
AL_CheckErrors();
pfalBufferData( sfx->bufferNum, sfx->format, data, size, sfx->rate );
AL_CheckErrors();
}
else
{
@@ -121,7 +124,10 @@ PRIVATE void Sound_UploadSound( W8 *data, int sample_size, int channels, sfx_t *
// Upload the sound
pfalGenBuffers( 1, &sfx->bufferNum );
AL_CheckErrors();
pfalBufferData( sfx->bufferNum, sfx->format, d, size * 2, sfx->rate );
AL_CheckErrors();
free( d );
}
}
@@ -163,7 +169,7 @@ PUBLIC _boolean Sound_LoadSound( sfx_t *sfx )
if ( ! LoadOggInfo( name, &data, &info ) ) {
sfx->defaulted = true;
Com_Printf( "Could not find sound (%s)\n", name );
//Com_Printf( "Could not find sound (%s)\n", name );
return false;
}