Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/audio/AudioBuffer.h @ 404

Last change on this file since 404 was 389, checked in by nicolasc, 17 years ago

merged audio into FICN

File size: 539 bytes
Line 
1#ifndef AUDIOBUFFER_H_
2#define AUDIOBUFFER_H_
3
4#include <iostream>
5#include <string>
6#include <vector>
7
8#include <AL/al.h>
9#include <AL/alc.h>
10#include <AL/alut.h>
11
12namespace audio
13{
14        class AudioBuffer
15        {
16        public:
17                AudioBuffer(std::string fileName);
18                ~AudioBuffer();
19        private:
20                // Buffers hold sound data.
21                ALuint buffer;
22                // Identifier
23                std::string name;
24                // True if AL was able to load data
25                ALboolean loaded;
26               
27                ALenum format;
28                ALsizei size;
29                ALvoid* data;
30                ALsizei freq;
31                ALboolean loop;
32        };
33}
34
35#endif /*AUDIOBUFFER_H_*/
Note: See TracBrowser for help on using the repository browser.