aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/pcm_device/pcm_devices.cpp
diff options
context:
space:
mode:
authorMax Horn2009-02-15 22:34:41 +0000
committerMax Horn2009-02-15 22:34:41 +0000
commit29611bc7ead4d3d5fc9df63c04dd9e2577805557 (patch)
tree42d26aab7ab2e7e97fe5b4763281d8071d878eed /engines/sci/sfx/pcm_device/pcm_devices.cpp
parent921e6ff5cf3944c1a62a3ad9a91c29bb21aa9942 (diff)
downloadscummvm-rg350-29611bc7ead4d3d5fc9df63c04dd9e2577805557.tar.gz
scummvm-rg350-29611bc7ead4d3d5fc9df63c04dd9e2577805557.tar.bz2
scummvm-rg350-29611bc7ead4d3d5fc9df63c04dd9e2577805557.zip
SCI: Run astyle to make the code be more compliant with our Code Formatting Guidelines: sfx dir
svn-id: r38322
Diffstat (limited to 'engines/sci/sfx/pcm_device/pcm_devices.cpp')
-rw-r--r--engines/sci/sfx/pcm_device/pcm_devices.cpp27
1 files changed, 13 insertions, 14 deletions
diff --git a/engines/sci/sfx/pcm_device/pcm_devices.cpp b/engines/sci/sfx/pcm_device/pcm_devices.cpp
index 09e20bb07b..b8e5b51b39 100644
--- a/engines/sci/sfx/pcm_device/pcm_devices.cpp
+++ b/engines/sci/sfx/pcm_device/pcm_devices.cpp
@@ -39,16 +39,16 @@ extern sfx_pcm_device_t sfx_pcm_driver_dc;
sfx_pcm_device_t *pcmout_drivers[] = {
#ifndef NO_PCMOUT
#ifdef SCUMMVM
- &sfx_pcm_driver_scummvm,
+ &sfx_pcm_driver_scummvm,
#else // SCUMMVM
# ifdef HAVE_SDL
- &sfx_pcm_driver_sdl,
+ &sfx_pcm_driver_sdl,
# endif
# ifdef HAVE_ALSA
- &sfx_pcm_driver_alsa,
+ &sfx_pcm_driver_alsa,
# endif
# ifdef __DC__
- &sfx_pcm_driver_dc,
+ &sfx_pcm_driver_dc,
# endif
#endif // SCUMMVM
#endif
@@ -56,18 +56,17 @@ sfx_pcm_device_t *pcmout_drivers[] = {
};
sfx_pcm_device_t *
-sfx_pcm_find_device(char *name)
-{
- int retval = 0;
+sfx_pcm_find_device(char *name) {
+ int retval = 0;
- if (!name) { /* Find default driver */
- return pcmout_drivers[0];
- }
+ if (!name) { /* Find default driver */
+ return pcmout_drivers[0];
+ }
- while (pcmout_drivers[retval] &&
- strcasecmp(name, pcmout_drivers[retval]->name))
- retval++;
+ while (pcmout_drivers[retval] &&
+ strcasecmp(name, pcmout_drivers[retval]->name))
+ retval++;
- return pcmout_drivers[retval];
+ return pcmout_drivers[retval];
}