Revision 813dbb44 libavdevice/alsa-audio.h

View differences:

libavdevice/alsa-audio.h
39 39
        other formats */
40 40
#define DEFAULT_CODEC_ID AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE)
41 41

  
42
typedef void (*ff_reorder_func)(const void *, void *, int);
43

  
42 44
typedef struct {
43 45
    snd_pcm_t *h;
44 46
    int frame_size;  ///< preferred size for reads and writes
45 47
    int period_size; ///< bytes per sample * channels
48
    ff_reorder_func reorder_func;
49
    void *reorder_buf;
50
    int reorder_buf_size; ///< in frames
46 51
} AlsaData;
47 52

  
48 53
/**
......
82 87
 */
83 88
int ff_alsa_xrun_recover(AVFormatContext *s1, int err);
84 89

  
90
int ff_alsa_extend_reorder_buf(AlsaData *s, int size);
91

  
85 92
#endif /* AVDEVICE_ALSA_AUDIO_H */

Also available in: Unified diff