Skip to content

Commit 6ad3033

Browse files
committed
Don't use typedef for PaUtilRingBuffer
1 parent bb48354 commit 6ad3033

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rtmixer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ typedef unsigned long PaStreamCallbackFlags;
55
/* End of declarations from portaudio.h */
66

77
typedef unsigned long frame_t;
8-
typedef struct PaUtilRingBuffer PaUtilRingBuffer;
8+
struct PaUtilRingBuffer;
99
typedef _Bool bool;
1010
#define true 1
1111
#define false 0
@@ -38,7 +38,7 @@ struct action
3838
struct action* next;
3939
union {
4040
float* const buffer;
41-
PaUtilRingBuffer* const ringbuffer;
41+
struct PaUtilRingBuffer* const ringbuffer;
4242
struct action* const action; // Used in CANCEL
4343
};
4444
frame_t total_frames;
@@ -55,8 +55,8 @@ struct state
5555
const frame_t input_channels;
5656
const frame_t output_channels;
5757
double samplerate;
58-
PaUtilRingBuffer* const action_q; // Queue for incoming commands
59-
PaUtilRingBuffer* const result_q; // Queue for results and command disposal
58+
struct PaUtilRingBuffer* const action_q; // Queue for incoming commands
59+
struct PaUtilRingBuffer* const result_q; // Q for results and cmd disposal
6060
struct action* actions; // Singly linked list of actions
6161
struct stats stats;
6262
};

0 commit comments

Comments
 (0)