103 Commits

Author SHA1 Message Date
mafiesto4 d729eb2b24 Fix crash when playing uninitialized audio source
#2441
2024-04-15 00:01:59 +02:00
mafiesto4 9e11d45c1c Update copyright year 2024-03-19 21:52:46 +01:00
mafiesto4 4df56cb506 Refactor 3D audio implementation in XAudio2 backend to match OpenAL
#1612
2024-02-29 01:41:40 +01:00
mafiesto4 53bd576ade Fix game settings serialization bug 2024-02-28 02:05:26 +01:00
mafiesto4 14902dc29e Merge remote-tracking branch 'origin/master' into 1.8
# Conflicts:
#	Flax.flaxproj
2024-02-26 19:49:39 +01:00
mafiesto4 859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
mafiesto4 6cd9895427 Merge remote-tracking branch 'origin/master' into 1.8 2024-02-07 09:40:45 +01:00
mafiesto4 5fc768bbbd Fix spatial audio playback in OpenAL with Large Worlds enabled
#2015
2024-02-06 17:10:55 +01:00
mafiesto4 f9448c3b42 Skip calling SetTime api if start time is unused #2203 2024-02-06 10:59:55 +01:00
mafiesto4 1d4bb7a4f4 Remove unused doc comment 2024-02-05 16:30:58 +01:00
mafiesto4 b69d54a5ca Add AudioBackendTools for sharing spatial audio impl for consoles 2024-02-05 16:03:31 +01:00
whocares77 39e7be6322 Added "Start Time" option for Audio Source Actor
Added ability to set the start time of playback if "Play On Start" is enabled.
2024-01-24 19:58:29 +03:00
mafiesto4 4ae57e7769 Fix issue with asset loading to be properly canceled when reimporting file
#1894
2023-11-09 14:52:28 +01:00
Vizepi 00dc5d44d4 #1716 Do not rebuild contexts twice in a row 2023-10-15 12:24:25 +02:00
mafiesto4 455b3f2446 Fix XAudio2 playback when seeking audio start play location 2023-10-12 15:20:23 +02:00
mafiesto4 69fb2c331f Minor improvements to audio 2023-10-12 14:03:43 +02:00
mafiesto4 749c0cacb4 Fix audio playback in XAudio2 when clip is 3D but source is 2D 2023-10-12 13:11:07 +02:00
mafiesto4 b19bf57dfb Add logging any XAudio2 backed errors 2023-10-12 13:10:34 +02:00
mafiesto4 09f2be907e Merge remote-tracking branch 'origin/master' into 1.7
# Conflicts:
#	Flax.flaxproj
2023-10-09 12:40:47 +02:00
mafiesto4 a698095bdd Fix spatial audio playback when clip is set after the audio source was enabled
#1622
2023-10-06 14:34:08 +02:00
mafiesto4 92e28f66af Fix various issues with audio clip data buffers to reduce artifacts (especially when using 24-bit data) 2023-10-06 14:19:22 +02:00
mafiesto4 560f699dd8 Fix various issues with OpenAL buffers playback (do proper bit convertion) 2023-10-06 13:59:03 +02:00
mafiesto4 176123eb1f Fix AudioClip loading error when buffer start times diff has rounding error 2023-10-06 11:40:39 +02:00
mafiesto4 d71c171412 Cleanup code in #1367 and fix api compatibility, revert joint changes 2023-09-28 13:10:58 +02:00
mafiesto4 8906453b15 Merge remote-tracking branch 'origin/master' into 1.7 2023-08-28 09:11:29 +02:00
GoaLitiuM 3939106e78 Fix crash with XAudio2 backend when source is playing
The array containing the sources might grow and invalidate existing
pointers to sources while some of the previous sources are still playing.
2023-08-25 22:09:00 +03:00
mafiesto4 9b0fdb2cbd Disable assertions in Release build mode 2023-06-19 13:59:04 +02:00
mafiesto4 e7804f9d02 Add audio to iOS via OpenAL 2023-06-10 12:05:13 +02:00
mafiesto4 390460907d Merge remote-tracking branch 'origin/master' into 1.6
# Conflicts:
#	Source/Editor/Scripting/CodeEditors/VisualStudioCodeEditor.cpp
#	Source/Tools/Flax.Build/Deps/Dependencies/OpenAL.cs
2023-04-22 18:59:41 +02:00
mafiesto4 2090cba743 Fix crash when using multiple audio clips streaming with XAudio2 backend 2023-04-22 13:01:05 +02:00
mafiesto4 8d0cfcf05d Fix missing initial audio source volume setup for XAudio2 2023-04-22 12:26:10 +02:00
mafiesto4 3e8a29cdd5 Improve XAudio2 backend playback quality for spatial multi-channel sounds 2023-04-21 15:59:41 +02:00
mafiesto4 3d16f97e4c Improve audio source setup clip after all properties are read 2023-04-21 15:59:18 +02:00
mafiesto4 8457687025 Add Pan to Audio Source for stereo panning 2023-04-21 15:58:22 +02:00
mafiesto4 eb613d3e8a Add DopplerFactor to Audio Source 2023-04-20 16:01:27 +02:00
mafiesto4 8cfc14f4b1 Add EnumAddFlags for easy flags appending 2023-04-20 15:21:47 +02:00
mafiesto4 1ffe8a7b60 Add OpenAL AL_SOFT_source_spatialize extension support for stereo spatial audio playback
Add `AllowSpatialization` option to `AudioSource`
2023-04-20 15:01:22 +02:00
mafiesto4 094a3cfe5a Refactor 3d audio for good spatial sound quality 2023-04-20 14:54:12 +02:00
mafiesto4 d719ef8d03 Fix crash when reimporting audio clip while it's being played 2023-04-20 10:56:57 +02:00
mafiesto4 dd9fa6e949 Fix OpenAL and XAudio2 audio backend listener/source velocity to prevent too strong Doppler effect 2023-04-19 23:24:43 +02:00
mafiesto4 552ce3e495 Add AudioDataInfo.Length 2023-04-19 15:15:28 +02:00
mafiesto4 1e1c296300 Cleanup HRTF support code #963 2023-04-19 13:12:27 +02:00
mafiesto4 c615ad18a8 Build deps for iOS 2023-03-16 22:13:37 +01:00
mafiesto4 0ba261d338 Add iOS platform (refactor Mac into shared Apple platform impl) 2023-03-15 20:58:23 +01:00
envision3d b450c65c93 fix incorrect audio direction calculation 2023-03-05 03:50:51 -06:00
envision3d 4ce89f56cc implement openal hrtf audio support
- upgrade openal version
        - add support to create openal context with hrtf enabled
        - add option in audio settings for hrtf enablement
        - add static property on Audio class for runtime toggling of hrtf
	- fix bug with left/right and front/back being reversed
2023-03-04 20:37:56 -06:00
mafiesto4 c09afe55a3 Merge branch 'fix-audio-settings' of https://github.com/PrecisionRender/FlaxEngine into PrecisionRender-fix-audio-settings 2023-02-05 12:49:15 +01:00
PrecisionRender 0461a78cdb Fix audio settings not applying doppler factor 2023-01-24 22:14:45 -06:00
mafiesto4 9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Preben Eriksen de2374ad40 Merge commit 'b02020f8017bb4f3f22440bc39b60857ab364179' into PE-1.4-5
* commit 'b02020f8017bb4f3f22440bc39b60857ab364179':
  PE: AudioSource - Stop() folowed by Play() now act like a restart.
2022-11-28 12:56:30 +01:00