diff Plugins/Output/OSS/OSS.h @ 517:55dc40ff1aff trunk

[svn] Add tell_audio(AFormat *, gint *, gint *), for retrieving audio format information from an output plugin. Right now, we need this inside the core to do effects processing. Rationale: - If tell_audio() is unavailable, do not do processing. - If tell_audio() is available and there is a format mismatch, do not do processing yet -- we need to reinitialize the output port before we can do anything useful. Disk Writer and Crossfade are too fragile to make these changes to, so they do not support tell_audio yet.
author nenolod
date Thu, 26 Jan 2006 11:37:48 -0800
parents fa848bd484d8
children c8cf439179b8
line wrap: on
line diff
--- a/Plugins/Output/OSS/OSS.h	Thu Jan 26 11:18:52 2006 -0800
+++ b/Plugins/Output/OSS/OSS.h	Thu Jan 26 11:37:48 2006 -0800
@@ -70,4 +70,6 @@
 int (*oss_get_stereo_convert_func(int output, int input)) (void **, int,
                                                            int);
 
+void oss_tell(AFormat * fmt, gint * rate, gint * nch);
+
 #endif