33 lines
722 B
C++
33 lines
722 B
C++
#include <random>
|
|
#include <cstdio>
|
|
#include <cmath>
|
|
#include <cstring>
|
|
#include <iostream>
|
|
#include <array>
|
|
#include <atomic>
|
|
#include "pipewire/pipewire.h"
|
|
#include "spa/param/audio/format-utils.h"
|
|
#include "spa/param/latency-utils.h"
|
|
|
|
#include "passthrough.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
pw_init(&argc, &argv);
|
|
|
|
auto* tloop = pw_thread_loop_new("thread", NULL);
|
|
ringbuffer rb;
|
|
if(tloop == nullptr) {
|
|
std::cerr << "Could not create loop!\n";
|
|
return 1;
|
|
}
|
|
logger_record lr(pw_thread_loop_get_loop(tloop), &rb);
|
|
logger_playback lp(pw_thread_loop_get_loop(tloop), &rb);
|
|
|
|
pw_thread_loop_start(tloop);
|
|
|
|
while(true) {}
|
|
pw_thread_loop_stop(tloop);
|
|
pw_thread_loop_destroy(tloop);
|
|
pw_deinit();
|
|
return 0;
|
|
}
|