Commit Graph

199 Commits

Author SHA1 Message Date
Ray
764766bfb2 Some formatting tweaks 2018-10-18 16:00:11 +02:00
Ray
c2aa1fed7b Removed OpenAL backend 2018-10-18 11:38:42 +02:00
Ray
8bac72f4fa Working on MP3 loading
Loading full mp3 file works but loading for music streaming does not work, it seems total number of samples is not obtained correctly from mp3 file...
2018-10-17 19:39:16 +02:00
Ray
b8b8936cd7 Review defines 2018-10-16 10:53:01 +02:00
Ray
f238b9ea3c Small tweak to avoid warning 2018-10-10 12:31:55 +02:00
Ray
9efe5c6802 Support MP3 wave loading -NOT TESTED- 2018-09-19 15:57:46 +02:00
Ray
ec5c9686b3 Improved data export capabilities!
REVIEWED: ExportImage()
REVIEWED: ExportMesh()
ADDED: ExportWave()
REMOVED: Internal funcs: SavePNG(), SaveBMP()

NOTE: These changes break the API (parameters order)
2018-09-17 16:56:02 +02:00
186c1b157e Fix bug in LoadMusicStream
free() and NULL at the end.
2018-07-29 09:52:18 +02:00
7964b28fac Corrected bug LoadMusicStream() 2018-07-28 18:19:53 +02:00
dc3327fba8 Reviewed music loading 2018-07-28 18:07:06 +02:00
7a5b1b13e2 Deal with failed LoadMusicStream
It would be good to have a way to continue execution even when loading a stream didn't work.
 Free music and set it to NULL in case something went wrong, so that users can check for it.
2018-07-27 15:58:27 +02:00
Ray
6e812cf147 Working on MP3 support 2018-07-19 23:15:46 +02:00
c598701873 Fix bug with FLAC music streams. 2018-07-05 22:57:17 +10:00
1d354bc704 Merge branch 'master' of https://github.com/raysan5/raylib into dr/mini_al 2018-07-05 22:33:16 +10:00
859b1cf574 Fix incorrect log agent names 2018-06-28 18:41:32 -04:00
f454af08bb Review include (already included) 2018-05-22 12:08:58 +02:00
63cf43b729 Fix some warnings. 2018-05-21 20:46:22 +10:00
647c08ef4c Fix a copy paste typo. 2018-05-21 20:39:42 +10:00
f1b624d38b Update mini_al. 2018-05-21 20:39:19 +10:00
6d8cc250bd Merge branch 'master' of https://github.com/raysan5/raylib into dr/mini_al 2018-05-21 20:26:28 +10:00
e025e62445 cmake: Fix PLATFORM_WEB build
Did this ever work? Surely, doesn't look like it...
2018-05-21 12:15:39 +02:00
Ray
88c2337225 Preliminary support for MP3 fileformat -WIP- 2018-05-17 00:04:58 +02:00
ec33e7d705 BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support
- Jumped version to raylib 2.0-dev (too many breaking changes...)
2018-05-04 16:59:48 +02:00
0febaa2446 Update external audio libraries. 2018-04-21 18:57:00 +10:00
1841afad11 Refactor all #define SUPPORT_* into a config.h
That way, a user needs only to touch a single file to configure what
features raylib is built with.
Include guards are left out intentionally, because config.h should only
be included in source files, not headers.

Later on, config.h can also define the raylib version (#461).
2018-04-07 23:37:48 +02:00
03ca9508bf Fix Dead initialization 2018-04-02 13:30:20 +02:00
Ray
231a69417a Corrected masteVolume setting 2018-02-11 01:28:30 +01:00
Ray
7bf6becc94 Reviewed mini_al implementation
- Some functions renamed
- Comments reviewed
- Functions reorganized
2018-02-11 01:12:16 +01:00
-
230e78a23e Code tweak while using OpenAL backend 2018-01-15 13:54:25 +01:00
c93bca8c27 Review Makefile config flags
Support external GLFW usage
Renamed some flags for consistency
2017-12-28 17:58:09 +01:00
61afd07bd7 Force OpenAL backend on some platforms
OpenAL audio backend is being forced on HTML5 and OSX
2017-12-20 12:34:18 +01:00
1320044e94 Review code formatting 2017-12-20 11:37:43 +01:00
Ray
b63ffcfa0f Some code tweaks
Audio module requires a complete formatting review....
2017-12-20 00:34:31 +01:00
Ray
a6f9cc5629 Remove rres support
Let the user choose if using rres external library
2017-12-11 11:55:02 +01:00
82f88e5df9 Potential fixes for Raspberry Pi. 2017-12-03 11:20:02 +10:00
a0d9913c7c Potential fixes for audio on RPI and Emscripten builds. 2017-11-24 22:13:33 +10:00
5463e14886 Audio: Fix a bug with AudioStreams.
This bug is a result of the buffer of an AudioStream being smaller than
that of a period of the backend playback device. In this situation,
AudioStream's would have pauses between buffer updates because the
backend is not able to re-fill the AudioStream buffer's quick enough
due to it's periods being longer than the AudioStream buffer.
2017-11-24 21:54:00 +10:00
8b3694a34d Fix a crash in audio mixing code. 2017-11-22 18:36:48 +10:00
3238cba47c Log the name of the playback device. 2017-11-19 19:38:23 +10:00
f9144ac5b0 Rename a variable for consistency. 2017-11-18 12:15:48 +10:00
b9bb80d004 Add some logging and update mini_al. 2017-11-18 10:27:44 +10:00
60d7215b2a mini_al: Unify the buffer system for Sounds and AudioStreams. 2017-11-18 08:42:14 +10:00
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
322d868841 Fix minor errors with the OpenAL backend. 2017-11-14 21:44:57 +10:00
88d2810fa3 Bug fixes for Music with mini_al. 2017-11-14 21:15:50 +10:00
3a96a66fdf Bring up to date with changes to mini_al. 2017-11-13 21:46:29 +10:00
e52f4282d6 Update comments. 2017-11-12 22:57:31 +10:00
ac4c911ad7 Work on porting Music to mini_al. 2017-11-12 21:55:24 +10:00
68bf6c9701 Initial work on porting AudioStream to use mini_al. 2017-11-12 20:59:16 +10:00
b0852002b8 Rename SoundInternal to SoundData for consistency with MusicData. 2017-11-12 14:54:37 +10:00