diff options
author | Paweł Kołodziejski | 2009-02-21 16:20:53 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2009-02-21 16:20:53 +0000 |
commit | d23166c2a1bc8747dbc0684320eeba5f4ffd254f (patch) | |
tree | b292ededb74776ba1e483c5837d01968303f6d7a /engines/sci/sfx/pcm-iterator.cpp | |
parent | 1ee65390cd634ba9b432843f11d51cdff0401320 (diff) | |
download | scummvm-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.cpp | 18 |
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); |