Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
sound
oalsound
buffer.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Colobot: Gold Edition source code
3
* Copyright (C) 2001-2014, Daniel Roux, EPSITEC SA & TerranovaTeam
4
* http://epsiteŃ.ch; http://colobot.info; http://github.com/colobot
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see http://gnu.org/licenses
18
*/
19
25
#pragma once
26
27
#include "
sound/sound.h
"
28
#include "
common/logger.h
"
29
30
#include "sound/oalsound/check.h"
31
32
#include <string>
33
#include <vector>
34
#include <array>
35
36
#include <al.h>
37
#include <sndfile.h>
38
39
class
Buffer
40
{
41
public
:
42
Buffer
();
43
~
Buffer
();
44
45
bool
LoadFromFile(std::string,
Sound
);
46
bool
IsLoaded();
47
48
Sound
GetSoundType();
49
ALuint GetBuffer();
50
float
GetDuration();
51
52
private
:
53
ALuint m_buffer;
54
Sound
m_sound;
55
bool
m_loaded;
56
float
m_duration;
57
};
58
sound.h
Sound plugin interface.
Sound
Sound
Sound enum representing sound file.
Definition:
sound.h:44
logger.h
Class for logging information to file or console.
Buffer
Definition:
buffer.h:39
Generated by
1.8.9.1