Commit 83660dd1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout: export aout_Filters*() functions

parent 9804ce5c
...@@ -317,8 +317,22 @@ static inline int aout_ChannelsRestart (vlc_object_t *obj, const char *varname, ...@@ -317,8 +317,22 @@ static inline int aout_ChannelsRestart (vlc_object_t *obj, const char *varname,
return 0; return 0;
} }
/* Audio output filters */
typedef struct aout_filters aout_filters_t;
typedef struct aout_request_vout aout_request_vout_t;
VLC_API aout_filters_t *aout_FiltersNew(vlc_object_t *,
const audio_sample_format_t *,
const audio_sample_format_t *,
const aout_request_vout_t *) VLC_USED;
#define aout_FiltersNew(o,inf,outf,rv) \
aout_FiltersNew(VLC_OBJECT(o),inf,outf,rv)
VLC_API void aout_FiltersDelete(vlc_object_t *, aout_filters_t *);
#define aout_FiltersDelete(o,f) \
aout_FiltersDelete(VLC_OBJECT(o),f)
VLC_API bool aout_FiltersAdjustResampling(aout_filters_t *, int);
VLC_API block_t *aout_FiltersPlay(aout_filters_t *, block_t *, int rate);
/* */
VLC_API vout_thread_t * aout_filter_RequestVout( filter_t *, vout_thread_t *p_vout, video_format_t *p_fmt ); VLC_API vout_thread_t * aout_filter_RequestVout( filter_t *, vout_thread_t *p_vout, video_format_t *p_fmt );
#endif /* VLC_AOUT_H */ #endif /* VLC_AOUT_H */
...@@ -35,14 +35,13 @@ enum { ...@@ -35,14 +35,13 @@ enum {
AOUT_RESAMPLING_DOWN AOUT_RESAMPLING_DOWN
}; };
typedef struct struct aout_request_vout
{ {
struct vout_thread_t *(*pf_request_vout)( void *, struct vout_thread_t *, struct vout_thread_t *(*pf_request_vout)( void *, struct vout_thread_t *,
video_format_t *, bool ); video_format_t *, bool );
void *p_private; void *p_private;
} aout_request_vout_t; };
typedef struct aout_filters aout_filters_t;
typedef struct aout_volume aout_volume_t; typedef struct aout_volume aout_volume_t;
typedef struct aout_dev aout_dev_t; typedef struct aout_dev aout_dev_t;
...@@ -100,18 +99,6 @@ static inline aout_owner_t *aout_owner (audio_output_t *aout) ...@@ -100,18 +99,6 @@ static inline aout_owner_t *aout_owner (audio_output_t *aout)
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
/* From filters.c : */
aout_filters_t *aout_FiltersNew(vlc_object_t *, const audio_sample_format_t *,
const audio_sample_format_t *,
const aout_request_vout_t *);
#define aout_FiltersNew(o,inf,outf,rv) \
aout_FiltersNew(VLC_OBJECT(o),inf,outf,rv)
void aout_FiltersDelete(vlc_object_t *, aout_filters_t *);
#define aout_FiltersDelete(o,f) \
aout_FiltersDelete(VLC_OBJECT(o),f)
bool aout_FiltersAdjustResampling(aout_filters_t *, int);
block_t *aout_FiltersPlay(aout_filters_t *, block_t *, int rate);
/* From mixer.c : */ /* From mixer.c : */
aout_volume_t *aout_volume_New(vlc_object_t *, const audio_replay_gain_t *); aout_volume_t *aout_volume_New(vlc_object_t *, const audio_replay_gain_t *);
#define aout_volume_New(o, g) aout_volume_New(VLC_OBJECT(o), g) #define aout_volume_New(o, g) aout_volume_New(VLC_OBJECT(o), g)
......
...@@ -18,6 +18,10 @@ aout_MuteGet ...@@ -18,6 +18,10 @@ aout_MuteGet
aout_DeviceGet aout_DeviceGet
aout_DeviceSet aout_DeviceSet
aout_DevicesList aout_DevicesList
aout_FiltersNew
aout_FiltersDelete
aout_FiltersPlay
aout_FiltersAdjustResampling
block_Alloc block_Alloc
block_FifoCount block_FifoCount
block_FifoEmpty block_FifoEmpty
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment