@@ -74,10 +74,10 @@ static void AILCALLBACK setSampleCompleted( HSAMPLE sampleCompleted );
7474static void AILCALLBACK set3DSampleCompleted ( H3DSAMPLE sample3DCompleted );
7575static void AILCALLBACK setStreamCompleted ( HSTREAM streamCompleted );
7676
77- static U32 AILCALLBACK streamingFileOpen (char const *fileName, U32 *file_handle);
78- static void AILCALLBACK streamingFileClose (U32 fileHandle);
79- static S32 AILCALLBACK streamingFileSeek (U32 fileHandle, S32 offset, U32 type);
80- static U32 AILCALLBACK streamingFileRead (U32 fileHandle, void *buffer, U32 bytes);
77+ static U32 AILCALLBACK streamingFileOpen (char const *fileName, void * *file_handle);
78+ static void AILCALLBACK streamingFileClose (void * fileHandle);
79+ static S32 AILCALLBACK streamingFileSeek (void * fileHandle, S32 offset, U32 type);
80+ static U32 AILCALLBACK streamingFileRead (void * fileHandle, void *buffer, U32 bytes);
8181
8282// -------------------------------------------------------------------------------------------------
8383MilesAudioManager::MilesAudioManager () :
@@ -235,7 +235,7 @@ void MilesAudioManager::audioDebugDisplay(DebugDisplayInterface *dd, void *, FIL
235235 continue ;
236236 }
237237
238- playingArray[AIL_sample_user_data (playing->m_sample , 0 )] = playing;
238+ playingArray[( int ) AIL_sample_user_data (playing->m_sample , 0 )] = playing;
239239 }
240240
241241 for (Int i = 1 ; i <= maxChannels && i <= channelCount; ++i) {
@@ -296,7 +296,7 @@ void MilesAudioManager::audioDebugDisplay(DebugDisplayInterface *dd, void *, FIL
296296 continue ;
297297 }
298298
299- playingArray[AIL_3D_user_data (playing->m_3DSample , 0 )] = playing;
299+ playingArray[( int ) AIL_3D_user_data (playing->m_3DSample , 0 )] = playing;
300300 }
301301
302302 for (Int i = 1 ; i <= maxChannels && i <= channelCount; ++i)
@@ -2912,7 +2912,7 @@ void MilesAudioManager::initSamplePools( void )
29122912 DEBUG_ASSERTCRASH (sample, (" Couldn't get %d 2D samples" , i + 1 ));
29132913 if (sample) {
29142914 AIL_init_sample (sample);
2915- AIL_set_sample_user_data (sample, 0 , i + 1 );
2915+ AIL_set_sample_user_data (sample, 0 , ( void *)( i + 1 ) );
29162916 m_availableSamples.push_back (sample);
29172917 ++m_num2DSamples;
29182918 }
@@ -2922,7 +2922,7 @@ void MilesAudioManager::initSamplePools( void )
29222922 H3DSAMPLE sample = AIL_allocate_3D_sample_handle (m_provider3D[m_selectedProvider].id );
29232923 DEBUG_ASSERTCRASH (sample, (" Couldn't get %d 3D samples" , i + 1 ));
29242924 if (sample) {
2925- AIL_set_3D_user_data (sample, 0 , i + 1 );
2925+ AIL_set_3D_user_data (sample, 0 , ( void *)( i + 1 ) );
29262926 m_available3DSamples.push_back (sample);
29272927 ++m_num3DSamples;
29282928 }
@@ -3058,32 +3058,32 @@ void AILCALLBACK setStreamCompleted( HSTREAM streamCompleted )
30583058}
30593059
30603060// -------------------------------------------------------------------------------------------------
3061- U32 AILCALLBACK streamingFileOpen (char const *fileName, U32 *file_handle)
3061+ U32 AILCALLBACK streamingFileOpen (char const *fileName, void * *file_handle)
30623062{
30633063#if defined(RTS_DEBUG)
30643064 if (sizeof (U32) != sizeof (File*)) {
30653065 RELEASE_CRASH ((" streamingFileOpen - This function requires work in order to compile on non 32-bit platforms." ));
30663066 }
30673067#endif
30683068
3069- (*file_handle) = (U32 ) TheFileSystem->openFile (fileName, File::READ | File::STREAMING);
3069+ (*file_handle) = (void * ) TheFileSystem->openFile (fileName, File::READ | File::STREAMING);
30703070 return ((*file_handle) != 0 );
30713071}
30723072
30733073// -------------------------------------------------------------------------------------------------
3074- void AILCALLBACK streamingFileClose (U32 fileHandle)
3074+ void AILCALLBACK streamingFileClose (void * fileHandle)
30753075{
30763076 ((File*) fileHandle)->close ();
30773077}
30783078
30793079// -------------------------------------------------------------------------------------------------
3080- S32 AILCALLBACK streamingFileSeek (U32 fileHandle, S32 offset, U32 type)
3080+ S32 AILCALLBACK streamingFileSeek (void * fileHandle, S32 offset, U32 type)
30813081{
30823082 return ((File*) fileHandle)->seek (offset, (File::seekMode) type);
30833083}
30843084
30853085// -------------------------------------------------------------------------------------------------
3086- U32 AILCALLBACK streamingFileRead (U32 file_handle, void *buffer, U32 bytes)
3086+ U32 AILCALLBACK streamingFileRead (void * file_handle, void *buffer, U32 bytes)
30873087{
30883088 return ((File*) file_handle)->read (buffer, bytes);
30893089}
0 commit comments