summaryrefslogtreecommitdiffstats
path: root/libao2/audio_out.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-05-04 01:15:58 +0300
committerUoti Urpala <uau@mplayer2.org>2011-05-04 21:09:08 +0300
commitdf7825eb312254e3cc83d718b6946361cc29aab7 (patch)
tree927743eded48b522bf8ef15b01f86f31c24f025d /libao2/audio_out.h
parent618f760866441a01051a0177529c7524082f4e37 (diff)
downloadmpv-df7825eb312254e3cc83d718b6946361cc29aab7.tar.bz2
mpv-df7825eb312254e3cc83d718b6946361cc29aab7.tar.xz
cleanup: reindent audio_out.[ch]
Reindent audio_out.c and audio_out.h. Also remove trailing '_s' from two struct names (which are not currently used anywhere) and make the audio_out_drivers[] table static.
Diffstat (limited to 'libao2/audio_out.h')
-rw-r--r--libao2/audio_out.h65
1 files changed, 30 insertions, 35 deletions
diff --git a/libao2/audio_out.h b/libao2/audio_out.h
index 8c10a47784..dddcb55a6a 100644
--- a/libao2/audio_out.h
+++ b/libao2/audio_out.h
@@ -21,42 +21,40 @@
#include <stdbool.h>
-typedef struct ao_info_s
-{
- /* driver name ("Matrox Millennium G200/G400" */
- const char *name;
- /* short name (for config strings) ("mga") */
- const char *short_name;
- /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */
- const char *author;
- /* any additional comments */
- const char *comment;
+typedef struct ao_info {
+ /* driver name ("Matrox Millennium G200/G400" */
+ const char *name;
+ /* short name (for config strings) ("mga") */
+ const char *short_name;
+ /* author ("Aaron Holtzman <aholtzma@ess.engr.uvic.ca>") */
+ const char *author;
+ /* any additional comments */
+ const char *comment;
} ao_info_t;
/* interface towards mplayer and */
-typedef struct ao_functions
-{
- const ao_info_t *info;
- int (*control)(int cmd,void *arg);
- int (*init)(int rate,int channels,int format,int flags);
- void (*uninit)(int immed);
- void (*reset)(void);
- int (*get_space)(void);
- int (*play)(void* data,int len,int flags);
- float (*get_delay)(void);
- void (*pause)(void);
- void (*resume)(void);
+typedef struct ao_functions {
+ const ao_info_t *info;
+ int (*control)(int cmd, void *arg);
+ int (*init)(int rate, int channels, int format, int flags);
+ void (*uninit)(int immed);
+ void (*reset)(void);
+ int (*get_space)(void);
+ int (*play)(void *data, int len, int flags);
+ float (*get_delay)(void);
+ void (*pause)(void);
+ void (*resume)(void);
} ao_functions_t;
/* global data used by mplayer and plugins */
struct ao {
- int samplerate;
- int channels;
- int format;
- int bps;
- int outburst;
- int buffersize;
- int pts;
+ int samplerate;
+ int channels;
+ int format;
+ int bps;
+ int outburst;
+ int buffersize;
+ int pts;
bool initialized;
const struct ao_functions *driver;
};
@@ -65,9 +63,6 @@ extern char *ao_subdevice;
void list_audio_out(void);
-// NULL terminated array of all drivers
-extern const ao_functions_t* const audio_out_drivers[];
-
#define CONTROL_OK 1
#define CONTROL_TRUE 1
#define CONTROL_FALSE 0
@@ -85,9 +80,9 @@ extern const ao_functions_t* const audio_out_drivers[];
#define AOPLAY_FINAL_CHUNK 1
-typedef struct ao_control_vol_s {
- float left;
- float right;
+typedef struct ao_control_vol {
+ float left;
+ float right;
} ao_control_vol_t;
struct ao *ao_create(void);