SDL_mixer can only stream a single music track SDL_audiolib has unlimited streams. With this change, we finally have streaming sounds (respecting sfx_STREAM). Audio options can now also be set via diablo.ini, which should help us better diagnose the static noise issues.
15 lines
480 B
C++
15 lines
480 B
C++
#pragma once
|
|
|
|
#ifdef __has_include
|
|
#if defined(__cplusplus) && __cplusplus >= 201606L && __has_include(<optional>)
|
|
#include <optional> // IWYU pragma: export
|
|
#elif __has_include(<experimental/optional>)
|
|
#include <experimental/optional> // IWYU pragma: export
|
|
#define optional experimental::optional
|
|
#define nullopt experimental::nullopt
|
|
#else
|
|
#error "Missing support for <optional> or <experimental/optional>"
|
|
#endif
|
|
#else
|
|
#error "__has_include unavailable"
|
|
#endif
|