ScummVM API documentation
M4::Sound::Digi Class Reference

#include <digi.h>

Public Member Functions

 Digi (Audio::Mixer *mixer)
 
bool preload (const Common::String &name, bool isFootsteps, int roomNum=-1)
 
void loadFootstepSounds (const char **names)
 
void unload_sounds ()
 
void unload (const Common::String &name)
 
void task ()
 
int32 play (const Common::String &name, uint channel, int32 vol, int32 trigger, int32 room_num=-1)
 
int32 play_loop (const Common::String &name, uint channel, int32 vol, int32 trigger, int32 room_num=-1)
 
void playFootsteps ()
 
void stop (uint channel, bool calledFromUnload=false)
 
void flush_mem ()
 
void read_another_chunk ()
 
bool play_state (int channel) const
 
void change_volume (int channel, int vol)
 
void set_overall_volume (int vol)
 
int get_overall_volume ()
 
int32 ticks_to_play (const char *name, int roomNum=-1)
 
void change_panning (int val1, int val2)
 

Detailed Description

M4 Digital player digivolves to ScummVM-digital player

Member Function Documentation

◆ preload()

bool M4::Sound::Digi::preload ( const Common::String name,
bool  isFootsteps,
int  roomNum = -1 
)

Preload a digi sample into memory buffer for play back later.

◆ loadFootstepSounds()

void M4::Sound::Digi::loadFootstepSounds ( const char **  names)

A room can designate one or more sounds to be randomly played when the player walks around


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