1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-23 15:05:29 +01:00

Put the internal sound definitions into a new sound namespace

This commit is contained in:
Desour
2023-09-28 18:59:06 +02:00
committed by DS
parent bbc64a2eb5
commit c90c545d33
18 changed files with 70 additions and 4 deletions

View File

@@ -100,6 +100,8 @@ with this program; ifnot, write to the Free Software Foundation, Inc.,
*
*/
namespace sound {
// constants
// in seconds
@@ -117,3 +119,5 @@ static_assert(MIN_STREAM_BUFFER_LENGTH > STREAM_BIGSTEP_TIME * 2.0f,
"See [Streaming of sounds].");
static_assert(SOUND_DURATION_MAX_SINGLE >= MIN_STREAM_BUFFER_LENGTH * 2.0f,
"There's no benefit in streaming if we can't queue more than 2 buffers.");
} // namespace sound