diff options
author | Chris Robinson <[email protected]> | 2021-01-22 11:55:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-01-22 11:55:37 -0800 |
commit | 6f87cc92fb9d89c988910a2843967fcd7b623a7e (patch) | |
tree | ae7fef32eaf310256a11075336445f652318f4e6 | |
parent | f576a353638236775ecb4f4e8ba93cb1716fbe2d (diff) |
Set the correct default buffer bits/format
-rw-r--r-- | al/buffer.h | 2 | ||||
-rw-r--r-- | alc/buffer_storage.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/al/buffer.h b/al/buffer.h index 02cb49a9..2b3cd517 100644 --- a/al/buffer.h +++ b/al/buffer.h @@ -41,7 +41,7 @@ enum UserFmtChannels : unsigned char { struct ALbuffer : public BufferStorage { ALbitfieldSOFT Access{0u}; - UserFmtType OriginalType{}; + UserFmtType OriginalType{UserFmtShort}; ALuint OriginalSize{0}; ALuint OriginalAlign{0}; diff --git a/alc/buffer_storage.h b/alc/buffer_storage.h index 60770184..80ccbc7b 100644 --- a/alc/buffer_storage.h +++ b/alc/buffer_storage.h @@ -56,8 +56,8 @@ struct BufferStorage { void *mUserData{nullptr}; uint mSampleRate{0u}; - FmtChannels mChannels{}; - FmtType mType{}; + FmtChannels mChannels{FmtMono}; + FmtType mType{FmtShort}; uint mSampleLen{0u}; AmbiLayout mAmbiLayout{AmbiLayout::FuMa}; |