Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 334 vs 350 for /trunk/Source Code/Platform/Audio/openAl/ALWrapper.cpp

Diff revisions: vs.
  @@ -5,50 +5,40 @@
5 5
6 6 namespace Divide {
7 7
8 - ErrorCode OpenAL_API::initAudioApi() {
8 + ErrorCode OpenAL_API::initAudioApi() {
9 9 // Initialization
10 - ALCdevice* device = alcOpenDevice(NULL); // select the "preferred device"
10 + ALCdevice* device = alcOpenDevice(NULL); // select the "preferred device"
11 11 if (device) {
12 - ALCcontext* context=alcCreateContext(device, NULL);
12 + ALCcontext* context = alcCreateContext(device, NULL);
13 13 alcMakeContextCurrent(context);
14 14 }
15 15 // Check for EAX 2.0 support
16 - //ALboolean g_bEAX = alIsExtensionPresent("EAX2.0");
16 + // ALboolean g_bEAX = alIsExtensionPresent("EAX2.0");
17 17 // Generate Buffers
18 - alGetError(); // clear error code
18 + alGetError(); // clear error code
19 19 alGenBuffers(MAX_SOUND_BUFFERS, buffers);
20 20 ALenum error = alGetError();
21 - if (error != AL_NO_ERROR)
22 - {
21 + if (error != AL_NO_ERROR) {
23 22 return OAL_INIT_ERROR;
24 23 }
25 24 // Clear Error Code (so we can catch any new errors)
26 25 alGetError();
27 - return OAL_INIT_ERROR;
26 + return OAL_INIT_ERROR;
28 27 }
29 28
30 - void OpenAL_API::closeAudioApi() {
31 - }
29 + void OpenAL_API::closeAudioApi() {}
32 30
33 - void OpenAL_API::playSound(AudioDescriptor* sound) {
34 - }
31 + void OpenAL_API::playSound(AudioDescriptor* sound) {}
35 32
36 - void OpenAL_API::playMusic(AudioDescriptor* music) {
37 - }
33 + void OpenAL_API::playMusic(AudioDescriptor* music) {}
38 34
39 - void OpenAL_API::pauseMusic() {
40 - }
35 + void OpenAL_API::pauseMusic() {}
41 36
42 - void OpenAL_API::stopMusic() {
43 - }
37 + void OpenAL_API::stopMusic() {}
44 38
45 - void OpenAL_API::stopAllSounds() {
46 - }
47 -
48 - void OpenAL_API::setMusicVolume(I8 value) {
49 - }
39 + void OpenAL_API::stopAllSounds() {}
50 40
51 - void OpenAL_API::setSoundVolume(I8 value) {
52 - }
41 + void OpenAL_API::setMusicVolume(I8 value) {}
53 42
43 + void OpenAL_API::setSoundVolume(I8 value) {}
54 44 };