summaryrefslogtreecommitdiff
path: root/audio/fmodaudio.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-08-11 20:48:02 +0400
committermalc <av1474@comtv.ru>2009-08-11 20:51:24 +0400
commit98f9f48ccb1276d2fc3bcf4592cc1febea796e4b (patch)
tree5fffa93acfc46285ef92a8d30293a53c7d35cdd0 /audio/fmodaudio.c
parent1a40d5e23577b955265fe12a2b7b5222ec2df0f2 (diff)
downloadqemu-98f9f48ccb1276d2fc3bcf4592cc1febea796e4b.zip
Aesthetics
Reformat to make item borders more visible Fix cases of stray tabs and vertical misalignments Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/fmodaudio.c')
-rw-r--r--audio/fmodaudio.c109
1 files changed, 54 insertions, 55 deletions
diff --git a/audio/fmodaudio.c b/audio/fmodaudio.c
index 11ad09bb29..ab6a242120 100644
--- a/audio/fmodaudio.c
+++ b/audio/fmodaudio.c
@@ -513,40 +513,27 @@ static struct {
const char *name;
int type;
} drvtab[] = {
- {.name = "none",
- .type = FSOUND_OUTPUT_NOSOUND},
+ { .name = "none", .type = FSOUND_OUTPUT_NOSOUND },
#ifdef _WIN32
- {.name = "winmm",
- .type = FSOUND_OUTPUT_WINMM},
- {.name = "dsound",
- .type = FSOUND_OUTPUT_DSOUND},
- {.name = "a3d",
- .type = FSOUND_OUTPUT_A3D},
- {.name = "asio",
- .type = FSOUND_OUTPUT_ASIO},
+ { .name = "winmm", .type = FSOUND_OUTPUT_WINMM },
+ { .name = "dsound", .type = FSOUND_OUTPUT_DSOUND },
+ { .name = "a3d", .type = FSOUND_OUTPUT_A3D },
+ { .name = "asio", .type = FSOUND_OUTPUT_ASIO },
#endif
#ifdef __linux__
- {.name = "oss",
- .type = FSOUND_OUTPUT_OSS},
- {.name = "alsa",
- .type = FSOUND_OUTPUT_ALSA},
- {.name = "esd",
- .type = FSOUND_OUTPUT_ESD},
+ { .name = "oss", .type = FSOUND_OUTPUT_OSS },
+ { .name = "alsa", .type = FSOUND_OUTPUT_ALSA },
+ { .name = "esd", .type = FSOUND_OUTPUT_ESD },
#endif
#ifdef __APPLE__
- {.name = "mac",
- .type = FSOUND_OUTPUT_MAC},
+ { .name = "mac", .type = FSOUND_OUTPUT_MAC },
#endif
#if 0
- {.name = "xbox",
- .type = FSOUND_OUTPUT_XBOX},
- {.name = "ps2",
- .type = FSOUND_OUTPUT_PS2},
- {.name = "gcube",
- .type = FSOUND_OUTPUT_GC},
+ { .name = "xbox", .type = FSOUND_OUTPUT_XBOX },
+ { .name = "ps2", .type = FSOUND_OUTPUT_PS2 },
+ { .name = "gcube", .type = FSOUND_OUTPUT_GC },
#endif
- {.name = "none-realtime",
- .type = FSOUND_OUTPUT_NOSOUND_NONREALTIME}
+ { .name = "none-realtime", .type = FSOUND_OUTPUT_NOSOUND_NONREALTIME }
};
static void *fmod_audio_init (void)
@@ -648,31 +635,43 @@ static void fmod_audio_fini (void *opaque)
}
static struct audio_option fmod_options[] = {
- {.name = "DRV",
- .tag = AUD_OPT_STR,
- .valp = &conf.drvname,
- .descr = "FMOD driver"},
- {.name = "FREQ",
- .tag = AUD_OPT_INT,
- .valp = &conf.freq,
- .descr = "Default frequency"},
- {.name = "SAMPLES",
- .tag = AUD_OPT_INT,
- .valp = &conf.nb_samples,
- .descr = "Buffer size in samples"},
- {.name = "CHANNELS",
- .tag = AUD_OPT_INT,
- .valp = &conf.nb_channels,
- .descr = "Number of default channels (1 - mono, 2 - stereo)"},
- {.name = "BUFSIZE",
- .tag = AUD_OPT_INT,
- .valp = &conf.bufsize,
- .descr = "(undocumented)"}
+ {
+ .name = "DRV",
+ .tag = AUD_OPT_STR,
+ .valp = &conf.drvname,
+ .descr = "FMOD driver"
+ },
+ {
+ .name = "FREQ",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.freq,
+ .descr = "Default frequency"
+ },
+ {
+ .name = "SAMPLES",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.nb_samples,
+ .descr = "Buffer size in samples"
+ },
+ {
+ .name = "CHANNELS",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.nb_channels,
+ .descr = "Number of default channels (1 - mono, 2 - stereo)"
+ },
+ {
+ .name = "BUFSIZE",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.bufsize,
+ .descr = "(undocumented)"
+ }
#if 0
- {.name = "THRESHOLD",
- .tag = AUD_OPT_INT,
- .valp = &conf.threshold,
- .descr = "(undocumented)"}
+ {
+ .name = "THRESHOLD",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.threshold,
+ .descr = "(undocumented)"
+ }
#endif
{ /* End of list */ }
};
@@ -684,11 +683,11 @@ static struct audio_pcm_ops fmod_pcm_ops = {
.write = fmod_write,
.ctl_out = fmod_ctl_out,
- .init_in = fmod_init_in,
- .fini_in = fmod_fini_in,
- .run_in = fmod_run_in,
- .read = fmod_read,
- .ctl_in = fmod_ctl_in
+ .init_in = fmod_init_in,
+ .fini_in = fmod_fini_in,
+ .run_in = fmod_run_in,
+ .read = fmod_read,
+ .ctl_in = fmod_ctl_in
};
struct audio_driver fmod_audio_driver = {