Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / vorbis-tools / ogg123 / ogg123.h
blob2c22acb1b0e0791b1f69ed6163dc806ab2baeb6f
1 /********************************************************************
2 * *
3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
5 * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
6 * PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7 * *
8 * THE Ogg123 SOURCE CODE IS (C) COPYRIGHT 2000-2001 *
9 * by Stan Seibert <volsung@xiph.org> AND OTHER CONTRIBUTORS *
10 * http://www.xiph.org/ *
11 * *
12 ********************************************************************
14 last mod: $Id$
16 ********************************************************************/
18 #ifndef __OGG123_H__
19 #define __OGG123_H__
21 #include <ogg/os_types.h>
22 #include "audio.h"
23 #include "playlist.h"
25 typedef struct ogg123_options_t {
26 int verbosity; /* Verbose output if > 1, quiet if 0 */
28 int shuffle; /* Should we shuffle playing? */
29 int repeat; /* Repeat playlist indefinitely? */
30 ogg_int64_t delay; /* delay (in millisecs) for skip to next song */
31 int nth; /* Play every nth chunk */
32 int ntimes; /* Play every chunk n times */
33 double seekoff; /* Offset to seek to */
34 double endpos; /* Position in file to play to (greater than seekpos) */
35 int seekmode; /* DECODER_SEEK_[NONE | START | CUR */
37 long buffer_size; /* Size of audio buffer */
38 float prebuffer; /* Percent of buffer to fill before playing */
39 long input_buffer_size; /* Size of input audio buffer */
40 float input_prebuffer;
42 char *default_device; /* Name of default driver to use */
44 audio_device_t *devices; /* Audio devices to use */
46 double status_freq; /* Number of status updates per second */
48 int remote; /* Remotely controlled */
50 playlist_t *playlist; /* List of files to play */
52 } ogg123_options_t;
54 typedef struct signal_request_t {
55 int cancel;
56 int skipfile;
57 int exit;
58 int pause;
59 ogg_int64_t last_ctrl_c;
60 } signal_request_t;
62 #endif /* __OGG123_H__ */