1 |
|
---|
2 | /*
|
---|
3 | *@@sourcefile syssound.h:
|
---|
4 | * header file for syssound.c. See remarks there.
|
---|
5 | *
|
---|
6 | * Note: Version numbering in this file relates to XWorkplace version
|
---|
7 | * numbering.
|
---|
8 | *
|
---|
9 | *@@include #define INCL_WINSHELLDATA
|
---|
10 | *@@include #include <os2.h>
|
---|
11 | *@@include #include "helpers\syssound.h"
|
---|
12 | */
|
---|
13 |
|
---|
14 | /* Copyright (C) 1999-2000 Ulrich Mller.
|
---|
15 | * This file is part of the "XWorkplace helpers" source package.
|
---|
16 | * This is free software; you can redistribute it and/or modify
|
---|
17 | * it under the terms of the GNU General Public License as published
|
---|
18 | * by the Free Software Foundation, in version 2 as it comes in the
|
---|
19 | * "COPYING" file of the XWorkplace main distribution.
|
---|
20 | * This program is distributed in the hope that it will be useful,
|
---|
21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
23 | * GNU General Public License for more details.
|
---|
24 | */
|
---|
25 |
|
---|
26 |
|
---|
27 | #if __cplusplus
|
---|
28 | extern "C" {
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | #ifndef SYSSOUND_HEADER_INCLUDED
|
---|
32 | #define SYSSOUND_HEADER_INCLUDED
|
---|
33 |
|
---|
34 | /********************************************************************
|
---|
35 | *
|
---|
36 | * Declarations
|
---|
37 | *
|
---|
38 | ********************************************************************/
|
---|
39 |
|
---|
40 | /* keys for accessing sounds in MMPM.INI */
|
---|
41 | #define MMINIKEY_SYSSOUNDS "MMPM2_AlarmSounds"
|
---|
42 | #define MMINIKEY_SOUNDSETTINGS "MMPM2_AlarmSoundsData"
|
---|
43 |
|
---|
44 | // system sound indices in MMPM.INI
|
---|
45 | #define MMSOUND_WARNING 0
|
---|
46 | #define MMSOUND_INFORMATION 1
|
---|
47 | #define MMSOUND_LOCKUP 10
|
---|
48 | #define MMSOUND_ALARMCLOCK 11
|
---|
49 | #define MMSOUND_PRINTERROR 12
|
---|
50 | #define MMSOUND_ERROR 2
|
---|
51 | #define MMSOUND_ANIMATEOPEN 3
|
---|
52 | #define MMSOUND_ANIMATECLOSE 4
|
---|
53 | #define MMSOUND_DRAG 5
|
---|
54 | #define MMSOUND_DROP 6
|
---|
55 | #define MMSOUND_SYSTEMSTARTUP 7
|
---|
56 | #define MMSOUND_SHUTDOWN 8
|
---|
57 | #define MMSOUND_SHREDDER 9
|
---|
58 |
|
---|
59 | // sound schemes INI keys in OS2SYS.INI
|
---|
60 | #define MMINIKEY_SOUNDSCHEMES "PM_SOUND_SCHEMES_LIST"
|
---|
61 |
|
---|
62 | /********************************************************************
|
---|
63 | *
|
---|
64 | * Function prototypes
|
---|
65 | *
|
---|
66 | ********************************************************************/
|
---|
67 |
|
---|
68 | ULONG sndParseSoundData(PCSZ pszSoundData,
|
---|
69 | PSZ pszDescr,
|
---|
70 | PSZ pszFile,
|
---|
71 | PULONG pulVolume);
|
---|
72 |
|
---|
73 | VOID sndQueryMmpmIniPath(PSZ pszMMPM);
|
---|
74 |
|
---|
75 | HINI sndOpenMmpmIni(HAB hab);
|
---|
76 |
|
---|
77 | BOOL sndQuerySystemSound(HAB hab,
|
---|
78 | USHORT usIndex,
|
---|
79 | PSZ pszDescr,
|
---|
80 | PSZ pszFile,
|
---|
81 | PULONG pulVolume);
|
---|
82 |
|
---|
83 | BOOL sndWriteSoundData(HINI hiniMMPM,
|
---|
84 | USHORT usIndex,
|
---|
85 | PCSZ pszDescr,
|
---|
86 | PCSZ pszFile,
|
---|
87 | ULONG ulVolume);
|
---|
88 |
|
---|
89 | BOOL sndSetSystemSound(HAB hab,
|
---|
90 | USHORT usIndex,
|
---|
91 | PCSZ pszDescr,
|
---|
92 | PCSZ pszFile,
|
---|
93 | ULONG ulVolume);
|
---|
94 |
|
---|
95 | BOOL sndDoesSchemeExist(PCSZ pszScheme,
|
---|
96 | PSZ *ppszRealScheme);
|
---|
97 |
|
---|
98 | APIRET sndCreateSoundScheme(HINI hiniMMPM,
|
---|
99 | PCSZ pszNewScheme);
|
---|
100 |
|
---|
101 | APIRET sndLoadSoundScheme(HINI hiniMMPM,
|
---|
102 | PCSZ pszScheme);
|
---|
103 |
|
---|
104 | APIRET sndDestroySoundScheme(PCSZ pszScheme);
|
---|
105 |
|
---|
106 | #endif
|
---|
107 |
|
---|
108 | #if __cplusplus
|
---|
109 | }
|
---|
110 | #endif
|
---|
111 |
|
---|