aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/pcm-iterator.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-iterator.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-iterator.cpp')
-rw-r--r--engines/sci/sfx/pcm-iterator.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/engines/sci/sfx/pcm-iterator.cpp b/engines/sci/sfx/pcm-iterator.cpp
index cad4bd50f9..43d262c85e 100644
--- a/engines/sci/sfx/pcm-iterator.cpp
+++ b/engines/sci/sfx/pcm-iterator.cpp
@@ -50,7 +50,7 @@ static sfx_pcm_feed_t pcm_it_prototype = {
pi_destroy,
NULL, /* No timestamp getter */
NULL, /* Internal data goes here */
- {0,0,0}, /* Must fill in configuration */
+ {0, 0, 0}, /* Must fill in configuration */
"song-iterator",
0, /* Ideally the resource number should go here */
0 /* The mixer computes this for us */
@@ -59,10 +59,9 @@ static sfx_pcm_feed_t pcm_it_prototype = {
sfx_pcm_feed_t *
sfx_iterator_make_feed(byte *base_data,
- int offset,
- int size,
- sfx_pcm_config_t conf)
-{
+ int offset,
+ int size,
+ sfx_pcm_config_t conf) {
sfx_pcm_feed_t *feed;
pcm_data_internal_t *idat;
byte *data = base_data + offset;
@@ -87,8 +86,7 @@ sfx_iterator_make_feed(byte *base_data,
static int
-pi_poll(sfx_pcm_feed_t *self, byte *dest, int size)
-{
+pi_poll(sfx_pcm_feed_t *self, byte *dest, int size) {
int data_len;
if (size >= D->frames_left)
@@ -100,7 +98,7 @@ pi_poll(sfx_pcm_feed_t *self, byte *dest, int size)
memcpy(dest, D->data, data_len);
#if 0
-memset(dest, 0xff, data_len);
+ memset(dest, 0xff, data_len);
#endif
D->data += data_len;
@@ -109,8 +107,7 @@ memset(dest, 0xff, data_len);
}
static void
-pi_destroy(sfx_pcm_feed_t *self)
-{
+pi_destroy(sfx_pcm_feed_t *self) {
sci_refcount_decref(D->base_data);
sci_free(D);
sci_free(self);