Optibits
Loading...
Searching...
No Matches
AudioImpl.hpp
1#pragma once
2
3#include "Audio.hpp"
4#include <Optibits/Audio.hpp>
5#include <Optibits/Platform.hpp>
6
7#ifdef OPTIBITS_IPHONE
8#include <OpenAL/al.h>
9#include <OpenAL/alc.h>
10#else
11#include <al.h>
12#include <alc.h>
13#endif
14
15
16namespace Optibits
17{
18
19 void alInit();
20 bool alInited();
21
22 ALCcontext* alContext();
23
24 const int NO_CHANNEL = -1;
25
26 Channel allocateChannel();
27
28 bool channelExpired(int channel, int token);
29
30 ALuint alSourceForChannel(int channel);
31 ALuint alSourceForSongs();
32}