| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/main/voice.h $ |
| 21 | * $Revision: 6 $ |
| 22 | * $Date: 6/19/98 6:04p $ |
| 23 | * $Author: Jeff $ |
| 24 | * |
| 25 | * header file for voice system |
| 26 | * |
| 27 | * $Log: /DescentIII/main/voice.h $ |
| 28 | * |
| 29 | * 6 6/19/98 6:04p Jeff |
| 30 | * added voice queue |
| 31 | * |
| 32 | * 5 6/19/98 11:18a Jeff |
| 33 | * removed useless valid flag |
| 34 | * |
| 35 | * 4 6/18/98 5:18p Jeff |
| 36 | * Use new streamaudio system |
| 37 | * |
| 38 | * 3 6/17/98 8:08p Jeff |
| 39 | * removed DoVoiceFrame |
| 40 | * |
| 41 | * 2 6/08/98 3:55p Jeff |
| 42 | * rough initial creation |
| 43 | * |
| 44 | * $NoKeywords: $ |
| 45 | */ |
| 46 | |
| 47 | #ifndef __VOICE_H__ |
| 48 | #define __VOICE_H__ |
| 49 | |
| 50 | // voice flags |
| 51 | #define VF_COMPRESSED 0x00000001 // If bit is set then we are using compressed audio stream |
| 52 | #define VF_STEREO 0x00000002 // In Stereo |
| 53 | #define VF_16BIT 0x00000004 |
| 54 | #define VF_8BIT 0x00000008 |
| 55 | #define VF_INTERUPT 0x00000010 // It will interupt whatever voice is playing and play this |
| 56 | #define VF_POWERUP 0x00000020 // This voice is a powerup voice |
| 57 | #define VF_FORCE 0x00000040 // Forces the voice to play, even if turned off |
| 58 | #define VF_PLAYTABLE 0x00000100 // The filename parameter is actually the name of a sound from the sound table |
| 59 | |
| 60 | bool InitVoices(void); |
| 61 | void CloseVoices(void); |
| 62 | void PlayVoice(char *filename, int flags); |
| 63 | void StopVoice(void); |
| 64 | void UpdateVoices(void); |
| 65 | |
| 66 | extern bool PlayPowerupVoice; |
| 67 | extern bool PlayVoices; |
| 68 | |
| 69 | #endif |