22#ifndef SOUND_MANAGER_H
23#define SOUND_MANAGER_H
25#include "audio/mixer.h"
26#include "common/hashmap.h"
27#include "common/list.h"
28#include "common/scummsys.h"
29#include "common/str.h"
32class SeekableReadStream;
52 Sound(
int id_,
const Common::String &process_,
const Common::String &res,
const Common::String &filename_,
const Common::String &var,
int volume_,
int pan_,
int group_ = 0) : id(id_), process(process_), resource(res), filename(filename_), phaseVar(var), handle(), volume(volume_), pan(pan_), group(group_), paused(
false) {
55 int leftVolume()
const {
56 return pan < 0 ? volume : volume * (100 - pan) / 100;
59 int rightVolume()
const {
60 return pan < 0 ? volume * (100 + pan) / 100 : volume;
75 bool playing(
int id)
const;
78 const Sound *find(
int id)
const;
Definition: soundManager.h:64
Definition: algorithm.h:29
Definition: soundManager.h:41