aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/sdl2.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-17 23:21:45 -0800
committerChris Robinson <[email protected]>2020-12-17 23:21:45 -0800
commit6ae0115bf7cb07e54f6e3b32bea08ebbd8cebea6 (patch)
tree2ea7a75aa8fa38bf21d0a683132483a4280624b1 /alc/backends/sdl2.cpp
parent5edd5a11fc16147ee25566db75732533005d1f46 (diff)
Avoid AL/ALC types in the backends
Diffstat (limited to 'alc/backends/sdl2.cpp')
-rw-r--r--alc/backends/sdl2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/backends/sdl2.cpp b/alc/backends/sdl2.cpp
index 7563689b..fd695480 100644
--- a/alc/backends/sdl2.cpp
+++ b/alc/backends/sdl2.cpp
@@ -46,7 +46,7 @@ namespace {
#define DEVNAME_PREFIX ""
#endif
-constexpr ALCchar defaultDeviceName[] = DEVNAME_PREFIX "Default Device";
+constexpr char defaultDeviceName[] = DEVNAME_PREFIX "Default Device";
struct Sdl2Backend final : public BackendBase {
Sdl2Backend(ALCdevice *device) noexcept : BackendBase{device} { }
@@ -56,7 +56,7 @@ struct Sdl2Backend final : public BackendBase {
static void audioCallbackC(void *ptr, Uint8 *stream, int len) noexcept
{ static_cast<Sdl2Backend*>(ptr)->audioCallback(stream, len); }
- void open(const ALCchar *name) override;
+ void open(const char *name) override;
bool reset() override;
void start() override;
void stop() override;
@@ -86,7 +86,7 @@ void Sdl2Backend::audioCallback(Uint8 *stream, int len) noexcept
mDevice->renderSamples(stream, ulen / mFrameSize, mDevice->channelsFromFmt());
}
-void Sdl2Backend::open(const ALCchar *name)
+void Sdl2Backend::open(const char *name)
{
SDL_AudioSpec want{}, have{};