-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsound.h
36 lines (26 loc) · 1.1 KB
/
sound.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/***********************************************************************
* sound function to simplify the use of the openAL funcs
* TouchHapsys Project
* date : 17 July 2003
* Author : LSC - Guillaume Bouyer & Vincent Maury
************************************************************************/
#ifndef Soundh
#define Soundh
#include <string.h>
#include <stdio.h>
#include <AL/ALut.h>
#include <AL/al.h>
#include <AL/alc.h>
#include <windows.h>
#include <AL/alut.h>
#include <AL/eax.h>
void alSettingUpOpenAL();
void alSettingASource(ALuint &inSoundBuffer,ALuint &inSoundSource, char *inNameOfFileContainingSound);
void alSetSourcePosition(ALuint &inSoundSource, float xPos, float yPos, float zPos);
void alSetSourceDirection(ALuint &inSoundSource, float xPos, float yPos, float zPos);
void alSetSourceVelocity(ALuint &inTriangleSoundSource, float xPos, float yPos, float zPos);
void alSetListenerPosition(float xPos, float yPos, float zPos);
void alSetListenerOrientation(float inAngle, float xPos, float yPos, float zPos);
char *chooseWav(int number);
long chooseEnv(int number);
#endif