aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/pcm-iterator.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2009-02-21 16:20:53 +0000
committerPaweł Kołodziejski2009-02-21 16:20:53 +0000
commitd23166c2a1bc8747dbc0684320eeba5f4ffd254f (patch)
treeb292ededb74776ba1e483c5837d01968303f6d7a /engines/sci/sfx/pcm-iterator.cpp
parent1ee65390cd634ba9b432843f11d51cdff0401320 (diff)
downloadscummvm-rg350-d23166c2a1bc8747dbc0684320eeba5f4ffd254f.tar.gz
scummvm-rg350-d23166c2a1bc8747dbc0684320eeba5f4ffd254f.tar.bz2
scummvm-rg350-d23166c2a1bc8747dbc0684320eeba5f4ffd254f.zip
formating
svn-id: r38706
Diffstat (limited to 'engines/sci/sfx/pcm-iterator.cpp')
-rw-r--r--engines/sci/sfx/pcm-iterator.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/engines/sci/sfx/pcm-iterator.cpp b/engines/sci/sfx/pcm-iterator.cpp
index 9507b6fd3d..abb42bc7a7 100644
--- a/engines/sci/sfx/pcm-iterator.cpp
+++ b/engines/sci/sfx/pcm-iterator.cpp
@@ -31,10 +31,8 @@ namespace Sci {
#define D ((pcm_data_internal_t *)self->internal)
-static int
-pi_poll(sfx_pcm_feed_t *self, byte *dest, int size);
-static void
-pi_destroy(sfx_pcm_feed_t *self);
+static int pi_poll(sfx_pcm_feed_t *self, byte *dest, int size);
+static void pi_destroy(sfx_pcm_feed_t *self);
typedef struct {
byte *base_data;
@@ -55,11 +53,7 @@ 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) {
+sfx_pcm_feed_t *sfx_iterator_make_feed(byte *base_data, int offset, int size, sfx_pcm_config_t conf) {
sfx_pcm_feed_t *feed;
pcm_data_internal_t *idat;
byte *data = base_data + offset;
@@ -83,8 +77,7 @@ sfx_iterator_make_feed(byte *base_data,
}
-static int
-pi_poll(sfx_pcm_feed_t *self, byte *dest, int size) {
+static int pi_poll(sfx_pcm_feed_t *self, byte *dest, int size) {
int data_len;
if (size >= D->frames_left)
@@ -104,8 +97,7 @@ pi_poll(sfx_pcm_feed_t *self, byte *dest, int size) {
return size;
}
-static void
-pi_destroy(sfx_pcm_feed_t *self) {
+static void pi_destroy(sfx_pcm_feed_t *self) {
sci_refcount_decref(D->base_data);
free(D);
free(self);