diff options
author | Chris Robinson <[email protected]> | 2017-03-04 20:25:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-04 22:30:57 -0800 |
commit | 87fd28835953bf5bb2a84f061675bddbcc5bf40d (patch) | |
tree | 69f048f642e6097ba7ca1b8b14a5faa02fa70e96 /examples/common/alhelpers.h | |
parent | c013068003a6ccd63e335fe94f43caf1b769ff7e (diff) |
Remove unnecessary wrappers around SDL_sound
Also remove wrappers for the now-unsupported buffer_samples extension.
Diffstat (limited to 'examples/common/alhelpers.h')
-rw-r--r-- | examples/common/alhelpers.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/examples/common/alhelpers.h b/examples/common/alhelpers.h index 9f60df2a..41a7ce58 100644 --- a/examples/common/alhelpers.h +++ b/examples/common/alhelpers.h @@ -11,28 +11,8 @@ extern "C" { #endif /* __cplusplus */ -/* Some helper functions to get the name from the channel and type enums. */ -const char *ChannelsName(ALenum chans); -const char *TypeName(ALenum type); - -/* Helpers to convert frame counts and byte lengths. */ -ALsizei FramesToBytes(ALsizei size, ALenum channels, ALenum type); -ALsizei BytesToFrames(ALsizei size, ALenum channels, ALenum type); - -/* Retrieves a compatible buffer format given the channel configuration and - * sample type. If an alIsBufferFormatSupportedSOFT-compatible function is - * provided, it will be called to find the closest-matching format from - * AL_SOFT_buffer_samples. Returns AL_NONE (0) if no supported format can be - * found. */ -ALenum GetFormat(ALenum channels, ALenum type, LPALISBUFFERFORMATSUPPORTEDSOFT palIsBufferFormatSupportedSOFT); - -/* Loads samples into a buffer using the standard alBufferData call, but with a - * LPALBUFFERSAMPLESSOFT-compatible prototype. Assumes internalformat is valid - * for alBufferData, and that channels and type match it. */ -void AL_APIENTRY wrap_BufferSamples(ALuint buffer, ALuint samplerate, - ALenum internalformat, ALsizei samples, - ALenum channels, ALenum type, - const ALvoid *data); +/* Some helper functions to get the name from the format enums. */ +const char *FormatName(ALenum type); /* Easy device init/deinit functions. InitAL returns 0 on success. */ int InitAL(char ***argv, int *argc); |