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

Using fixed-width types for MY_TYPE in tests where possible #421

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/duplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
#include <cstring>

/*
typedef char MY_TYPE;
typedef int8_t MY_TYPE;
#define FORMAT RTAUDIO_SINT8
*/

typedef signed short MY_TYPE;
typedef int16_t MY_TYPE;
#define FORMAT RTAUDIO_SINT16

/*
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
6 changes: 3 additions & 3 deletions tests/playraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
#include <stdio.h>

/*
typedef char MY_TYPE;
typedef int8_t MY_TYPE;
#define FORMAT RTAUDIO_SINT8
#define SCALE 127.0
*/

typedef signed short MY_TYPE;
typedef int16_t MY_TYPE;
#define FORMAT RTAUDIO_SINT16
#define SCALE 32767.0

Expand All @@ -30,7 +30,7 @@ typedef S24 MY_TYPE;
#define FORMAT RTAUDIO_SINT24
#define SCALE 8388607.0

typedef signed int MY_TYPE;
typedef int32_t MY_TYPE;
#define FORMAT RTAUDIO_SINT32
#define SCALE 2147483647.0

Expand Down
6 changes: 3 additions & 3 deletions tests/playsaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
#include <signal.h>

/*
typedef char MY_TYPE;
typedef int8_t MY_TYPE;
#define FORMAT RTAUDIO_SINT8
#define SCALE 127.0
*/

typedef signed short MY_TYPE;
typedef int16_t MY_TYPE;
#define FORMAT RTAUDIO_SINT16
#define SCALE 32767.0

Expand All @@ -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
6 changes: 3 additions & 3 deletions tests/record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
#include <stdio.h>

/*
typedef char MY_TYPE;
typedef int8_t MY_TYPE;
#define FORMAT RTAUDIO_SINT8
*/

typedef signed short MY_TYPE;
typedef int16_t MY_TYPE;
#define FORMAT RTAUDIO_SINT16

/*
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
Loading