My Project
Public Member Functions | Static Public Member Functions | List of all members
ParaEngine::CMidiMsg Class Reference

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 CMidiMsgGetSingleton ()
 
static void PlayMidiFile (const std::string &filename, int nLoopCount=0)
 

Detailed Description

simple midi audio

Member Function Documentation

§ GetVolume()

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.

§ IsLoaded()

bool ParaEngine::CMidiMsg::IsLoaded ( ) const

only load when first note is played.

§ SetVolumeFloat()

void ParaEngine::CMidiMsg::SetVolumeFloat ( float  val)

set both left/right volume

Parameters
val0-1. where 1 is biggest one, 0 is mute.

The documentation for this class was generated from the following files: