Skip to content

Commit

Permalink
Merge pull request #444 from zemar1325/master
Browse files Browse the repository at this point in the history
S24: change storage to 4 chars
  • Loading branch information
garyscavone authored Jan 14, 2025
2 parents bc14a18 + f0899de commit f282b67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions RtAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10979,12 +10979,10 @@ unsigned int RtApi :: formatBytes( RtAudioFormat format )
{
if ( format == RTAUDIO_SINT16 )
return 2;
else if ( format == RTAUDIO_SINT32 || format == RTAUDIO_FLOAT32 )
else if ( format == RTAUDIO_SINT32 || format == RTAUDIO_FLOAT32 || format == RTAUDIO_SINT24)
return 4;
else if ( format == RTAUDIO_FLOAT64 )
return 8;
else if ( format == RTAUDIO_SINT24 )
return 3;
else if ( format == RTAUDIO_SINT8 )
return 1;

Expand Down
2 changes: 1 addition & 1 deletion RtAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ struct CallbackInfo {
class S24 {

protected:
unsigned char c3[3];
unsigned char c3[4];

public:
S24() {}
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ AM_INIT_AUTOMAKE([1.14 -Wall -Werror foreign subdir-objects])
#
# If any interfaces have been removed since the last public release, then set
# age to 0.
m4_define([lt_current], 7)
m4_define([lt_current], 8)
m4_define([lt_revision], 0)
m4_define([lt_age], 0)

Expand Down

0 comments on commit f282b67

Please sign in to comment.