Commit Graph

208 Commits

Author SHA1 Message Date
David Reid
60d7215b2a mini_al: Unify the buffer system for Sounds and AudioStreams. 2017-11-18 08:42:14 +10:00
David Reid
e03afbf2fa Add support for pitch shifting.
This commit should bring the mini_al backend up to feature parity with
the OpenAL backend.
2017-11-15 22:04:23 +10:00
David Reid
322d868841 Fix minor errors with the OpenAL backend. 2017-11-14 21:44:57 +10:00
David Reid
88d2810fa3 Bug fixes for Music with mini_al. 2017-11-14 21:15:50 +10:00
David Reid
3a96a66fdf Bring up to date with changes to mini_al. 2017-11-13 21:46:29 +10:00
David Reid
e52f4282d6 Update comments. 2017-11-12 22:57:31 +10:00
David Reid
ac4c911ad7 Work on porting Music to mini_al. 2017-11-12 21:55:24 +10:00
David Reid
68bf6c9701 Initial work on porting AudioStream to use mini_al. 2017-11-12 20:59:16 +10:00
David Reid
b0852002b8 Rename SoundInternal to SoundData for consistency with MusicData. 2017-11-12 14:54:37 +10:00
David Reid
75433a670e Initial work on adding support for mini_al. 2017-11-12 14:17:05 +10:00
Ray
1d91a46008 Corrected out-of-bounds array issue 2017-09-13 22:23:24 +02:00
raysan5
9f09f6f550 Rename enum LogType names...
...to avoid possible conflicting symbols
2017-07-02 12:35:13 +02:00
Ray
01e65664dd Reviewed some comments... 2017-05-14 18:32:47 +02:00
Ray
16842233c9 Review issue and added some comments 2017-05-10 19:34:57 +02:00
Ray
822c2ddad5 Some defines tweaks for consistency 2017-05-08 02:47:44 +02:00
Ray
3861bc80f2 StopMusicStream() review 2017-05-08 00:55:47 +02:00
Ray
2d5c8e61b1 Some code tweaks 2017-05-03 14:16:53 +02:00
raysan5
7bcae59477 Support XM modules by default 2017-04-23 12:06:05 +02:00
Ray
ecfe31bf1d Make TraceLog() public to the API
enum LogType could require some revision...
2017-04-21 00:08:00 +02:00
Ray
080a79f0b0 Added IsFileExtension()
Replaced old GetExtension() function
Make IsFileExtension() public to the API
2017-03-29 00:35:42 +02:00
Ray
90b36bd274 Merge branch 'develop' of https://github.com/raysan5/raylib into develop 2017-03-26 22:49:11 +02:00
Ray
b7a8a40e71 Work on configuration flags 2017-03-26 22:49:01 +02:00
RDR8
0c16af01e5 Replaced font.size with font.baseSize. Uncommented linux libs. Typo or two 2017-03-25 20:41:04 -05:00
Ray
59652c75b4 Review some comments 2017-03-20 20:34:44 +01:00
raysan5
8f5ff64420 Working on file header comments... 2017-03-19 12:52:58 +01:00
raysan5
203d1a154e Clear music buffers on stop 2017-03-05 10:55:58 +01:00
bugcaptor
de103ecc5e fix for audio.c(607): error C2036: 'void *': unknown size in Visual Studio 2015. 2017-03-02 10:07:09 +09:00
Ray
05cff44d0a Improved modules description -IN PROGRESS-
Working in modules configuration flags...
2017-02-16 00:50:02 +01:00
raysan5
05f039f85f Corrected issue with OpenAL being 'keg only' on OSX
Also reviewed issue with stdbool when compiling with clang
2017-02-11 23:34:41 +01:00
raysan5
afcd748fdf Reviewed fread() usage around the code 2017-02-11 23:17:56 +01:00
Ray
b4988777ef [audio] Renamed variable 2017-02-09 22:19:48 +01:00
Ray San
836c1636a2 Remove lighting system from rlgl standalone header 2017-02-08 20:02:40 +01:00
Ray
f2f05a734d Added audio function: SetMusicLoopCount()
Useful to set number of repeats for a music, needs to be tested...
2017-02-06 01:03:58 +01:00
Ray
ac6b4d3830 Added audio function: SetMasterVolume() 2017-02-06 00:44:54 +01:00
Ray
c85dfd4bc6 Remove unecessary spaces... 2017-01-28 23:02:30 +01:00
Ray
825eab37e2 Revert unneeded change 2017-01-24 00:32:16 +01:00
Ray
f164ec80d6 Upload wave collector - GGJ17 game 2017-01-22 15:31:56 +01:00
Ray
7586031410 Support 32bit wav data 2017-01-19 13:18:04 +01:00
Ray San
3b120bd7d9 Some tweaks for consistency 2017-01-18 19:14:39 +01:00
Ray San
fc7d4cef18 Stop sound source before unloading 2017-01-18 17:25:25 +01:00
Ray San
46f95a730a Corrected bug on OGG sound loading 2017-01-18 17:04:20 +01:00
raysan5
6d6659205c Add support for 32-bit PCM sample data 2017-01-15 01:25:09 +01:00
raysan5
fbda9c4180 Support rRES data loading 2017-01-07 18:12:59 +01:00
raysan5
e7464d5fc3 Review some formatting and naming
- Renamed WritePNG() to SavePNG() for consistency with other file
loading functions
- Renamed WriteBitmap() to SaveBMP() for consistency with other file
loading functions
- Redesigned SaveBMP() to use stb_image_write
2016-12-27 17:37:35 +01:00
raysan5
5da815234c Improved FLAC audio support 2016-12-26 10:52:57 +01:00
raysan5
5de597579f Complete review of audio module 2016-12-25 01:58:56 +01:00
Saggi Mizrahi
c394708c43 Change UpdateSound() to accept const void *
The function means to accept a const * so let's declare it.
Will allow passing const buffers in games.
Also constness is next to godliness!

Signed-off-by: Saggi Mizrahi <saggi@mizrahi.cc>
2016-12-22 03:25:42 +02:00
Ray
4a9b77dd70 Corrected bug sound playing twice
Samples count was not properly calculated on WAV loading
2016-12-20 00:33:45 +01:00
Ray
814507906f Improving rRES custom format support -IN PROGRESS-
Start removing old rRES functions.
2016-12-17 19:05:40 +01:00
Ray
377dcb025f Corrected some warnings 2016-12-05 01:14:18 +01:00
raysan5
f7b706263a Some code tweaks
Correcting details that pop-up when testing the different platforms
2016-11-18 13:39:57 +01:00
raysan5
6d1b712a96 Reviewed modules comments 2016-11-16 18:46:13 +01:00
Ray
8f60996b64 Corrected some warnings 2016-10-17 00:03:38 +02:00
raysan5
c384b375df Tweak to avoid warning 2016-10-10 19:42:02 +02:00
raysan5
b1651baea5 Added support for FLAC audio loading/streaming 2016-10-10 18:22:55 +02:00
raysan5
79c8eb543e Corrected audio bugs and improved examples 2016-09-15 11:53:16 +02:00
raysan5
7f0880a735 Review spacing formatting
raylib uses spaces between '+' and '-' signs but not between '*' and '/'
signs, it's a chosen convention
2016-09-12 19:36:41 +02:00
Ray
94142ecce5 Some more work on audio... 2016-09-09 01:34:30 +02:00
Ray
0c58c1198f Working on new audio functions... 2016-09-08 01:03:05 +02:00
Ray
8b35de3276 Added new audio functions -IN PROGRESS-
- LoadWave()
- LoadWaveEx()
- UnloadWave()
- WaveFormat()
- WaveCopy()
- WaveCrop()
- GetWaveData()
2016-09-08 00:20:06 +02:00
raysan5
a9ab516dae Formatting tweaks 2016-08-31 10:27:29 +02:00
raysan5
be97583f00 Added function: UpdateSound() 2016-08-29 11:17:58 +02:00
raysan5
959a228815 Removed useless spacing 2016-08-16 11:09:55 +02:00
raysan5
342b89c5b9 Review Wave struct 2016-08-15 16:35:25 +02:00
raysan5
cae209816c Code tweak to avoid warning 2016-08-07 13:38:14 +02:00
raysan5
306945fe14 Added trace on audio device closing 2016-08-06 19:30:56 +02:00
raysan5
8c0bd30fcb Corrected issue with Music type 2016-08-02 19:09:07 +02:00
raysan5
68d647c1af Complete review and update
Simplified module for Music and AudioStream
Added support for raw audio streaming (with example)
2016-08-02 17:32:24 +02:00
raysan5
58d2f70b7e Review audio module and examples 2016-08-01 21:37:45 +02:00
raysan5
2dc5f580a6 Removed audio errors register 2016-08-01 12:58:30 +02:00
raysan5
02c456432d Complete review of audio system
Still some work left...
2016-08-01 12:49:17 +02:00
Ray
a61b832c4a Merge pull request #166 from Bil152/develop
Code refractoring of music module to be more user-friendly (issue #144)
2016-07-30 12:45:31 +02:00
Bil152
8f7cb6fb19 Code refractoring of music model to be more friendly-user (issue #144) 2016-07-29 21:35:57 +02:00
raysan5
a008d49230 Corrected some issues to compile with MSC 2016-07-29 13:17:50 +02:00
raysan5
6d68c78989 Updated log output info 2016-07-26 12:44:33 +02:00
raysan5
7959ccd84d Review some functions, formatting and comments 2016-07-15 18:16:34 +02:00
raysan5
338bb3fd9c Review variables to raylib naming conventions
Some review work still required...
2016-07-13 20:05:53 +02:00
raysan5
3884716948 Corrected a couple of warnings 2016-06-11 12:01:39 +02:00
raysan5
d63e32a377 Remove include, not supported on html5
AL/alext.h is not supported on html5 OpenAL implementation, just
replaced by the defines used in audio module
2016-06-11 11:21:24 +02:00
Joshua Reisenauer
f0d8c009ae cleaned things up 2016-06-07 16:03:21 -07:00
Ray
29d505c98e Reorganize external libraries - BREAKING CHANGE -
Moved all external libraries used by raylib to external folder inside
raylib src. Makefile has already been update and also the different
includes in raylib modules.
2016-06-06 14:34:43 +02:00
raysan5
cafc66a3c1 Rename for consistency with other functions 2016-06-02 19:09:56 +02:00
raysan5
4fb3103dfa Corrected some formatting issues 2016-06-02 18:19:47 +02:00
raysan5
cf6d2e3985 Review coding style to match raylib style
Moved AudioError enum inside audio.c
2016-06-02 17:12:31 +02:00
Joshua Reisenauer
af1eb5453a I added audio errors
The only thing I did not change was the _g for globals. Is there any
other way we can mark globals?
2016-06-02 02:02:23 -07:00
Joshua Reisenauer
05f8e83ba9 cleanup 2016-06-02 00:03:00 -07:00
Joshua Reisenauer
ae6adb173b Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop 2016-06-01 20:17:39 -07:00
Joshua Reisenauer
90e1ed2b5e mod player added 2016-06-01 20:09:00 -07:00
Ray
17878550b1 Review heades usage
This is a first step toward a bigger project. Some modules could be
ported to header-only to be used as standalone.
2016-06-02 01:26:44 +02:00
Joshua Reisenauer
9f2fc81df2 update to openal 2016-05-30 15:34:29 -07:00
victorfisac
cf71e1242e Fix some audio module compile warnings 2016-05-21 18:08:09 +02:00
Joshua Reisenauer
41c5f3a017 Buffer for raw audio 2016-05-19 20:44:09 -07:00
Joshua Reisenauer
b10425492a name correction 2016-05-19 15:22:12 -07:00
Joshua Reisenauer
76ff4d220e renamed everything so it is obvious what it does 2016-05-15 19:37:15 -07:00
Joshua Reisenauer
86fbf4fd8f logic bug fix 2016-05-15 02:09:57 -07:00
Joshua Reisenauer
d38d7a1bed clean up on buffering and preconditions 2016-05-14 16:30:32 -07:00
Joshua Reisenauer
8c5d403dda new function to check if music stream is ready
_g naming convention for globals, new error exit numbers.
2016-05-14 15:26:17 -07:00
Joshua Reisenauer
ea4b5552c2 corrected typos 2016-05-14 00:25:40 -07:00
Joshua Reisenauer
5107a2dc40 bug fixes 2016-05-12 21:14:02 -07:00
Joshua Reisenauer
83dbc07650 buffering of music now uses update audio context 2016-05-12 16:02:23 -07:00