diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 14:22:21 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-08-12 19:54:27 +0000 |
commit | 767ccbb387a462c9bc21aaf22d2c3d3358c147b8 (patch) | |
tree | 5d4a82aca471f4685be78f937e355705dda8984b /toxav/audio.h | |
parent | b2590e2f4482114b9e74895bf80e58f5587a1607 (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.h | 3 |
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 | ||
51 | struct RTPMessage; | ||
52 | |||
53 | typedef struct ACSession_s { | 52 | typedef struct ACSession_s { |
54 | const Logger *log; | 53 | const Logger *log; |
55 | 54 | ||