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

Last change on this file since 38 was 14, checked in by umoeller, 25 years ago

Major updates; timers, LVM, miscellaneous.

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