mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Avoid forward declaration of rtp structs.
Forward declarations are problematic, as they easily allow introducing cyclic dependencies.
This commit is contained in:
parent
b2590e2f44
commit
767ccbb387
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "../toxcore/logger.h"
|
||||
#include "../toxcore/util.h"
|
||||
#include "rtp.h"
|
||||
|
||||
#include <opus.h>
|
||||
#include <pthread.h>
|
||||
|
@ -48,8 +49,6 @@
|
|||
#define AUDIO_MAX_BUFFER_SIZE_PCM16 ((AUDIO_MAX_SAMPLE_RATE * AUDIO_MAX_FRAME_DURATION_MS) / 1000)
|
||||
#define AUDIO_MAX_BUFFER_SIZE_BYTES (AUDIO_MAX_BUFFER_SIZE_PCM16 * 2)
|
||||
|
||||
struct RTPMessage;
|
||||
|
||||
typedef struct ACSession_s {
|
||||
const Logger *log;
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include "../toxcore/logger.h"
|
||||
#include "../toxcore/util.h"
|
||||
#include "ring_buffer.h"
|
||||
#include "rtp.h"
|
||||
|
||||
#include <vpx/vpx_decoder.h>
|
||||
#include <vpx/vpx_encoder.h>
|
||||
|
@ -35,9 +37,6 @@
|
|||
|
||||
#include <pthread.h>
|
||||
|
||||
struct RTPMessage;
|
||||
struct RingBuffer;
|
||||
|
||||
typedef struct VCSession_s {
|
||||
/* encoding */
|
||||
vpx_codec_ctx_t encoder[1];
|
||||
|
|
Loading…
Reference in New Issue
Block a user