Mercurial > mm7
diff AudioPlayer.cpp @ 4:8e33efd39355
15.01.13(work)
author | Ritor1 |
---|---|
date | Tue, 15 Jan 2013 17:44:23 +0600 |
parents | 9c0607679772 |
children | 66319a734368 |
line wrap: on
line diff
--- a/AudioPlayer.cpp Sun Jan 13 17:41:47 2013 +0600 +++ b/AudioPlayer.cpp Tue Jan 15 17:44:23 2013 +0600 @@ -2091,73 +2091,73 @@ // 4ABC9B: inconsistent function type and number of purged bytes //----- (004ABD5B) -------------------------------------------------------- -void AudioPlayer::Release() +void AudioPlayer::Release() //Освободить { - AudioPlayer *v1; // esi@1 + AudioPlayer *pAudioPlayer; // esi@1 int v2; // edi@1 - MixerChannel *v3; // ebx@3 + MixerChannel *pMixerChannel; // ebx@3 char v4; // dl@5 int v5; // ebx@6 - AudioPlayer_3DSample *v6; // edi@7 + AudioPlayer_3DSample *p3DSample; // edi@7 int v7; // edx@14 int v8; // ecx@14 void *v9; // ecx@15 - v1 = this; + pAudioPlayer = this; v2 = 0; if ( this->bPlayerReady ) { CloseHandle(pVideoPlayer->hMagicVid); CloseHandle(pVideoPlayer->hMightVid); - v1->StopChannels(-1, -1); - if ( v1->uMixerChannels > 0 ) + pAudioPlayer->StopChannels(-1, -1); + if ( pAudioPlayer->uMixerChannels > 0 ) { - v3 = v1->pMixerChannels; + pMixerChannel = pAudioPlayer->pMixerChannels; do { - AIL_release_sample_handle(v3->hSample); + AIL_release_sample_handle(pMixerChannel->hSample); ++v2; - ++v3; + ++pMixerChannel; } - while ( v2 < v1->uMixerChannels ); + while ( v2 < pAudioPlayer->uMixerChannels ); } if ( ReadWindowsRegistryInt("Disable3DSound", 0) != 1 ) { v5 = 0; - v1->CheckA3DSupport(v4); - if ( v1->uNum3DSamples > 0 ) + pAudioPlayer->CheckA3DSupport(v4); + if ( pAudioPlayer->uNum3DSamples > 0 ) { - v6 = v1->p3DSamples; + p3DSample = pAudioPlayer->p3DSamples; do { - if ( v6->hSample ) + if ( p3DSample->hSample ) { - AIL_release_3D_sample_handle(v6->hSample); - v6->hSample = 0; + AIL_release_3D_sample_handle(p3DSample->hSample); + p3DSample->hSample = 0; } ++v5; - ++v6; + ++p3DSample; } - while ( v5 < v1->uNum3DSamples ); + while ( v5 < pAudioPlayer->uNum3DSamples ); } - if ( v1->h3DSoundProvider ) + if ( pAudioPlayer->h3DSoundProvider ) { - AIL_close_3D_provider(v1->h3DSoundProvider); - v1->h3DSoundProvider = 0; + AIL_close_3D_provider(pAudioPlayer->h3DSoundProvider); + pAudioPlayer->h3DSoundProvider = 0; } } - if ( v1->hAILRedbook ) + if ( pAudioPlayer->hAILRedbook ) { - AIL_redbook_stop(v1->hAILRedbook); + AIL_redbook_stop(pAudioPlayer->hAILRedbook); AIL_redbook_set_volume((HREDBOOK)v8, v7); - AIL_redbook_close(v1->hAILRedbook); + AIL_redbook_close(pAudioPlayer->hAILRedbook); } AIL_shutdown(); pSoundList->Release(); - v9 = *(void **)&v1->field_C78[0]; + v9 = *(void **)&pAudioPlayer->field_C78[0]; if ( v9 ) ReleaseSoundData(v9); - CloseHandle(v1->hAudioSnd); + CloseHandle(pAudioPlayer->hAudioSnd); } }