Mercurial > mplayer.hg
view libao2/audio_out_internal.h @ 8534:922ce27eb683
This patch adds support for vertical subtitle alignment
control. Possible values are top, center, and bottom,
with bottom being the default. Alignment is relevant when
it comes to positioning subtitles with one line (or fewer
lines) of text relative to multi-line subtitles.
It is implemented as a new command (sub_alignment) that
without an argument cycles the alignment (between top,
center, and bottom), or with an argument sets the
alignment (0 for top, 1 for center, 2 for bottom).
The key 'i' is bound to this command.
patch by Oskar Liljeblad (oskar@osk.mine.nu)
author | arpi |
---|---|
date | Mon, 23 Dec 2002 01:37:43 +0000 |
parents | 981a9e5118ce |
children | 12b1790038b0 |
line wrap: on
line source
// prototypes: //static ao_info_t info; static int control(int cmd,int arg); static int init(int rate,int channels,int format,int flags); static void uninit(); static void reset(); static int get_space(); static int play(void* data,int len,int flags); static float get_delay(); static void audio_pause(); static void audio_resume(); #define LIBAO_EXTERN(x) ao_functions_t audio_out_##x =\ {\ &info,\ control,\ init,\ uninit,\ reset,\ get_space,\ play,\ get_delay,\ audio_pause,\ audio_resume\ };