mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
New Feature: mp3 audio format is now supported in addition to .wav and .ogg
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8579 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -349,10 +349,14 @@ UINT32 PlayVoice( void )
|
||||
UINT16 iSlot = gIMPVoice[iCurrentVoice].voiceset;
|
||||
Assert( (iSlot >= 0) && (iSlot <= 999) );
|
||||
|
||||
sprintf( zFileName, "Speech\\%03d_001.ogg", iSlot );
|
||||
sprintf( zFileName, "Speech\\%03d_001.mp3", iSlot );
|
||||
if ( !FileExists( zFileName ) )
|
||||
{
|
||||
sprintf( zFileName, "Speech\\%03d_001.wav", iSlot );
|
||||
sprintf( zFileName, "Speech\\%03d_001.ogg", iSlot );
|
||||
if ( !FileExists( zFileName ) )
|
||||
{
|
||||
sprintf( zFileName, "Speech\\%03d_001.wav", iSlot );
|
||||
}
|
||||
}
|
||||
|
||||
return(PlayJA2SampleFromFile( zFileName, RATE_11025, MIDVOLUME, 1, MIDDLEPAN ));
|
||||
|
||||
Reference in New Issue
Block a user