summaryrefslogtreecommitdiff
path: root/toxav/audio.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-12 14:22:21 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-12 19:54:27 +0000
commit767ccbb387a462c9bc21aaf22d2c3d3358c147b8 (patch)
tree5d4a82aca471f4685be78f937e355705dda8984b /toxav/audio.h
parentb2590e2f4482114b9e74895bf80e58f5587a1607 (diff)
Avoid forward declaration of rtp structs.
Forward declarations are problematic, as they easily allow introducing cyclic dependencies.
Diffstat (limited to 'toxav/audio.h')
-rw-r--r--toxav/audio.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/toxav/audio.h b/toxav/audio.h
index 3c646f76..f71aaed3 100644
--- a/toxav/audio.h
+++ b/toxav/audio.h
@@ -24,6 +24,7 @@
24 24
25#include "../toxcore/logger.h" 25#include "../toxcore/logger.h"
26#include "../toxcore/util.h" 26#include "../toxcore/util.h"
27#include "rtp.h"
27 28
28#include <opus.h> 29#include <opus.h>
29#include <pthread.h> 30#include <pthread.h>
@@ -48,8 +49,6 @@
48#define AUDIO_MAX_BUFFER_SIZE_PCM16 ((AUDIO_MAX_SAMPLE_RATE * AUDIO_MAX_FRAME_DURATION_MS) / 1000) 49#define AUDIO_MAX_BUFFER_SIZE_PCM16 ((AUDIO_MAX_SAMPLE_RATE * AUDIO_MAX_FRAME_DURATION_MS) / 1000)
49#define AUDIO_MAX_BUFFER_SIZE_BYTES (AUDIO_MAX_BUFFER_SIZE_PCM16 * 2) 50#define AUDIO_MAX_BUFFER_SIZE_BYTES (AUDIO_MAX_BUFFER_SIZE_PCM16 * 2)
50 51
51struct RTPMessage;
52
53typedef struct ACSession_s { 52typedef struct ACSession_s {
54 const Logger *log; 53 const Logger *log;
55 54