aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/iterator.h
diff options
context:
space:
mode:
authorMax Horn2009-06-07 17:06:32 +0000
committerMax Horn2009-06-07 17:06:32 +0000
commitf2ca788004a86d7f1eb1a8ec27c26b552906fce4 (patch)
tree614ced3ef5eed8bb8b5988dd63ebd320bcfed95a /engines/sci/sfx/iterator.h
parent42555118bac45df0a14d2928b89ef44c3a606cd2 (diff)
downloadscummvm-rg350-f2ca788004a86d7f1eb1a8ec27c26b552906fce4.tar.gz
scummvm-rg350-f2ca788004a86d7f1eb1a8ec27c26b552906fce4.tar.bz2
scummvm-rg350-f2ca788004a86d7f1eb1a8ec27c26b552906fce4.zip
SCI: Renamed various song/songlib related structs and members
svn-id: r41342
Diffstat (limited to 'engines/sci/sfx/iterator.h')
-rw-r--r--engines/sci/sfx/iterator.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/engines/sci/sfx/iterator.h b/engines/sci/sfx/iterator.h
index 1a25b4afa1..547c479bbf 100644
--- a/engines/sci/sfx/iterator.h
+++ b/engines/sci/sfx/iterator.h
@@ -253,7 +253,6 @@ enum SongIteratorType {
| IT_READER_MASK_CUE \
| IT_READER_MASK_PCM )
-int songit_next(SongIterator **it, byte *buf, int *result, int mask);
/* Convenience wrapper around it->next
** Parameters: (SongIterator **it) Reference to the iterator to access
** (byte *) buf: The buffer to write to (needs to be able to
@@ -270,8 +269,8 @@ int songit_next(SongIterator **it, byte *buf, int *result, int mask);
** to the lower layers) for 0, the cue value for SI_CUE,
** or the number of loops remaining for SI_LOOP.
*/
+int songit_next(SongIterator **it, byte *buf, int *result, int mask);
-SongIterator *songit_new(byte *data, uint size, SongIteratorType type, songit_id_t id);
/* Constructs a new song iterator object
** Parameters: (byte *) data: The song data to iterate over
** (uint) size: Number of bytes in the song
@@ -280,26 +279,17 @@ SongIterator *songit_new(byte *data, uint size, SongIteratorType type, songit_id
** Returns : (SongIterator *) A newly allocated but uninitialized song
** iterator, or NULL if 'type' was invalid or unsupported
*/
+SongIterator *songit_new(byte *data, uint size, SongIteratorType type, songit_id_t id);
-int songit_handle_message(SongIterator **it_reg, SongIterator::Message msg);
/* Handles a message to the song iterator
** Parameters: (SongIterator **): A reference to the variable storing the song iterator
** Returns : (int) Non-zero if the message was understood
** The song iterator may polymorph as result of msg, so a writeable reference is required.
*/
+int songit_handle_message(SongIterator **it_reg, SongIterator::Message msg);
-int sfx_play_iterator_pcm(SongIterator *it, unsigned long handle);
-/* Plays a song iterator that found a PCM through a PCM device, if possible
-** Parameters: (SongIterator *) it: The iterator to play
-** (song_handle_t) handle: Debug handle
-** Returns : (int) 0 if the effect will not be played, nonzero if it will
-** This assumes that the last call to 'it->next()' returned SI_PCM.
-*/
-
-
-SongIterator *new_fast_forward_iterator(SongIterator *it, int delta);
/* Creates a new song iterator which fast-forwards
** Parameters: (SongIterator *) it: The iterator to wrap
** (int) delta: The number of ticks to skip
@@ -307,6 +297,7 @@ SongIterator *new_fast_forward_iterator(SongIterator *it, int delta);
** which skips all delta times
** until 'delta' has been used up
*/
+SongIterator *new_fast_forward_iterator(SongIterator *it, int delta);