19 lines
2.4 KiB
Plaintext
19 lines
2.4 KiB
Plaintext
{\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\froman Times New Roman;}{\f3\froman Times New Roman;}}
|
||
{\colortbl\red0\green0\blue0;\red0\green0\blue128;}
|
||
\deflang1033\pard\plain\f3\fs36\cf1\b COXSound class\plain\f3\fs36\b
|
||
\par \plain\f3\fs24
|
||
\par \plain\f3\fs20 This sample program shows most of the functionality of the COXSound class. Several WAVE resources and the ability to load WAVE files are included with the sample program. You may also set the async and loop flags used to play sounds. \plain\f3\fs24
|
||
\par
|
||
\par \plain\f3\fs20 Click on a radio button to select how a sound is loaded (from file versus from a resource). Another method allows you to load a wave from a CFile* object, but is not demonstrated in the sample program. If a wave file is selected, the "Open" pushbutton brings up a File Open dialog to select a wave file. Once a valid wave is loaded, the Play button may be pressed to play the sound. If the async checkbox is selected, the wave will be played asynchronously. When a wave is played using the sample program, the "play" pushbutton is disabled until the sound stops playing. For sounds that are playing asynchronously, the "stop" pushbutton may be pressed to stop a wave before completion.\plain\f3\fs24
|
||
\par
|
||
\par \plain\f3\fs20 The COXSound class is an easy way to have an application play WAVE sounds. WAVES can be loaded from WAVE files (*.wav), WAVE resources or streamed in from a CFile object. Once a wave is loaded it may be played either synchronously or asynchronously. In the case of the latter, the sound may be looped.\plain\f3\fs24
|
||
\par Features:
|
||
\par \pard\li720\fi-360{\*\pn\pnlvlblt\pnf1\pnindent360{\pntxtb\'b7}}\plain\f3\fs20 {\pntext\f1\'b7\tab}Can load WAVE sounds from wave files, resources or streamed from CFile objects\plain\f3\fs24
|
||
\par \plain\f3\fs20 {\pntext\f1\'b7\tab}Can play sounds in sync or async mode\plain\f3\fs24
|
||
\par \plain\f3\fs20 {\pntext\f1\'b7\tab}Supports the querying of the current playback position\plain\f3\fs24
|
||
\par \plain\f3\fs20 {\pntext\f1\'b7\tab}Can notify a CWnd object when async playback is complete or when the sound loops\plain\f3\fs24
|
||
\par \plain\f3\fs20 {\pntext\f1\'b7\tab}Provides easy-to-use class for adding wave sound effects to an application\plain\f3\fs24
|
||
\par \plain\f3\fs20 {\pntext\f1\'b7\tab}Uses standard Windows multimedia calls for playing waves\plain\f3\fs24
|
||
\par \pard\plain\f2\fs20
|
||
\par }
|
||
|