abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Matthias Mailänder
9b1cec7712
Add support for gapless looping music.
2021-11-11 23:49:54 +01:00
tovl
a428aaa602
Make sure OpenAlSound.Source is never accessed after the source is freed for reuse
2021-10-01 21:15:52 +02:00
tovl
2bc03b4d84
Fix OpenAlSound.Complete being incorrect when OpenAl source is reused.
2021-10-01 21:15:52 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Abdurrahmaan Iqbal
72eb4e1749
Fix #17230 : Dummy audio output class
2019-11-14 23:46:14 +01:00
Paul Chote
7cf939fc68
Update OpenAL-CS.
...
Required for Win64 support.
2019-05-26 23:13:37 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
RoosterDragon
7760c41bd9
Avoid array resizing in OpenAlAsyncLoadSound.
...
- Where it is accessible, use the length of the stream to presize the MemoryStream to the correct size.
- Instead of copying out the result via ToArray, grab the underlying buffer via GetBuffer and use that to create the sound source.
This avoids extraneous copying of the array containing the audio.
2017-12-12 00:01:04 +01:00
RoosterDragon
3b4904775a
Remove OpenAlStreamingSound.
...
Whilst the implementation appears to work most of the time, it sometimes stops playing audio mid-track. This could be an implementation issue, or bugs in the underlying streaming APIs of the OpenAL library. Either way, it is not currently reliable enough to be used.
2017-09-17 15:50:49 +02:00
RoosterDragon
94942cb140
Create OpenAlAsyncLoadSound.
...
This loads the sound inside a task, then begins playing it, avoiding blocking the UI thread. Unlike OpenAlStreamingSound it does not stream the sound from disk, rather, it loads the entire sound into memory and plays it in one go.
2017-09-17 15:50:49 +02:00
Allan Greis Eriksen
5435e34b9a
Audio device names is now shown correcly in the Audio Device combolist.
2017-08-13 18:38:18 +02:00
RoosterDragon
85c948fd8d
Add a streaming audio playback interface.
...
This allows audio to be streamed, rather than needed to be fully loaded into memory.
2017-07-14 23:02:49 +01:00
rob-v
8276b17570
Fix Sound memory leak (OutOfMemoryException), remove Music caching to free memory
2017-06-12 18:33:53 -05:00
Paul Chote
a880562b4b
Add support for moving ISounds after creation.
2017-02-03 21:59:32 +00:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
RoosterDragon
c79ccab1ba
Marshal results in QueryDevices correctly.
2016-10-03 21:47:42 +01:00
Paul Chote
5a7a69a875
Tidy muting code.
2016-08-06 19:53:50 +01:00
Paul Chote
9437a86e7e
Remove legacy sound code and simplify platform init.
2016-08-06 19:53:50 +01:00
RoosterDragon
1c8f9d44df
Clean up ALC sound device correctly.
...
ALC is thread-safe, therefore we can clean up from any thread and do not need to marshal to the main game thread. To clean up the device properly, we must first unset and destroy the context before attempting to close the device.
2016-07-30 14:53:33 +01:00
RoosterDragon
206088efb4
General code cleanup in OpenAlSoundEngine.cs.
2016-07-30 14:50:42 +01:00
Matthias Mailänder
f22bc68d94
Count the string length in the system codepage.
2016-05-20 21:22:12 +02:00
Matthias Mailänder
1df5e556c6
Auto-detect UTF8 instead of assuming ANSI for device names.
2016-05-20 21:22:10 +02:00
Matthias Mailänder
e47383a4fa
Fix NREs in QueryDevices by bailing out early.
2016-05-20 21:21:52 +02:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
RoosterDragon
b5f24c3fa6
Add some missing Dispose calls, fix some Dispose implementations.
2016-01-01 04:51:54 +00:00
Oliver Brakmann
906aa0f1fd
Merge pull request #10003 from r34ch/mute-setting
...
Mute setting
2015-12-28 14:07:27 +01:00
Paul Chote
9f41743465
Replace MiniTK.Audio with OpenAL-CS.
2015-12-27 17:03:32 +00:00
DArcy Rush
67f88e368f
Add mute option to the game
2015-12-25 23:33:18 +00:00
Paul Chote
d112083c44
Clean up sound devices on game exit.
2015-09-20 22:46:07 +01:00
Matthias Mailänder
17f3466451
untie the engine from SDL2 and MiniTK
2015-08-23 07:58:03 +02:00