summaryrefslogtreecommitdiffstats
path: root/modules/minimp3
Commit message (Collapse)AuthorAgeFilesLines
* Add samples playback supportAdam Scott2024-06-182-0/+41
|
* [Doc] Fix some incorrect uses of `a/an`A Thousand Ships2024-03-131-2/+2
|
* Replace error checks against `size` with `is_empty`A Thousand Ships2024-02-091-1/+1
|
* Implement audio stream playback parameters.Juan Linietsky2024-01-162-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements a way for audio stream playback to be configured via parameters directly in the edited AudioStreamPlayer[2D/3D]. Currently, configuring the playback stream is not possible (or is sometimes hacky as the user has to obtain the currently played stream, which is not always immediately available). This PR only implements this new feature to control looping in stream playback instances (a commonly requested feature, which was lost in the transition from Godot 2 to Godot 3). But the idea is that it can do a lot more: * If effects are bundled to the stream, control per playback instance parameters such as cutoff or resoance, or any other exposed effect parameter per playback instance. * For the upcoming interactive music PR (#64488), this exposes an easy way to change the active clip, which was not possible before. * For the upcoming parametrizable audio support (https://github.com/godotengine/godot-proposals/issues/3394) this allows editing and animating audio graph parameters. In any case, this PR is required to complete #64488. Update modules/vorbis/audio_stream_ogg_vorbis.h Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Update modules/minimp3/audio_stream_mp3.h Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Update modules/minimp3/audio_stream_mp3.h Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Update modules/vorbis/audio_stream_ogg_vorbis.h Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Update doc/classes/AudioStream.xml Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* Correctly register editor-only module classes with the APIYuri Sizov2023-12-151-0/+5
|
* Rename ImportSettings dialogs to have "Dialog" in the nameAaron Franke2023-11-261-1/+1
|
* Add build option for MP1/MP2 audio format support.Ithamar R. Adema2023-09-304-1/+15
| | | | | | | Enabling this adds 3.5k to the template size (Win/64bits). Co-authored-by: Riteo <riteo@posteo.net> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Fill in descriptions for import options in the class referenceHugo Locurcio2023-07-271-1/+16
|
* Fix documentation validation after 8352122e70ec2a582af9a713791eabbbcb935c10Yuri Sizov2023-07-121-1/+1
|
* Merge pull request #49524 from Calinou/document-editor-import-optionsYuri Sizov2023-07-123-0/+27
|\ | | | | | | Document editor import options in the class reference
| * Document editor import options in the class referenceHugo Locurcio2023-06-153-0/+27
| | | | | | | | | | | | | | Tooltips are displayed when hovering import options, both in the Import dock and in the import defaults editor (which is in the Project Settings). Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | Doctool: Remove version attribute from XML headerRémi Verschelde2023-07-061-1/+1
| | | | | | | | | | | | We don't use that info for anything, and it generates unnecessary diffs every time we bump the minor version (and CI failures if we forget to sync some files from opt-in modules (mono, text_server_fb).
* | Bump version to 4.2-devRémi Verschelde2023-07-051-1/+1
| | | | | | | | Keep on waitin'
* | Revert "minimp3: Add a .cpp file to simplify building the single-header ↵Rémi Verschelde2023-06-192-20/+11
| | | | | | | | | | | | implementation" This reverts commit 6fc09121378d78026f799a820ce689f2d30bb0c9.
* | Merge pull request #78271 from akien-mga/minimp3-add-cpp-for-implementationRémi Verschelde2023-06-152-10/+20
|\ \ | | | | | | | | | minimp3: Add a .cpp file to simplify building the single-header implementation
| * | minimp3: Add a .cpp file to simplify building the single-header implementationRémi Verschelde2023-06-152-11/+20
| |/ | | | | | | | | | | | | | | | | | | Single-header libraries like this require passing a bunch of defines _once_ before including the header, but not multiple times. This can make it tricky in user code to know when to request the implementation, if the header needs to be included in multiple files. So properly compiling a .cpp file for the implementation solves this, and also enables us to properly disable warnings on thirdparty implementation code.
* / Style: Harmonize header includes in modulesRémi Verschelde2023-06-154-3/+6
|/ | | | | | | | | | | | | | | | | | | | This applies our existing style guide, and adds a new rule to that style guide for modular components such as platform ports and modules: Includes from the platform port or module ("local" includes) should be listed first in their own block using relative paths, before Godot's "core" includes which use "absolute" (project folder relative) paths, and finally thirdparty includes. Includes in `#ifdef`s come after their relevant section, i.e. the overall structure is: - Local includes * Conditional local includes - Core includes * Conditional core includes - Thirdparty includes * Conditional thirdparty includes
* Bump version to 4.1-devRémi Verschelde2023-03-011-1/+1
| | | | Can't stop, won't stop, they said, huh?
* docs: replace File with FileAccessJiri Suchan2023-01-301-6/+2
|
* Disable OGG and MP3 looping by default on importJuan Linietsky2023-01-221-1/+1
| | | | | | * From Godot 4.0 onwards, proper music looping is supported which requires setting the BPM and then the loop point in beats. * As such, importing with loop by default does not serve much of a purpose. Its annoying to disable for SFX or clips that do not loop and it also requires manual intervention to loop music. * This way, it should work out of the box for any sound effect or non looping audio clip, and manual work is required anyway for looping music.
* One Copyright Update to rule them allRémi Verschelde2023-01-056-174/+174
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Change time parameters and variables to double typeDave Palais2022-09-262-13/+13
| | | | Addresses #65313
* Make "Godot source files" comment consistent in modulesAaron Franke2022-08-051-1/+1
|
* Swap arguments of ResourceSaver.save()kobewi2022-07-291-1/+1
|
* Implement BPM supportreduz2022-07-235-9/+145
| | | | | | | | | | | Based on #62896, only implements the BPM support part. * Implements BPM support in the AudioStreamOGG/MP3 importers. * Can select BPM/Bar Size and total beats in a song file, as well as edit looping points. * Looping is now BPM aware * Added a special importer UI for configuring this. * Added a special preview showing the audio waveform as well as the playback position in the resource picker. * Renamed `AudioStream::instance` to `instantiate` for correctness.
* Merge pull request #47935 from HaSa1002/doc-loading-run-timeRémi Verschelde2022-07-201-1/+24
|\
| * Document how to load Images and MP3 files at run-timeJohannes Witt2022-06-161-1/+24
| |
* | Merge pull request #55846 from ellenhp/fix_ogg_edge_casesRémi Verschelde2022-06-221-1/+3
|\ \ | |/ |/| Fix ogg edge cases
| * Fix ogg edge casesEllen Poe2022-04-171-1/+3
| |
* | Replace most uses of Map by HashMapreduz2022-05-162-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* | Refactor module initializationreduz2022-05-042-4/+13
|/ | | | | | | * Changed to use the same stages as extensions. * Makes the initialization more coherent, helping solve problems due to lack of stages. * Makes it easier to port between module and extension. * removed the DRIVER initialization level (no longer needed).
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-5/+2
|
* Discern between virtual and abstract class bindingsreduz2022-03-101-1/+1
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Add an XML schema for documentationHugo Locurcio2022-02-151-1/+1
| | | | | | | | This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
* Update copyright statements to 2022Rémi Verschelde2022-01-036-12/+12
| | | | Happy new year to the wonderful Godot community!
* AudioStreamMP3: expose loop properties to the editorVincent2021-12-031-2/+2
|
* Fix crash when loading an invalid mp3 fileVincent2021-12-012-22/+8
|
* Add path to functions that return iporter optionsreduz2021-11-142-4/+4
| | | | | | | -Allows displaying custom options for specific file format variants -Added support for scene format import to retrieve custom options This PR is necessary for #54886 to be implemented properly.
* Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-031-3/+3
| | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* Fix some LGTM errors of "Multiplication result converted to larger type"Aaron Franke2021-10-121-1/+1
|
* Don't generate empty doc sections and reduce code duplicationAaron Franke2021-09-201-4/+0
|
* Add polyphony to Audio Stream Player nodesEllen Poe2021-09-072-0/+6
|
* Require AudioStream::mix to return the number of frames successfully mixedEllen Poe2021-08-272-3/+7
|
* Implement the ability to disable classesreduz2021-07-131-1/+1
| | | | | | | * This PR adds the ability to disable classes when building. * For now it's only possible to do this via command like: `scons disable_classes=RayCast2D,Area3D` * Eventually, a proper UI will be implemented to create a build config file to do this at large scale, as well as detect what is used in the project.
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-193-3/+3
|
* Better format arguments in variant parserMichael Alexsander Silva Dias2021-06-181-1/+1
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-112-2/+2
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Rename File::get_len() get_length()Marcel Admiraal2021-05-251-1/+1
|
* Make all file access 64-bit (uint64_t)Pedro J. Estébanez2021-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the types of a big number of variables. General rules: - Using `uint64_t` in general. We also considered `int64_t` but eventually settled on keeping it unsigned, which is also closer to what one would expect with `size_t`/`off_t`. - We only keep `int64_t` for `seek_end` (takes a negative offset from the end) and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means we only need to guard against passing negative values in `core_bind.cpp`. - Using `uint32_t` integers for concepts not needing such a huge range, like pages, blocks, etc. In addition: - Improve usage of integer types in some related places; namely, `DirAccess`, core binds. Note: - On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for big files on 32-bit Windows builds made with that toolchain. We might add a workaround. Fixes #44363. Fixes godotengine/godot-proposals#400. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-2/+2
| | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.