22#ifndef BLADERUNNER_MUSIC_H
23#define BLADERUNNER_MUSIC_H
25#include "common/mutex.h"
26#include "common/str.h"
28#include "bladerunner/bladerunner.h"
30namespace BladeRunner {
33class BladeRunnerEngine;
34class SaveFileReadStream;
35class SaveFileWriteStream;
42 int32 timeFadeInSeconds;
43 int32 timePlaySeconds;
46 int32 timeFadeOutSeconds;
52 int _musicVolumeFactorOriginalEngine;
66 bool play(
const Common::String &trackName,
int volume,
int pan, int32 timeFadeInSeconds, int32 timePlaySeconds,
int loop, int32 timeFadeOutSeconds);
67 void stop(uint32 delaySeconds);
68 void adjust(
int volume,
int pan, uint32 delaySeconds);
71 void setVolume(
int volume);
72 int getVolume()
const;
78#if !BLADERUNNER_ORIGINAL_BUGS
87#if BLADERUNNER_ORIGINAL_BUGS
88 void adjustVolume(
int adjustedVolume, uint32 delaySeconds);
90 void adjustVolume(
int volume, uint32 delaySeconds);
92 void adjustPan(
int pan, uint32 delaySeconds);
95#if BLADERUNNER_ORIGINAL_BUGS
98 static void timerCallbackFadeOut(
void *refCon);
99 static void timerCallbackNext(
void *refCon);
102 static void mixerChannelEnded(
int channel,
void *data);
Definition: aud_stream.h:35
Definition: bladerunner.h:113
Definition: savefile.h:113
Definition: savefile.h:88