source: trunk/include/helpers/syssound.h@ 55

Last change on this file since 55 was 41, checked in by umoeller, 24 years ago

Updated timers.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
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 "syssound.h"
12 */
13
14/* Copyright (C) 1999-2000 Ulrich M”ller.
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
28extern "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(PSZ pszSoundData,
69 PSZ pszDescr,
70 PSZ pszFile,
71 PULONG pulVolume);
72
73 HINI sndOpenMmpmIni(HAB hab);
74
75 BOOL sndQuerySystemSound(HAB hab,
76 USHORT usIndex,
77 PSZ pszDescr,
78 PSZ pszFile,
79 PULONG pulVolume);
80
81 BOOL sndWriteSoundData(HINI hiniMMPM,
82 USHORT usIndex,
83 PSZ pszDescr,
84 PSZ pszFile,
85 ULONG ulVolume);
86
87 BOOL sndSetSystemSound(HAB hab,
88 USHORT usIndex,
89 PSZ pszDescr,
90 PSZ pszFile,
91 ULONG ulVolume);
92
93 BOOL sndDoesSchemeExist(PSZ pszScheme);
94
95 APIRET sndCreateSoundScheme(HINI hiniMMPM,
96 PSZ pszNewScheme);
97
98 APIRET sndLoadSoundScheme(HINI hiniMMPM,
99 PSZ pszScheme);
100
101 APIRET sndDestroySoundScheme(PSZ pszScheme);
102
103#endif
104
105#if __cplusplus
106}
107#endif
108
Note: See TracBrowser for help on using the repository browser.