ScummVM API documentation
sound.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef FREESCAPE_SOUND_H
23
#define FREESCAPE_SOUND_H
24
25
#include "audio/softsynth/pcspk.h"
26
#include "common/array.h"
27
28
namespace
Freescape
{
29
30
struct
soundFx
{
31
int
size;
32
float
sampleRate;
33
byte *data;
34
};
35
36
struct
soundUnitZX
{
37
bool
isRaw;
38
uint16 freqTimesSeconds;
39
uint16 tStates;
40
float
rawFreq;
41
uint32 rawLengthus;
42
float
multiplier;
43
};
44
45
struct
soundSpeakerFx
{
46
uint16 frequencyStart;
47
uint8 frequencyDuration;
48
uint8 frequencyStepsNumber;
49
uint16 frequencyStep;
50
uint8 repetitions;
51
Common::Array<struct soundSpeakerFx *>
additionalSteps;
52
};
53
54
class
SizedPCSpeaker
:
public
Audio::PCSpeaker
{
55
public
:
56
bool
endOfStream
()
const override
{
return
!isPlaying(); }
57
};
58
59
}
// End of namespace Freescape
60
61
#endif // FREESCAPE_SOUND_H
Freescape::soundSpeakerFx
Definition:
sound.h:45
Freescape
Definition:
area.h:36
Common::Array
Definition:
array.h:52
Freescape::soundFx
Definition:
sound.h:30
Freescape::SizedPCSpeaker::endOfStream
bool endOfStream() const override
Definition:
sound.h:56
Freescape::soundUnitZX
Definition:
sound.h:36
Freescape::SizedPCSpeaker
Definition:
sound.h:54
Audio::PCSpeaker
Definition:
pcspk.h:31
engines
freescape
sound.h
Generated on Thu Nov 14 2024 09:09:44 for ScummVM API documentation by
1.8.13