Skip to content

Commit

Permalink
Fixed MY_TYPE for RTAUDIO_SINT32 so that it's int32_t as long is 64…
Browse files Browse the repository at this point in the history
…-bit on some 64-bit systems

Closes #420
  • Loading branch information
giuliomoro committed Feb 2, 2024
1 parent f2135b7 commit adf2812
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/duplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef signed short MY_TYPE;
typedef S24 MY_TYPE;
#define FORMAT RTAUDIO_SINT24
typedef signed long MY_TYPE;
typedef int32_t MY_TYPE;
#define FORMAT RTAUDIO_SINT32
typedef float MY_TYPE;
Expand Down
2 changes: 1 addition & 1 deletion tests/playsaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ typedef S24 MY_TYPE;
#define FORMAT RTAUDIO_SINT24
#define SCALE 8388607.0
typedef signed long MY_TYPE;
typedef int32_t MY_TYPE;
#define FORMAT RTAUDIO_SINT32
#define SCALE 2147483647.0
Expand Down
2 changes: 1 addition & 1 deletion tests/record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ typedef signed short MY_TYPE;
typedef S24 MY_TYPE;
#define FORMAT RTAUDIO_SINT24
typedef signed long MY_TYPE;
typedef int32_t MY_TYPE;
#define FORMAT RTAUDIO_SINT32
typedef float MY_TYPE;
Expand Down

0 comments on commit adf2812

Please sign in to comment.