Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should we add more audio formats? #9

Open
VitoVan opened this issue Feb 11, 2023 · 0 comments · May be fixed by #10
Open

Should we add more audio formats? #9

VitoVan opened this issue Feb 11, 2023 · 0 comments · May be fixed by #10

Comments

@VitoVan
Copy link

VitoVan commented Feb 11, 2023

The current allowed audio formats:

(autowrap:define-enum-from-constants (audio-format)
sdl2-ffi:+audio-u8+
sdl2-ffi:+audio-s8+
sdl2-ffi:+audio-u16lsb+
sdl2-ffi:+audio-s16lsb+
sdl2-ffi:+audio-u16msb+
sdl2-ffi:+audio-s16msb+
sdl2-ffi:+audio-u16+
sdl2-ffi:+audio-s16+
sdl2-ffi:+audio-u16sys+
sdl2-ffi:+audio-s16sys+)

:u8, :s8, :u16lsb, :s16lsb, :u16msb, :s16msb, :u16, :s16, :u16sys, :s16sys

But today SDL_AudioSpec has been updated:

https://wiki.libsdl.org/SDL2/SDL_AudioSpec

With more audio formats supported:

NAME Explain
AUDIO_S8 signed 8-bit samples
AUDIO_U8 unsigned 8-bit samples
AUDIO_S16LSB signed 16-bit samples in little-endian byte order
AUDIO_S16MSB signed 16-bit samples in big-endian byte order
AUDIO_S16SYS signed 16-bit samples in native byte order
AUDIO_S16 AUDIO_S16LSB
AUDIO_U16LSB unsigned 16-bit samples in little-endian byte order
AUDIO_U16MSB unsigned 16-bit samples in big-endian byte order
AUDIO_U16SYS unsigned 16-bit samples in native byte order
AUDIO_U16 AUDIO_U16LSB
AUDIO_S32LSB 32-bit integer samples in little-endian byte order
AUDIO_S32MSB 32-bit integer samples in big-endian byte order
AUDIO_S32SYS 32-bit integer samples in native byte order
AUDIO_S32 AUDIO_S32LSB
AUDIO_F32LSB 32-bit floating point samples in little-endian byte order
AUDIO_F32MSB 32-bit floating point samples in big-endian byte order
AUDIO_F32SYS 32-bit floating point samples in native byte order
AUDIO_F32 AUDIO_F32LSB
@VitoVan VitoVan linked a pull request Feb 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant