alsa: redirect alsa output to log file

Make a custom snd_output object that redirects output to the log
file.
This commit is contained in:
Wim Taymans 2022-08-05 14:01:37 +02:00
parent 0dc5a08bfd
commit 73073eb33f
2 changed files with 59 additions and 19 deletions

View file

@ -106,6 +106,8 @@ struct state {
struct spa_system *data_system;
struct spa_loop *data_loop;
FILE *log_file;
uint32_t card_index;
struct card *card;
snd_pcm_stream_t stream;