diff options
author | Chris Robinson <[email protected]> | 2019-09-15 09:50:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-15 09:50:28 -0700 |
commit | c5a3c52822d0ab8e36c2d3d31936eae1da64049f (patch) | |
tree | 0608df414c53e281459c29de73a6ca272f9fc33a /alc/backends/base.h | |
parent | e4cc77ea237c8a2ca67cb0a1cb28e6d652746590 (diff) |
Return and pass more appropriate types for backends
Diffstat (limited to 'alc/backends/base.h')
-rw-r--r-- | alc/backends/base.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alc/backends/base.h b/alc/backends/base.h index e88734dc..cc33ba50 100644 --- a/alc/backends/base.h +++ b/alc/backends/base.h @@ -9,6 +9,7 @@ #include "AL/alc.h" #include "alcmain.h" +#include "albyte.h" struct ClockLatency { @@ -33,11 +34,11 @@ ClockLatency GetClockLatency(ALCdevice *device); struct BackendBase { virtual ALCenum open(const ALCchar *name) = 0; - virtual ALCboolean reset(); - virtual ALCboolean start() = 0; + virtual bool reset(); + virtual bool start() = 0; virtual void stop() = 0; - virtual ALCenum captureSamples(void *buffer, ALCuint samples); + virtual ALCenum captureSamples(al::byte *buffer, ALCuint samples); virtual ALCuint availableSamples(); virtual ClockLatency getClockLatency(); |