Commit Graph

43 Commits

Author SHA1 Message Date
Ray 4211056354 Reviewed some comments 2020-01-08 18:21:08 +01:00
Ray f46fcb8307 IsAudioBufferPlaying() replace ERROR by WARNING 2020-01-08 12:41:36 +01:00
raysan5 21c30f43d4 Update year to 2020 2020-01-05 20:01:54 +01:00
illegalinstruction caa1f45643 Forcibly ensure .xm playback starts in the right place; fixes #1043. (#1045) 2019-12-21 13:02:54 +01:00
João Coelho 75b0264f35 fix various problems, thanks CppCheck :) (#1005)
* explained a bit more the core_window_letterbox example

* fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-10-29 15:57:19 +01:00
Ray 1878a9ea01 Corrected possible memory leak #993 2019-10-22 23:15:41 +02:00
Ray b75511248d Remove trailing spaces 2019-10-17 17:18:03 +02:00
Michael Vetter 047f093503 Remove dead assignments (#980)
The result of `success` is actually never used. Either we should check
for it and return or remove it. I assume just checking the last one is
okay.
2019-10-03 17:06:08 +02:00
Ray df84f93938 Add security checks on file writting 2019-09-30 17:32:06 +02:00
Ray 861a619053 Review dr_flac usage
Replaced DEPRECATED functions
2019-09-03 23:24:09 +02:00
Ray fc95ceadf0 Remove sampleLeft from Music struct... -WIP-
...moved to internal AudioBuffer structure as totalFramesProcessed, now time measure works again... but there is some problem with looping...
Also note some inconsistencies between frames and samples, it seems those concepts are not considered correctly in the code.
2019-09-03 23:08:02 +02:00
raysan5 c661cad692 Review all RL_CALLOC() calls
All data should be properly initialized by now
2019-08-27 10:56:49 +02:00
raysan5 c387bc586d RENAMED: IsAudioBufferProcessed() -> IsAudioStreamProcessed()
Renamed for consistency with similar functions
2019-08-13 17:41:31 +02:00
Ray e6e48675cc Formating tweaks 2019-08-08 23:08:54 +02:00
chriscamacho 2d5cc5ddbf fixed xmloader bug, user must free model shaders and textures as they might be shared (#933) 2019-08-08 09:57:21 +02:00
Ray 251f90cd31 WARNING: Replaced Music pointer by struct
Now, multiple music parameters are exposed to the user!
2019-07-26 10:26:39 +02:00
Ray ae95111006 Some variables renamed 2019-07-24 22:37:24 +02:00
Ray 543c0ba30d Added Sound parameters data 2019-07-24 14:48:45 +02:00
Ray 2cb3b91913 Try to avoid collision with CoreAudio on macOS 2019-07-23 23:08:29 +02:00
Ray b44b7dd310 WARNING: Complete review of raudio -WIP-
This module has been completely reviewed, old structures still contained OpenAL useless data, a full module revision. Some of the changes:
 - Redesigned internal MusicData structure
 - Exposed MusicStream structure data
 - Reviewed AudioStream structure
 - Redesigned Sound structure

Still some work to do...
2019-07-23 22:21:01 +02:00
Ray 892813de76 Review multichannel PR addition
- Capital letters at beginning
- for loop spacing and brackets
- Functions naming for consistency
- Example following examples template
- Other tweaks
2019-06-29 11:26:08 +02:00
chriscamacho 83a4eb0852 add multi channel audio to raudio (#895)
* added multi channel sound replay to raudio
added -fPIC to Makefile for Linux
added simple lighting and audio multi channel to examples Makefile

* not properly reporting audio buffer pool size...
2019-06-29 10:49:42 +02:00
Wilhem Barbier dec604bd71 Move jar_xm_reset to jar_xm.h 2019-05-23 16:40:15 +02:00
Wilhem Barbier 78817305c5 Add rewind for the XM music format 2019-05-22 22:16:18 +02:00
Ray 10c2eea14b Correct RL_FREE bug 2019-04-23 15:07:28 +02:00
Ray e67ebabb02 Support custom memory management macros
Users can define their custom memory management macros.

NOTE: Most external libraries support custom macros in the same way, raylib should redefine those macros to raylib ones, to unify custom memory loading. That redefinition is only implemented as example for stb_image.h in [textures] module.
2019-04-23 14:55:35 +02:00
Ray b8ada4b877 Review creation years 2019-04-08 12:25:13 +02:00
Ray a103086443 Removed trail spaces 2019-04-04 13:50:52 +02:00
Ray c001bdb2de Checking issue with sound volume
It seems individual sound volume level is not set...
2019-03-20 10:57:41 +01:00
Ray 76e968f6b7 Updated audio library: mini_al -> miniaudio 2019-03-12 11:54:45 +01:00
raysan5 d7fd6e0f1a Corrected issue with possible 0 division
Reported on rfxgen tool, it crashes on some parameters
2019-03-02 14:29:04 +01:00
ftk 8ad608888e fix audio pitch 2019-02-23 10:36:25 +00:00
Ray 374811c440 Change ternary operator formatting 2019-02-22 13:13:11 +01:00
Ray a886f5e743 Remove TABS 2019-02-22 12:12:21 +01:00
Ray 641895b5ba Remove end-line spaces 2019-02-21 18:45:19 +01:00
Jens Pitkanen f9963d4ed4 Fix config.h flags 2019-02-14 13:52:18 +02:00
Ray e46c23128e Avoid AudioBuffer symbol collision on macOS
raudio AudioBuffer internal struct collides on macOS with CoreAudio same name struct. In this case struct has been renamed because is internal to raudio... but probably all system should be redesigned.
2019-02-12 15:53:34 +01:00
Ray 944a388b1b Include mini_al directly, no separate module 2019-02-12 12:18:01 +01:00
Ray 9b97cf6972 Merge pull request #731 from MarcoLizza/reorganizing-logging
Reorganizing logging
2019-01-21 10:09:51 +01:00
Marco Lizza aaced97b12 Fixing badly (redefined) enums. 2019-01-21 10:02:53 +01:00
Marco Lizza c1c801e5c3 Reworking log level as incremental. 2019-01-20 22:22:21 +01:00
raysan5 0d2cfce18e Review raudio comments 2019-01-19 16:51:41 +01:00
Ray 93471b0a7c WARNING: Renamed module: audio -> raudio
Planning to promote raudio module as a simple and easy-to-use front-end for the amazing mini_al library, so the name change.

Name comes from raylib-audio but in spanish it also remembers to word "raudo", meaning  "very fast", an analogy that fits perfectly to the usefulness and performance of the library!

Consequently, raylib version has been bumped to 2.4-dev.
2019-01-10 16:32:40 +01:00