From 7bc733fd519cb0cfe09436d5187485108a1cbb6b Mon Sep 17 00:00:00 2001 From: Artem Prilutskiy Date: Tue, 23 May 2017 10:11:42 +0300 Subject: [PATCH] .. --- DigestPlay.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/DigestPlay.c b/DigestPlay.c index 1fe92b9..f4e5907 100644 --- a/DigestPlay.c +++ b/DigestPlay.c @@ -12,22 +12,21 @@ #include "Version.h" #include "RewindClient.h" -// #include "DMR.h" -#ifndef DMR_H #define TDMA_FRAME_DURATION 60 -#endif #define DSD_MAGIC_TEXT ".amb" #define DSD_MAGIC_SIZE 4 #define DSD_AMBE_CHUNK_SIZE 8 -#define HELPER(value) #value -#define STRING(value) HELPER(value) +#define HELPER(value) #value +#define STRING(value) HELPER(value) -#define COUNT(array) sizeof(array) / sizeof(array[0]) +#define COUNT(array) sizeof(array) / sizeof(array[0]) -#define BUFFER_SIZE 1024 -#define ATTEMPT_COUNT 5 +#define BUFFER_SIZE 1024 +#define ATTEMPT_COUNT 5 + +#define CLIENT_NAME "DigestPlay " STRING(VERSION) " " BUILD typedef uint8_t Integer24[3]; @@ -142,9 +141,7 @@ int main(int argc, char* argv[]) // Create Rewind client context - struct RewindContext* context = CreateRewindClient( - number, - "DigestPlay " STRING(VERSION) " " BUILD); + struct RewindContext* context = CreateRewindClient(number, CLIENT_NAME); if (context == NULL) { @@ -167,7 +164,7 @@ int main(int argc, char* argv[]) // Connect to the server - int result = ConnectRewindClient(context, location, port, password, REWIND_OPTION_SUPER_HEADER); + int result = ConnectRewindClient(context, location, port, password, REWIND_OPTION_LINEAR_FRAME); if (result < 0) {