|
My Project
|
simple midi audio More...
#include <MidiMsg.h>
Public Member Functions | |
| int | PlayMidiMsg (DWORD dwMsg) |
| void | SafeRelease () |
| bool | CheckLoad () |
| DWORD | GetVolume () const |
| New volume setting. More... | |
| void | SetVolume (DWORD val) |
| void | SetVolumeFloat (float val) |
| set both left/right volume More... | |
| bool | IsLoaded () const |
| only load when first note is played. More... | |
Static Public Member Functions | |
| static CMidiMsg & | GetSingleton () |
| static void | PlayMidiFile (const std::string &filename, int nLoopCount=0) |
simple midi audio
| DWORD ParaEngine::CMidiMsg::GetVolume | ( | ) | const |
New volume setting.
The low-order word contains the left-channel volume setting, and the high-order word contains the right-channel setting. A value of 0xFFFF represents full volume, and a value of 0x0000 is silence.
| bool ParaEngine::CMidiMsg::IsLoaded | ( | ) | const |
only load when first note is played.
| void ParaEngine::CMidiMsg::SetVolumeFloat | ( | float | val | ) |
set both left/right volume
| val | 0-1. where 1 is biggest one, 0 is mute. |
1.8.12