summaryrefslogtreecommitdiffstats
path: root/servers/audio_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix various warnings: [-Waddress], [-Wpointer-arith], [-Wwrite-strings], ↵Rémi Verschelde2018-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | [-Wreturn-local-addr] and more Fixes the following GCC 5 warnings: ``` core/os/file_access.cpp:49:19: warning: the address of 'FileAccess::create_func' will always evaluate as 'true' [-Waddress] servers/audio_server.cpp:192:70: warning: comparison with string literal results in unspecified behaviour [-Waddress] drivers/gles2/rasterizer_storage_gles2.cpp:4095:90: warning: NULL used in arithmetic [-Wpointer-arith] modules/gdnative/register_types.cpp:237:3: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] platform/android/export/export.cpp:207:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] modules/gdscript/gdscript.h:150:67: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:119:56: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:123:56: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:127:50: warning: returning reference to temporary [-Wreturn-local-addr] servers/physics_2d/collision_object_2d_sw.h:131:52: warning: returning reference to temporary [-Wreturn-local-addr] editor/plugins/skeleton_editor_plugin.cpp:34:36: warning: extra tokens at end of #include directive modules/bullet/bullet_types_converter.cpp:31:9: warning: #pragma once in main file editor/import/editor_scene_importer_gltf.cpp:1996:51: warning: name lookup of 'i' changed modules/visual_script/visual_script_property_selector.cpp:402:45: warning: name lookup of 'E' changed scene/gui/tree.cpp:1268:25: warning: name lookup of 'i' changed scene/resources/visual_shader.cpp:808:32: warning: name lookup of 'i' changed ```
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-4/+4
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* log to console if falling back to dummy audio driverthfrwn2018-08-271-1/+5
|
* Fix arg name in docs, some copy-paste errorsPoommetee Ketson2018-08-211-2/+2
|
* Add Dummy AudioDriver into the AudioDriverManager listMarcelo Fernandez2018-08-131-11/+8
|
* Renamed AudioDriver audio_input_* vars to input_*Marcelo Fernandez2018-07-271-0/+11
|
* Implemented capture device selection for CoreAudioMarcelo Fernandez2018-07-271-3/+7
|
* Modified Microphone implementation to handle only one device at a time (WIP)Marcelo Fernandez2018-07-271-124/+13
|
* Experimental microphone support.Saracen2018-07-271-0/+135
|
* Merge pull request #15967 from Gamblify/AudioRecordingModuleRémi Verschelde2018-07-261-2/+2
|\ | | | | Audio Recording from godot
| * Audio Recording moduleGustav Lund2018-07-261-2/+2
| | | | | | | | | | | | Implements an Audio bus effect that outputs the audio from the bus into a wav file Now channels audio recording into an AudioStreamSample instead of saving to wav
* | Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-37/+37
|/ | | | | | | | | | | | | | | | | | | | | | | This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
* -Project/Editor settings now use new inspectorJuan Linietsky2018-07-191-3/+3
| | | | | | | -Project/Editor settings now show tooltips properly -Settings thar require restart now will show a restart warning -Video driver is now visible all the time, can be changed easily -Added function to request current video driver
* Add Audio Server profiling time to the profilerMarcelo Fernandez2018-07-171-0/+88
|
* Added Performance.AUDIO_OUTPUT_LATENCYMarcelo Fernandez2018-07-171-0/+9
|
* Remove audio latency printGeorge Marques2018-06-201-23/+0
|
* Removed unused AudioServer::update functionMarcelo Fernandez2018-06-151-3/+0
|
* Added new audio device functions to set/get the audio deviceMarcelo Fernandez2018-03-261-0/+30
|
* Fix possible crash when audio channels changeMarcelo Fernandez2018-03-191-11/+30
|
* AudioServer emit bus_layout_changed signal when adding, moving or deleting a busMrCdK2018-02-231-0/+6
|
* Fix typos with codespellluz.paz2018-02-211-2/+2
| | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ```
* Bind many more properties to scriptsBojidar Marinov2018-01-121-8/+8
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* found via cppcheck:firefly24422018-01-031-1/+0
| | | | | | | remove code that will never run make definition and declaration names for parameters match change floats that were being set to bool values remove pointer that is never used
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Delete AudioServer buses after driver shutdownBernhard Liebl2017-12-291-4/+4
|
* Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky2017-11-251-5/+5
| | | | | | wrong function, leading to unnecesary copy on writes and reduced performance.
* Merge pull request #12014 from hi-ogawa/fix-video-playbackRémi Verschelde2017-11-131-0/+2
|\ | | | | Fix video playback
| * Fix video playbackMatt Hughes2017-10-141-0/+2
| | | | | | | | | | | | | | | | This adds support to - VideoPlayer - VideoStreamWebm - VideoStreamTheora
* | Improved WASAPI driver logic when devices are connected or disconnectedMarcelo Fernandez2017-10-311-1/+1
|/
* Rename pos to position in user facing methods and variablesletheed2017-09-201-2/+2
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Merge pull request #11252 from marcelofg55/fix_noaudio_crashRémi Verschelde2017-09-171-0/+39
|\ | | | | Fix crash when no audio driver is available
| * Fix crash when no audio driver is availableMarcelo Fernandez2017-09-131-0/+39
| |
* | Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog2017-09-151-0/+4
|\ \ | |/ |/| Fix enums bindings
| * Fix enums bindingsMaxim Sheronov2017-09-131-0/+4
| | | | | | | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* | Fixed issues with surround sound on audio serverMarcelo Fernandez2017-09-121-18/+31
|/
* Fix various assorted warningsHein-Pieter van Braam2017-09-081-1/+2
| | | | | Fix various warnings that don't have enough instances to merit individual commits. Also fixes a potential bug in audio_server.cpp.
* Corrections to audio buffer size calculationsMarcelo Fernandez2017-09-011-0/+23
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-2/+2
| | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* -Volume sliders, mute, solo and fx bypass are functional, closes #9021Juan Linietsky2017-08-181-13/+61
| | | | -Fixed tree reselect, makes reselecting an audio bux FX work
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-4/+4
|
* Fix double finalisation of audio driversMarcelo Fernandez2017-08-021-2/+3
|
* Fix AudioServer::finish not getting called while quittingMarcelo Fernandez2017-08-011-1/+2
|
* Clang-formatting *.cpp and *.h (some files excluded)Poommetee Ketson2017-07-221-1/+1
|
* -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-191-1/+1
| | | | -Added system for feature overrides, it's pretty cool :)
* Add object type hint for docsPoommetee Ketson2017-07-191-2/+2
|
* Added get_bus_index to AudioServerBruno Lourenço2017-07-101-0/+10
|
* Refactor 'treshold' to 'threshold'Poommetee Ketson2017-07-081-2/+2
|
* AudioServer: Set singleton to NULL when destructedIgnacio Etcheverry2017-04-271-0/+1
|