Spartan322
4f08ff1a11
Merge commit godotengine/godot@a3b42d85d2
2025-08-13 19:56:49 -04:00
Adam Scott
1328921e04
[Web] Fix sample playback deletion and AudioStreamPolyphonic issue
2025-07-10 08:46:34 -04:00
Spartan322
a30eb5a590
Merge commit godotengine/godot@6a6a1168a5
2025-05-07 10:35:16 -04:00
Thaddeus Crews
01fc9aee6c
Core: Modernize C headers with C++ equivalents
2025-05-02 08:23:01 -05:00
Spartan322
8122592328
Merge commit godotengine/godot@80a3d205f1
2025-05-01 01:30:09 -04:00
lawnjelly
f8f350a32a
Add GLOBAL_GET cached macros.
...
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com >
2025-04-30 15:08:50 +01:00
Spartan322
2b59059dde
Merge commit godotengine/godot@2d3bdcac35
2025-04-19 16:05:28 -04:00
Thaddeus Crews
97241ffea6
Merge pull request #99555 from Meorge/mute-game
...
Add "Mute Game" toggle in Game view
2025-03-19 17:46:11 -05:00
Malcolm Anderson
6858607e74
Add "Mute Audio" button to Game view in editor
...
Update servers/audio_server.cpp
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
Apply suggestions from code review
Co-authored-by: Adam Scott <ascott.ca@gmail.com >
Fix a few lines for new member names
Add command-line argument `--debug-mute-audio`, and pass it to game if started with mute enabled
Apply suggestions from code review
Co-authored-by: arkology <43543909+arkology@users.noreply.github.com >
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com >
Fix icon for svgo
2025-03-19 08:20:17 -07:00
kobewi
10f6c01b9c
Remove ABS in favor of Math::abs
2025-03-19 13:52:40 +01:00
Pāvels Nadtočajevs
28a696979d
Fix AudioServer missing deletes.
2025-03-10 12:00:53 +02:00
A Thousand Ships
466590d0ec
Use get_slicec instead of get_slice for single character splitters
2025-03-08 20:36:37 +01:00
Spartan322
889d027c1a
Merge commit godotengine/godot@d2ada64a03
2025-01-08 07:52:51 -05:00
Spartan322
4ffc9ac18b
Merge commit godotengine/godot@bdf625bd54
2025-01-04 00:55:26 -05:00
Adam Scott
a12c1d3ddb
Stop AudioStreamPlayback only if it's not playing
2025-01-03 16:26:08 -05:00
Hugo Locurcio
62c17911ea
Add more property hint ranges for project settings
...
- Tweak property hint ranges for some networking settings to ensure
the minimum values don't break the debugger entirely.
- Ensure shader time rollover is set to at least 1, as 0 causes a division by
zero to occur.
All relevant project settings are now covered by a range hint.
2024-12-23 18:22:32 +01:00
Spartan322
fa0b4af786
Merge commit godotengine/godot@a7a2a12bfd
2024-12-21 05:32:01 -05:00
Yufeng Ying
e88e30c273
Remove unused headers in servers.
...
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com >
2024-12-20 18:51:01 +08:00
Malcolm Anderson
2f5b97c7f9
Add volume_linear property and methods for audio-related classes
...
Remove default value from `volume_linear` property documentation
Remove `volume_linear` internal property from `AudioBusLayout`
Update doc/classes/AudioEffectAmplify.xml [no ci]
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
Make documentation more concise [no ci]
2024-12-18 12:41:57 -08:00
Spartan322
b8b8a7127e
Merge commit godotengine/godot@87318a2fb7
2024-11-06 01:12:36 -05:00
Thaddeus Crews
4dc69c827b
Merge pull request #98131 from KeyboardDanni/remove_playback_fadein
...
Remove playback fade-in and add comments to `AudioServer`
2024-11-05 18:36:15 -06:00
Danni
e55ceebbf9
Add some more comments to AudioServer and remove playback fade-in
...
Co-authored-by: Ellen Poe <ellen@ellenhp.me >
2024-11-05 15:36:42 -05:00
Spartan322
82de309d58
Merge commit godotengine/godot@8004c7524f
2024-10-30 05:22:24 -04:00
Thaddeus Crews
73830b3c12
Merge pull request #88628 from bruvzg/i_have_no_idea_what_im_doing
...
[macOS/iOS] Use hardware sampling rates for audio I/O.
2024-10-29 19:25:47 -05:00
George L. Albany
77eaec766e
Merge pull request #818 from Spartan322/fixup/copyright-headers
...
Fix copyright headers referring to Godot
2024-10-27 18:22:19 +00:00
Spartan322
6beb1eef9a
Fix copyright headers referring to Godot
2024-10-27 11:17:29 -04:00
Spartan322
953af98c79
Merge commit godotengine/godot@61accf0605
2024-10-26 22:41:20 -04:00
bruvzg
c8609f4c0f
[macOS/iOS] Use hardware sampling rates for audio I/O.
2024-10-25 19:26:24 +03:00
Hugo Locurcio
77c31b9cc8
Add AudioServer.get_driver_name() to get the actual audio driver name
...
The project setting does not reflect CLI argument overrides
(including `--headless` which sets the audio driver to `Dummy`),
so it can't be reliably used to detect which audio driver is
actually being used at run-time.
2024-10-22 23:14:59 +02:00
Dubhghlas McLaughlin
e8542b06ac
Rebrand preambles to Redot
...
Credits:
Co-authored-by: Skogi <skogi.b@gmail.com >
Co-authored-by: Spartan322 <Megacake1234@gmail.com >
Co-authored-by: swashberry <swashdev@pm.me >
Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se >
Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com >
Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com >
Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com >
Co-authored-by: radenthefolf <radenthefolf@gmail.com >
Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com >
Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com >
Co-authored-by: decryptedchaos <nixgod@gmail.com >
Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com >
Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com >
Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com >
Co-authored-by: Mister Puma <MisterPuma80@gmail.com >
Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com >
Co-authored-by: SingleError <isaaconeoneone@gmail.com >
Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com >
2024-10-11 02:26:51 -04:00
BigPotatoAss
623dc97064
Fixed _stop() not being called when stop() is called
2024-10-02 10:00:10 +03:30
Stuart Carnie
5cfacc8767
[Editor,Servers]: Minor optimizations
2024-09-12 06:22:04 +10:00
Adam Scott
d3ddce6b88
Fix leak when using audio samples instead of streams
2024-09-04 12:56:03 -04:00
Rémi Verschelde
24f97f3f08
Merge pull request #94808 from RandomShaper/aud_srv_cod_sty
...
AudioServer: Fix code style issues
2024-08-28 00:12:25 +02:00
Rémi Verschelde
f2fb3353cb
Merge pull request #95197 from yahkr/95128-audio-fix
...
Fix AudioStreamPlayer `get_playback_position()` for web build
2024-08-16 14:33:05 +02:00
Yahkub-R
bcd776e441
Fix AudioStreamPlayer get_playback_position() for web build
2024-08-08 15:58:25 -04:00
Pedro J. Estébanez
1cc485ba1f
AudioServer: Fix code style issues
...
- Drop STL copy in favor of old-school for loops.
- Be explicit about loads and stores to atomic value. (This also fixes an error in certain compiler toolchains.)
2024-07-26 18:59:09 +02:00
Adam Scott
2f5f84b470
Fix audio samples not being able to be "finished"
2024-07-17 10:45:38 -04:00
Adam Scott
52fa4f05f3
Add samples playback support
2024-06-18 11:06:31 -04:00
kobewi
a262d2d881
Add shorthand for using singleton string names
2024-05-11 18:53:08 +02:00
Rémi Verschelde
0618bff394
Merge pull request #86777 from Mickeon/autocomplete-classdb
...
Add autocompletion for ClassDB & AudioServer
2024-03-01 14:56:12 +01:00
Micky
920dff3445
Add autocompletion for ClassDB & AudioServer
2024-02-29 20:48:06 +01:00
A Thousand Ships
d8b29efe66
Fix member names of AudioFrame to match extension
2024-02-13 15:37:09 +01:00
A Thousand Ships
684752e75b
Replace error checks against size with is_empty
2024-02-09 12:50:15 +01:00
jsjtxietian
cf1ede9129
Fix data race regarding prof_time in AudioDriver and AudioServer
2024-02-06 16:55:27 +08:00
Rémi Verschelde
535a2a6f27
Merge pull request #86581 from MJacred/optimize/audio_server
...
Optimize `AudioServer::_driver_process()`
2024-01-26 11:43:25 +01:00
MJacred
43a709fd0d
Optimize AudioServer::_driver_process()
...
Move expensive calculations outside inner hot loops.
Forward-ported from 3.6
2024-01-26 10:11:13 +01:00
Muller-Castro
96a95cb974
Add const lvalue ref to container parameters
2024-01-05 14:49:57 -03:00
Rémi Verschelde
ca7fb29203
Merge pull request #84800 from gshadows/fix_options_range
...
Fix unlimited project option ranges that could cause crashes.
2024-01-03 09:59:31 +01:00
MJacred
e81887f996
Fix AudioServer::start_playback_stream does not iterate through given p_bus_volumes
2023-12-28 18:00:37 +01:00