This commit is contained in:
Raynaldo Rivera 2010-02-09 05:33:32 +00:00
parent 1e914b9796
commit c261339e57
14 changed files with 55 additions and 9 deletions

View File

@ -1,3 +1,8 @@
//****************************************************************
//cAudio 2.0 Tutorial 1
//Basic 2d Audio
//****************************************************************
#include <iostream>
#include <string>

View File

@ -1,5 +1,5 @@
//****************************************************************
//cAudio 1.7.1 Tutorial 2
//cAudio 2.0 Tutorial 2
//Basic 3d Audio. Moving Audio source. Must be mono sound source
//****************************************************************

View File

@ -1,5 +1,5 @@
//****************************************************************
//cAudio 1.7.1 Tutorial 3
//cAudio 2.0 Tutorial 3
//Basic Memory Playback *Virtual file systems*
//bling.h created with bin2h http://deadnode.org/sw/bin2h/
//****************************************************************

View File

@ -1,5 +1,5 @@
//****************************************************************
//cAudio 1.7.1 Tutorial 4
//cAudio 2.0 Tutorial 4
//Audio Capture and playback
//****************************************************************

View File

@ -1,5 +1,5 @@
//****************************************************************
//cAudio 1.7.1 Tutorial 5
//cAudio 2.0 Tutorial 5
//Audio effects
//****************************************************************

View File

@ -10,7 +10,7 @@
#include <AL/alc.h>
#include "../include/IAudio.h"
#include "../Include/cVector3.h"
#include "../include/cVector3.h"
#include "../Headers/cMutex.h"
#include "../include/ILogger.h"
#include "../Headers/cEFXFunctions.h"

View File

@ -6,6 +6,7 @@
#define CLOGGER_H_INCLUDED
#include <map>
#include <string>
#include <stdarg.h>
#include "../include/ILogger.h"

View File

@ -12,8 +12,20 @@
#include "../Headers/cThread.h"
#include "../include/cAudioSleep.h"
#include "../Headers/cLogger.h"
#include "../include/CAudioDefines.h"
#include <set>
#include <string.h>
#ifdef _WIN32
#include <AL/efx.h>
#include <AL/efx-creative.h>
#include <AL/xram.h>
#endif
#ifdef __linux__
#include <AL/alext.h>
#endif
#define LOAD_AL_FUNC(x) (x = (typeof(x))alGetProcAddress(#x))

View File

@ -7,6 +7,8 @@
#include "../Headers/cFilter.h"
#include "../Headers/cEffect.h"
#include <string.h>
namespace cAudio
{
#ifdef CAUDIO_EFX_ENABLED

View File

@ -344,7 +344,7 @@
>
</File>
<File
RelativePath=".\Source\cWavdecoder.cpp"
RelativePath=".\Source\cWavDecoder.cpp"
>
</File>
</Filter>

View File

@ -5,7 +5,7 @@
#ifndef IAUDIOCAPTURE_H
#define IAUDIOCAPTURE_H
#include "eAudioFormats.h"
#include "EAudioFormats.h"
#include "cAudioDefines.h"
namespace cAudio

View File

@ -7,7 +7,7 @@
#include "IRefCounted.h"
#include "IDataSource.h"
#include "eAudioFormats.h"
#include "EAudioFormats.h"
namespace cAudio
{

View File

@ -7,7 +7,7 @@
#include "IListener.h"
#include "cAudioDefines.h"
#include "eAudioFormats.h"
#include "EAudioFormats.h"
#include "IAudioEffects.h"
namespace cAudio

View File

@ -5,6 +5,32 @@
#ifndef CAUDIODEFINES_H
#define CAUDIODEFINES_H
//To use EFX in linux.
#ifndef ALC_EXT_EFX
#define AL_FILTER_TYPE 0x8001
#define AL_EFFECT_TYPE 0x8001
#define AL_FILTER_NULL 0x0000
#define AL_FILTER_LOWPASS 0x0001
#define AL_FILTER_HIGHPASS 0x0002
#define AL_FILTER_BANDPASS 0x0003
#define AL_EFFECT_NULL 0x0000
#define AL_EFFECT_EAXREVERB 0x8000
#define AL_EFFECT_REVERB 0x0001
#define AL_EFFECT_CHORUS 0x0002
#define AL_EFFECT_DISTORTION 0x0003
#define AL_EFFECT_ECHO 0x0004
#define AL_EFFECT_FLANGER 0x0005
#define AL_EFFECT_FREQUENCY_SHIFTER 0x0006
#define AL_EFFECT_VOCAL_MORPHER 0x0007
#define AL_EFFECT_PITCH_SHIFTER 0x0008
#define AL_EFFECT_RING_MODULATOR 0x0009
#define AL_EFFECT_AUTOWAH 0x000A
#define AL_EFFECT_COMPRESSOR 0x000B
#define AL_EFFECT_EQUALIZER 0x000C
#define ALC_EFX_MAJOR_VERSION 0x20001
#define ALC_EFX_MINOR_VERSION 0x20002
#define ALC_MAX_AUXILIARY_SENDS 0x20003
#endif
//Global define for exporting the library
#ifndef CAUDIO_STATIC_LIB