|
Wing Commander II
Reconstructed Win32 source (1996)
|
Speech packets and speech cache. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | SPEECH_C |
Functions | |
| void | SoundBlasterOut (unsigned short port, unsigned char value) |
| unsigned char | SoundBlasterIn (unsigned short port) |
| void | SoundBlasterWaitWrite (void) |
| void * | LoadSpeechPacketIntoBuffer (char *fileName, short section, void *destination) |
| void | PlaySpeechPacketBuffer (void *packet, unsigned short packetSize, int interrupt) |
| void | LoadAndPlaySpeechPacket (char *fileName, short section) |
| void | SoundBlasterEndOfInterrupt (void) |
| void | StopDigiPlayback (void) |
| void | SoundBlasterDspInterrupt (void) |
| short | InitializeSoundBlaster (short port, short irq) |
| void | ShutdownSoundBlaster (void) |
Variables | |
| const int | g_nDigiSampleBytes = 0xfffa |
| const unsigned short | g_wDmaHalfBytes = 0x0fa0 |
| unsigned short | g_wSoundBlasterPort = 0x220 |
| unsigned short | g_wSoundBlasterIrq = 7 |
| unsigned short | g_wDigiPlaying = 0 |
| unsigned short | g_wDmaAddressA = 0 |
| unsigned short | g_wDmaAddressB = 0 |
| unsigned short | g_wDmaCountA = 0 |
| unsigned short | g_wDmaCountB = 0 |
| int | g_nDmaHalfSelect = 0 |
| short | g_nDigiLastBlock = 0 |
| void * | g_4_pDmaBufferPointer |
| unsigned short | g_2_wDigiPosition |
| void * | g_pDigiSample |
| unsigned char | g_1_ucDmaPageValue |
Speech packets and speech cache.
Definition in file speech.c.
| short InitializeSoundBlaster | ( | short | port, |
| short | irq ) |
Definition at line 205 of file speech.c.
References AllocateTaggedMemory(), g_1_ucDmaPageValue, g_4_pDmaBufferPointer, g_nDigiSampleBytes, g_pDigiSample, g_wDmaAddressA, g_wDmaAddressB, g_wDmaHalfBytes, g_wSoundBlasterIrq, g_wSoundBlasterPort, IdentityDword(), InitializeSoundBlaster(), PumpWindowMessages(), ReleasePacketHandle(), and ReportFatalErrorCode().
Referenced by DrawTextAt(), InitializeSoundBlaster(), and LoadOriginFxDrivers().
| void LoadAndPlaySpeechPacket | ( | char * | fileName, |
| short | section ) |
Definition at line 103 of file speech.c.
References g_pDigiSample, GetNamedPacketSize(), LoadAndPlaySpeechPacket(), LoadSpeechPacketIntoBuffer(), and PlaySpeechPacketBuffer().
Referenced by DrawTextAt(), LoadAndPlaySpeechPacket(), real_vid_transmit(), and RunCutsceneScript().
Definition at line 45 of file speech.c.
References AllocateTaggedMemory(), g_nDigiSampleBytes, LoadPacketIntoBuffer(), and LoadSpeechPacketIntoBuffer().
Referenced by DrawTextAt(), LoadAndPlaySpeechPacket(), LoadCutsceneSpeechSlot(), and LoadSpeechPacketIntoBuffer().
Definition at line 67 of file speech.c.
References g_2_wDigiPosition, g_4_pDigiData, g_4_pDmaBufferPointer, g_nDigiLastBlock, g_nDigiSampleBytes, g_nDmaHalfSelect, g_wDigiLeft, g_wDigiPlaying, g_wDmaCountA, g_wDmaCountB, g_wDmaHalfBytes, IdentityDword(), PlayRawSpeechBuffer(), and PlaySpeechPacketBuffer().
Referenced by DrawTextAt(), LoadAndPlaySpeechPacket(), PlaySpeechPacketBuffer(), and RunCutsceneScript().
Definition at line 269 of file speech.c.
References FreePacketAndClear(), g_4_pDmaBufferPointer, g_pDigiSample, g_wDigiPlaying, and ShutdownSoundBlaster().
Referenced by DrawTextAt(), LogMemoryUsage(), and ShutdownSoundBlaster().
Definition at line 139 of file speech.c.
References EmsSaveMapping(), g_1_ucDmaPageValue, g_2_wDigiPosition, g_4_pDigiData, g_4_pDmaBufferPointer, g_nDigiLastBlock, g_nDmaHalfSelect, g_wDigiLeft, g_wDigiPlaying, g_wDmaAddressA, g_wDmaAddressB, g_wDmaCountA, g_wDmaCountB, g_wDmaHalfBytes, g_wSoundBlasterPort, IdentityDword(), SoundBlasterDspInterrupt(), SoundBlasterEndOfInterrupt(), SoundBlasterIn(), SoundBlasterOut(), SoundBlasterWaitWrite(), and StopDigiPlayback().
Referenced by DrawTextAt(), and SoundBlasterDspInterrupt().
Definition at line 119 of file speech.c.
References EmsRestoreMapping(), g_105_nEmsIsrBusyValue, SoundBlasterEndOfInterrupt(), and SoundBlasterOut().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and SoundBlasterEndOfInterrupt().
| unsigned char SoundBlasterIn | ( | unsigned short | port | ) |
Definition at line 32 of file speech.c.
References SoundBlasterIn().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and SoundBlasterIn().
| void SoundBlasterOut | ( | unsigned short | port, |
| unsigned char | value ) |
Definition at line 25 of file speech.c.
References SoundBlasterOut().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), SoundBlasterEndOfInterrupt(), and SoundBlasterOut().
Definition at line 39 of file speech.c.
References SoundBlasterWaitWrite().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and SoundBlasterWaitWrite().
Definition at line 129 of file speech.c.
References g_wDigiPlaying, and StopDigiPlayback().
Referenced by DrawTextAt(), SoundBlasterDspInterrupt(), and StopDigiPlayback().
| unsigned char g_1_ucDmaPageValue |
Definition at line 281 of file speech.c.
Referenced by InitializeSoundBlaster(), and SoundBlasterDspInterrupt().
| unsigned short g_2_wDigiPosition |
Definition at line 279 of file speech.c.
Referenced by PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().
| void* g_4_pDmaBufferPointer |
Definition at line 278 of file speech.c.
Referenced by InitializeSoundBlaster(), PlaySpeechPacketBuffer(), ShutdownSoundBlaster(), and SoundBlasterDspInterrupt().
| short g_nDigiLastBlock = 0 |
Definition at line 20 of file speech.c.
Referenced by PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().
| const int g_nDigiSampleBytes = 0xfffa |
Definition at line 9 of file speech.c.
Referenced by InitializeSoundBlaster(), LoadSpeechPacketIntoBuffer(), PlaySpeechPacketBuffer(), and real_vid_transmit().
| int g_nDmaHalfSelect = 0 |
Definition at line 19 of file speech.c.
Referenced by PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().
| void* g_pDigiSample |
Definition at line 280 of file speech.c.
Referenced by InitializeSoundBlaster(), LoadAndPlaySpeechPacket(), and ShutdownSoundBlaster().
| unsigned short g_wDigiPlaying = 0 |
Definition at line 14 of file speech.c.
Referenced by AnimateCutsceneSpeakerMouth(), LoadCutsceneSpeechSlot(), PlaySpeechPacketBuffer(), RunCutsceneScript(), ShutdownSoundBlaster(), SoundBlasterDspInterrupt(), and StopDigiPlayback().
| unsigned short g_wDmaAddressA = 0 |
Definition at line 15 of file speech.c.
Referenced by InitializeSoundBlaster(), and SoundBlasterDspInterrupt().
| unsigned short g_wDmaAddressB = 0 |
Definition at line 16 of file speech.c.
Referenced by InitializeSoundBlaster(), and SoundBlasterDspInterrupt().
| unsigned short g_wDmaCountA = 0 |
Definition at line 17 of file speech.c.
Referenced by PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().
| unsigned short g_wDmaCountB = 0 |
Definition at line 18 of file speech.c.
Referenced by PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().
| const unsigned short g_wDmaHalfBytes = 0x0fa0 |
Definition at line 10 of file speech.c.
Referenced by InitializeSoundBlaster(), PlaySpeechPacketBuffer(), and SoundBlasterDspInterrupt().
| unsigned short g_wSoundBlasterIrq = 7 |
Definition at line 13 of file speech.c.
Referenced by InitializeSoundBlaster().
| unsigned short g_wSoundBlasterPort = 0x220 |
Definition at line 12 of file speech.c.
Referenced by InitializeSoundBlaster(), and SoundBlasterDspInterrupt().