Commit 9eb5b337 authored by Titouan Soulard's avatar Titouan Soulard

trx_play: clean unused definitions

parent 80b0d63f
......@@ -9,9 +9,6 @@
#include "amarisoft/trx_driver.h"
#include "common/circular_buffer.h"
#define SAMPLE_RATE_KHZ 30720
#define COMPLEX_SIZE (sizeof(TRXComplex) / sizeof(char))
struct TRXPlayContext {
struct CommonCBBuffer *samples_buffer;
trx_timestamp_t last_timestamp;
......
......@@ -33,7 +33,7 @@ int trx_play_start(TRXState *s, const TRXDriverParams2 *p) {
trx_play_ctx->samples_buffer = common_circular_buffer_create(samples_file_size, true);
common_circular_buffer_write(trx_play_ctx->samples_buffer, (void *) samples_file_content, samples_file_size);
printf("trx_play: looping %lu frames from %s\n", samples_file_size / COMPLEX_SIZE, trx_play_ctx->samples_file_path);
printf("trx_play: looping %lu frames from %s\n", samples_file_size / sizeof(TRXComplex), trx_play_ctx->samples_file_path);
fclose(samples_file_handle);
free(trx_play_ctx->samples_file_path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment