Commit Graph

280 Commits

Author SHA1 Message Date
Joshua Jones 6b3e9c5a9d Moved sample sounds to a media folder and removed the copy of bling.ogg from bin
Updated logger to allow a user to create callbacks to receive log messages
Logger also gives more information, time the message was sent, the source, the importance, and the message itself.
User can now query playback devices and specify the device for the audio manager to use.  The audio manager is no longer a singleton, although creating multiple managers is not advised.
Clean up and optimization of manager initialization code.
IAudioCapture can now be told which device to capture audio from.  The user can also create multiple IAudioCaptures to capture audio from multiple sources at the same time.
Added additional error checking.
A seperate thread is used to capture audio now.
Defines added to allow a user to remove support for default codecs.
2009-11-20 03:39:56 +00:00
Raynaldo Rivera aabf6b9306 2009-11-15 17:11:38 +00:00
Raynaldo Rivera 973bd33e5a Added basic logger logged cAudioManager.cpp 2009-09-12 05:59:28 +00:00
Raynaldo Rivera e3baec7932 Added a "getSource()" function that returns a openal source 2009-09-03 03:23:58 +00:00
Raynaldo Rivera 8b1019a98b added a CAUDIO_EAX_ENABLED flag to cAudio Defines and enabled EAX 2009-09-03 03:00:03 +00:00
Joshua Jones d0ff906bb0 Changed the 3D tutorial to actually rotate the sound around the listener 2009-08-29 22:09:34 +00:00
Joshua Jones 71e1e640b3 Made fixes to the release build of the library and examples to put files in the right places, remove debug information, and do full optimization. 2009-08-29 21:19:51 +00:00
Joshua Jones 032cb74795 Spelling fix to the License
Removed floating copy of alut (not used anymore)
2009-08-29 20:52:58 +00:00
Joshua Jones 75ece68dcf Added cross-platform Mutex and Thread classes.
Made cAudio, cAudioCapture, cAudioManager and other classes thread safe.
Made cAudioManager use a seperate update thread by default.
Added cAudioSleep, a cross-platform sleep() function
Moved global defines to cAudioDefines
Added defines to disable thread safety or the internal update thread if the user wishes it
Updated tutorials to reflect the changes made
2009-08-29 11:24:31 +00:00
Raynaldo Rivera 008f1e76c9 Removed unused obj folder 2009-08-26 23:50:31 +00:00
Raynaldo Rivera c00f6bfc6e Got rid of the alut dependence and also corrected both visual studio and codeblocks project to realize change. 2009-08-26 23:46:18 +00:00
Raynaldo Rivera 198124c988 Correct const use. 2009-08-26 03:06:36 +00:00
Raynaldo Rivera 93e36c4a03 Updated tutorials to use cVector3 and the new getListener function 2009-08-26 02:55:02 +00:00
Raynaldo Rivera f9370efcd9 Fixed project file to output to bin/win32-visual 2009-08-26 02:36:33 +00:00
Raynaldo Rivera 4db524e400 Added all needed get functions. 2009-08-26 02:19:58 +00:00
Joshua Jones bcf890f125 Changed the return of IAudioCapture::getCapturedAudio to return the size of the data copied to the output buffer instead of void. 2009-08-26 01:43:45 +00:00
Raynaldo Rivera cd024e3425 Fixed interface by adding cVector3.h to IAudio.h 2009-08-26 01:19:57 +00:00
Raynaldo Rivera 148e6af912 Broken interfaces 2009-08-26 01:16:40 +00:00
Raynaldo Rivera 4dff5eadae added correctly cased EAudioFormats.h 2009-08-26 00:00:50 +00:00
Raynaldo Rivera 95b8d9c2b1 deleted incorrectly cased eAudioFormats.h 2009-08-26 00:00:02 +00:00
Raynaldo Rivera 40737aff51 Added correct cased file name 2009-08-25 23:59:10 +00:00
Raynaldo Rivera a411f5d12d Deleted cwavdecoder 2009-08-25 23:58:37 +00:00
Raynaldo Rivera 1d677cbce1 Added correct file endings and renamed cwav to cWav and eAudio to EAudio 2009-08-25 23:56:35 +00:00
Joshua Jones 0c3df1d430 Added audio capture capabilities. The user can now get an interface for audio capture from cAudioManager and record audio from the default recording device.
Added a raw audio decoder, allowing raw audio to be played if the format and frequency is known.  Will also load from .raw files on disk, but will assume the format is 16 bit mono and the frequency is 22050 hz
Added a tutorial to show how recording and playback can be done.
Added the ability for the user to unregister audio codecs that they will not be using.  Also added methods to test for the existance of a decoder and get the decoder factory back.
Moved cVector3.h to include instead of Headers to make using it in user projects easier (one less include path)
Moved the audio format enum to its own header file.
Small fix in the wav decoder to prevent the file header from being played as audio data.
2009-08-11 17:57:20 +00:00
Joshua Jones 9933eee54c Added the missing msvc project files for the tutorials.
Added missing 3d vector class;
2009-08-08 05:53:29 +00:00
Joshua Jones 28a22c7f73 Fixed problem with the msvc project not outputting a .lib file.
Updated tutorials to fix minor bugs and pathing issues.  Also fixed crash bug on failure to create the audio object.
Added msvc projects for all tutorials.
Updated the listener class to be self contained and only handle stuff related to the OpenAL listener.  It does NOT init OpenAL anymore, that has been moved to cAudioManager.
Extended the listener class to support all settings that native OpenAL supports.
Cleaned up cFileSource and fixed a crash bug on NULL file handle
Fixed returning bad audio buffer chunk sizes from the cOggDecoder on errors in the ogg stream
Seeking can now be down in fractions of a second now, changed the seconds field from int to float
Fixed various odd formatting.
Fixed potential crash bug in cMemorySource if memory could not be allocated.
cMemorySource will no longer clear the buffer you give to it before filling it with data.  This prevents an overwrite from happening in case of error but the user should provide a zeroed buffer to cMemorySource anyway for safety.
Relative seeking is now supported by cOggDecoder.
2009-08-08 05:51:32 +00:00
Raynaldo Rivera ea195bce4d Add visual studio project files 2009-06-21 17:21:38 +00:00
Raynaldo Rivera 65db7abebe Added small fix to make setPitch() use a float instead of the int it was using 2009-06-21 03:28:40 +00:00
Raynaldo Rivera deeecd0624 Add small fix to allow audio files that are shorter then 1 second to be played. 2009-06-21 03:27:29 +00:00
Raynaldo Rivera 9cac8153da 2009-06-21 03:24:30 +00:00