]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add a new call to the backends -- prepare_to_play() -- to give them advance warning...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 8 Aug 2024 15:08:55 +0000 (16:08 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 8 Aug 2024 15:08:55 +0000 (16:08 +0100)
audio.h

diff --git a/audio.h b/audio.h
index 583b2bbbb2f97192a9f2235d891acb358d4d3ca2..82b5409d58609e619e819a37dab3820fb9ae971d 100644 (file)
--- a/audio.h
+++ b/audio.h
@@ -31,6 +31,7 @@ typedef struct {
   int (*init)(int argc, char **argv);
   // at end of program
   void (*deinit)(void);
+  void (*prepare_to_play)(void); // sent when audio is received for the first time -- advance warning.
 
   int (*prepare)(void); // looks and sets stuff in the config data structure