summaryrefslogtreecommitdiffstats
path: root/drivers/pulseaudio
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove duplicate WARN_PRINT macro.Marcel Admiraal2020-02-051-2/+2
|
* Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-5/+5
|
* Revert "Exposes capture methods to AudioServer + documentation" #30468Rémi Verschelde2020-01-201-10/+10
| | | | | | | | | | | | | | | | | Reverts the following commits: - c81ec6f26d40b70283958a4ef3e216fb32cbaf14: "Exposes capture methods to AudioServer, variable renames for consistency, added documentation." - 47c558b98abf842910c780294314326662410cdf: "Expose audio callbacks as signals." - dabaa11b3c451e9b8f2cca7e563bd9ec51edb169: "Fix to make sure the capture buffers are deallocated at shutdown. Silences warnings." Some documentation improvements were kept for pre-existing methods. See rationale for reverting these changes in #30468.
* Update copyright statements to 2020Rémi Verschelde2020-01-012-4/+4
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Check for null pointer in PulseAudio server info callback.Marcel Admiraal2019-12-281-0/+2
|
* Merge pull request #31077 from qarmin/coverity_bugsRémi Verschelde2019-08-071-1/+4
|\ | | | | Change some code proposed by Coverity and Cppcheck
| * Add some code changes/fixes proposed by Coverity and Clang Tidyqarmin2019-08-071-1/+4
| |
* | Exposes capture methods to AudioServer, variable renames for consistency,Saracen2019-07-151-10/+10
|/ | | | added documentation.
* Explicitly set a channel map when initialising the Pulseaudio stream.zwostein2019-07-011-0/+8
|
* Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-201-1/+1
| | | | Fixes #25316.
* Merge pull request #24301 from marcelofg55/default_device_pulseaudioRémi Verschelde2019-01-071-0/+42
|\ | | | | PulseAudio driver will now change the device if the default system device changes
| * PulseAudio driver will now change the device if the default system device ↵Marcelo Fernandez2018-12-121-0/+42
| | | | | | | | changes
* | Update copyright statements to 2019Rémi Verschelde2019-01-012-4/+4
|/ | | | Happy new year to the wonderful Godot community!
* Moved member variables to initializer listWilson E. Alvarez2018-12-111-27/+20
|
* Fix possible error when switching audio devices with PulseAudioMarcelo Fernandez2018-11-251-1/+4
|
* Fix distorted sound with PulseAudio and uneven channelsMarcelo Fernandez2018-11-171-3/+3
|
* Fix possible audio input buffer issuesMarcelo Fernandez2018-10-202-11/+8
|
* SCons: Build thirdparty code in own env, disable warningsRémi Verschelde2018-09-281-2/+0
| | | | | Also remove unnecessary `Export('env')` in other SCsubs, Export should only be used when exporting *new* objects.
* Fix warnings about unhandled enum value in switch [-Wswitch]Rémi Verschelde2018-09-271-1/+4
| | | | | | | | | | | Fixes GCC 5 warnings of the form: core/io/http_client.cpp:288:9: warning: enumeration value 'STATUS_SSL_HANDSHAKE_ERROR' not handled in switch [-Wswitch] core/io/marshalls.cpp:806:9: warning: enumeration value 'AABB' not handled in switch [-Wswitch] Those can be trivial cases where adding a default fallback is the solution, or more complex issues/hidden bugs where missed values are actually meant to be handled.
* Fix warnings for comparison between signed and unsigned integers ↵Rémi Verschelde2018-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [-Wsign-compare] Also turn off -Wsign-compare warnings in the future, we do not consider them important. Fixes the following GCC 5 warnings: ``` core/node_path.cpp:279:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] core/oa_hash_map.h:169:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] core/oa_hash_map.h:314:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/gles2/shader_gles2.cpp:985:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/gles3/rasterizer_storage_gles3.cpp:1075:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/pulseaudio/audio_driver_pulseaudio.cpp:343:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/editor_plugin.cpp:525:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/editor_properties_array_dict.cpp:747:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/plugins/spatial_editor_plugin.cpp:2078:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/plugins/spatial_editor_plugin.cpp:4096:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/plugins/sprite_editor_plugin.cpp:100:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/cvtt/image_compress_cvtt.cpp:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/cvtt/image_compress_cvtt.cpp:134:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/cvtt/image_compress_cvtt.cpp:339:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/etc/image_etc.cpp:222:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/gdnative/register_types.cpp:242:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/gdnative/register_types.cpp:258:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/opensimplex/simplex_noise.cpp:200:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/opensimplex/simplex_noise.cpp:222:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/opensimplex/simplex_noise.cpp:246:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/android/export/export.cpp:1085:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/android/export/export.cpp:1489:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/android/export/export.cpp:1623:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:206:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:356:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:406:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:493:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/audio_stream_player_3d.cpp:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/resources/audio_stream_sample.cpp:565:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/resources/audio_stream_sample.cpp:571:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_rb_resampler.cpp:156:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ``` The following warnings were not fixed, as they implied casting for no gain: ``` core/io/packet_peer.cpp:228:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] core/io/resource_format_binary.cpp:109:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/gles2/rasterizer_scene_gles2.cpp:144:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/unix/file_access_unix.cpp:249:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:889:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:1020:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:1154:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:2255:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/resources/bit_mask.cpp:336:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_stream.cpp:141:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_stream.cpp:150:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_stream.cpp:154:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio_server.cpp:86:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio_server.cpp:89:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ```
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-4/+2
| | | | | | 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.
* Add print_verbose to print to stdout only in verbose modeRémi Verschelde2018-08-241-7/+3
| | | | | | Equivalent of the cumbersome: if (OS::get_singleton()->is_stdout_verbose()) print_line(msg);
* Fix compile error with PulseAudio driver and clangMarcelo Fernandez2018-08-111-2/+2
|
* Added support for single channel inputs for PulseAudioMarcelo Fernandez2018-07-272-20/+64
|
* Renamed AudioDriver audio_input_* vars to input_*Marcelo Fernandez2018-07-271-8/+8
|
* Implemented capture device selection for PulseAudio (marcelofg55)Saracen2018-07-272-11/+132
|
* Modified Microphone implementation to handle only one device at a time (WIP)Marcelo Fernandez2018-07-272-64/+130
|
* Experimental microphone support.Saracen2018-07-272-0/+27
|
* Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Removed unnecessary assignmentsWilson E. Alvarez2018-07-241-1/+0
|
* -Project/Editor settings now use new inspectorJuan Linietsky2018-07-191-2/+2
| | | | | | | -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-7/+9
|
* Prevent PulseAudio driver to lock its mutex for too longMarcelo Fernandez2018-05-011-2/+11
|
* Fixed high cpu usage with PulseAudioMarcelo Fernandez2018-04-151-1/+5
|
* Fix PulseAudio problems with 8 channels devicesMarcelo Fernandez2018-04-122-27/+26
|
* Merge pull request #18124 from marcelofg55/pulse_channelsRémi Verschelde2018-04-121-2/+3
|\ | | | | Fix PulseAudio driver for audio devices that report unknown number of channels
| * Fix PulseAudio driver for audio devices that report unknown number of channelsMarcelo Fernandez2018-04-121-2/+3
| |
* | Fix error detecting for PulseAudio pa_stream_new callMarcelo Fernandez2018-04-111-1/+4
|/
* Added new audio device functions to set/get the audio deviceMarcelo Fernandez2018-03-262-115/+293
|
* Support for uneven amount of channels on PulseAudioMarcelo Fernandez2018-03-012-19/+46
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-052-2/+8
| | | | | | 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.
* Update copyright statements to 2018Rémi Verschelde2018-01-012-4/+4
| | | | Happy new year to the wonderful Godot community!
* Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky2017-11-251-1/+1
| | | | | | wrong function, leading to unnecesary copy on writes and reduced performance.
* Fixed issues with surround sound on audio serverMarcelo Fernandez2017-09-122-31/+150
|
* Corrections to audio buffer size calculationsMarcelo Fernandez2017-09-012-13/+32
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-272-2/+2
|
* Add closest_power_of_2 func and implement mix_rate/latency on OS XMarcelo Fernandez2017-08-171-1/+1
|
* -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-191-1/+1
| | | | -Added system for feature overrides, it's pretty cool :)
* Fix property warnings and hide some debug printsRémi Verschelde2017-04-231-1/+0
| | | | | | | | | | "ALL IS GOOD" was a lie. In particular, removes verbose "path not recognized" false positive. The actual logic is to (somewhat naively) check all ResourceFormatLoaders and to pick the first good match, so no need to warn about the formats that do not match the type hint.
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-082-0/+2
|