ScummVM API documentation
wav_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 QDENGINE_SYSTEM_SOUND_WAV_SOUND_H
23#define QDENGINE_SYSTEM_SOUND_WAV_SOUND_H
24
25namespace Audio {
26 class SeekableAudioStream;
27}
28
29namespace QDEngine {
30
32class wavSound {
33public:
34 wavSound();
35 ~wavSound();
36
38 float length() const { return _length; }
39
40 bool wav_file_load(const Common::Path &fname);
41
42 Audio::SeekableAudioStream *_audioStream = nullptr;
43 Common::Path _fname;
44
45private:
46 float _length = 0.0;
47};
48
49} // namespace QDEngine
50
51#endif // QDENGINE_SYSTEM_SOUND_WAV_SOUND_H
Definition: audiostream.h:212
Definition: path.h:52
Звук из WAV файла.
Definition: wav_sound.h:32
float length() const
Returns sound length in seconds.
Definition: wav_sound.h:38
Definition: system.h:39
Базовый класс для игровых ресурсов.
Definition: console.h:28