mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
debug
This commit is contained in:
@@ -19,6 +19,7 @@ static long VBAN_SRList[VBAN_SR_MAXNUMBER] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#include "../io/audio.h"
|
#include "../io/audio.h"
|
||||||
|
#include "../lib/debug.h"
|
||||||
#include <pulse/simple.h>
|
#include <pulse/simple.h>
|
||||||
|
|
||||||
#define VBAN_BIT_MAXNUMBER 5 // 7 in the standard but pa does these 5
|
#define VBAN_BIT_MAXNUMBER 5 // 7 in the standard but pa does these 5
|
||||||
@@ -240,6 +241,7 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(data.packet_data.frame_num != vban_frame) {
|
if(data.packet_data.frame_num != vban_frame) {
|
||||||
|
debug_printf("sender: %u client: %u\n", data.packet_data.frame_num, vban_frame);
|
||||||
if (data.packet_data.frame_num > vban_frame) {
|
if (data.packet_data.frame_num > vban_frame) {
|
||||||
uint32_t dropped_packets = data.packet_data.frame_num - vban_frame;
|
uint32_t dropped_packets = data.packet_data.frame_num - vban_frame;
|
||||||
if (quiet == 0) printf("Dropped %u packets\n", dropped_packets);
|
if (quiet == 0) printf("Dropped %u packets\n", dropped_packets);
|
||||||
|
|||||||
Reference in New Issue
Block a user