Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

merged audio into FICN

File size: 539 bytes
RevLine 
[349]1#ifndef AUDIOBUFFER_H_
2#define AUDIOBUFFER_H_
3
4#include <iostream>
5#include <string>
6#include <vector>
7
[377]8#include <AL/al.h>
9#include <AL/alc.h>
10#include <AL/alut.h>
[349]11
12namespace audio
13{
14        class AudioBuffer
15        {
16        public:
17                AudioBuffer(std::string fileName);
18                ~AudioBuffer();
19        private:
20                // Buffers hold sound data.
[350]21                ALuint buffer;
[349]22                // Identifier
23                std::string name;
[350]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;
[349]32        };
33}
34
35#endif /*AUDIOBUFFER_H_*/
Note: See TracBrowser for help on using the repository browser.