Commit Graph

81 Commits

Author SHA1 Message Date
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
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 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
mafiesto4 76c1045444 Code cleanup after #823 2022-11-23 19:18:30 +01:00
Tryibion 4515844219 changed how the actor toolbox is created. Allows fo user to enter their own tabs and actors with an attribute 2022-11-11 16:37:45 -06:00
Preben Eriksen b02020f801 PE: AudioSource - Stop() folowed by Play() now act like a restart. 2022-11-10 10:51:20 +01:00
mafiesto4 e98621b887 Code style fix
#814
2022-11-06 23:05:36 +01:00
Tryibion 1af0188a3c changed how actor context menus are created. 2022-10-31 19:18:43 -05:00
mafiesto4 57e812d336 Fix audio clips streaming to be thread-safe when audio sources play
#786
2022-10-29 18:57:57 +02:00
mafiesto4 4ba93d9d86 Code cleanup #765 2022-10-29 12:04:42 +02:00
Preben Eriksen fd831f569c PE: Fix - Streaming audio could not loop. ( https://github.com/FlaxEngine/FlaxEngine/issues/786 ) 2022-10-26 09:54:10 +02:00
mafiesto4 9d26004864 Fix looping streamable audio clips with multiple chunks 2022-07-26 14:36:50 +02:00
mafiesto4 3dbff3cab7 Fix crash when closing handles to asset file while any asset streaming task is active for asset from that file 2022-07-18 13:02:34 +02:00
mafiesto4 92eb19291d Fix crash when using ogg audio bit depth higher than 16 2022-07-13 10:04:55 +02:00
mafiesto4 a881c90b2e Refactor engine to support double-precision vectors 2022-06-13 00:40:32 +02:00
mafiesto4 5e9dac49a8 Remove breakpoint on OpenAL error 2022-02-01 17:38:55 +01:00
mafiesto4 26191935a7 Fix issues with OpenAL audio backend 2022-02-01 17:34:46 +01:00
mafiesto4 8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
mafiesto4 c4b6865659 Merge branch 'master' into mac 2022-01-09 19:15:15 +01:00
mafiesto4 192af7ec14 Refactor native core objects to simplify usage for newcomers 2022-01-08 15:06:23 +01:00
mafiesto4 dd569b9f1e Add audio support for Mac (via OpenAL soft) 2022-01-05 11:09:36 +01:00
mafiesto4 d017dd14ca Add Mac platform 2021-12-27 14:04:16 +01:00
mafiesto4 224b9b8930 Fix mono audio playback with XAudio2 2021-12-12 12:51:08 +01:00
mafiesto4 83046494a5 Fix crash 2021-12-11 23:03:37 +01:00
mafiesto4 660c8ef95c Fix audio volume and stereo on XAudio backend
#675
2021-12-07 18:23:05 +01:00