Update SetFormatAndFreq method to use ALenum type in format parameter

This commit is contained in:
trompetin17 2025-07-14 23:18:07 -05:00
parent 019514a9cf
commit 8ed40553c8
No known key found for this signature in database
GPG key ID: 6C585FA3FC5DB179
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ COggData::~COggData()
m_BuffersCount = 0;
}
void COggData::SetFormatAndFreq(int form, ALsizei freq)
void COggData::SetFormatAndFreq(ALenum form, ALsizei freq)
{
m_Format = form;
m_Frequency = freq;

View file

@ -60,7 +60,7 @@ protected:
std::array<ALuint, OGG_DEFAULT_BUFFER_COUNT> m_Buffer{};
int m_BuffersCount;
void SetFormatAndFreq(int form, ALsizei freq);
void SetFormatAndFreq(ALenum form, ALsizei freq);
int GetBufferCount() override;
unsigned int GetBuffer() override;
unsigned int* GetBufferPtr() override;