aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMax Horn2009-10-13 18:52:36 +0000
committerMax Horn2009-10-13 18:52:36 +0000
commit8126f81b6f11982ae696d861a26387a7169923d0 (patch)
tree69de394fa1b232a195e371fc2dccc7882a9d8236 /engines/sci
parent8191c04056ea65169e04957d00da11550b3495e3 (diff)
downloadscummvm-rg350-8126f81b6f11982ae696d861a26387a7169923d0.tar.gz
scummvm-rg350-8126f81b6f11982ae696d861a26387a7169923d0.tar.bz2
scummvm-rg350-8126f81b6f11982ae696d861a26387a7169923d0.zip
SCI: Doxygenify comments in class SfxPlayer
svn-id: r45039
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sfx/core.cpp75
1 files changed, 39 insertions, 36 deletions
diff --git a/engines/sci/sfx/core.cpp b/engines/sci/sfx/core.cpp
index 6222101d65..f985fef7aa 100644
--- a/engines/sci/sfx/core.cpp
+++ b/engines/sci/sfx/core.cpp
@@ -82,54 +82,57 @@ public:
SfxPlayer();
~SfxPlayer();
- /* Initializes the player
- ** Parameters: (ResourceManager *) resMan: A resource manager for driver initialization
- ** (int) expected_latency: Expected delay in between calls to 'maintenance'
- ** (in microseconds)
- ** Returns : (int) Common::kNoError on success, Common::kUnknownError on failure
- */
+ /**
+ * Initializes the player.
+ * @param resMan a resource manager for driver initialization
+ * @param expected_latency expected delay in between calls to 'maintenance' (in microseconds)
+ * @return Common::kNoError on success, Common::kUnknownError on failure
+ */
Common::Error init(ResourceManager *resMan, int expected_latency);
- /* Adds an iterator to the song player
- ** Parameters: (songx_iterator_t *) it: The iterator to play
- ** (uint32) start_time: The time to assume as the
- ** time the first MIDI command executes at
- ** Returns : (int) Common::kNoError on success, Common::kUnknownError on failure
- ** The iterator should not be cloned (to avoid memory leaks) and
- ** may be modified according to the needs of the player.
- ** Implementors may use the 'sfx_iterator_combine()' function
- ** to add iterators onto their already existing iterators
- */
+ /**
+ * Adds an iterator to the song player
+ * @param it The iterator to play
+ * @param start_time The time to assume as the time the first MIDI command executes at
+ * @return Common::kNoError on success, Common::kUnknownError on failure
+ *
+ * The iterator should not be cloned (to avoid memory leaks) and
+ * may be modified according to the needs of the player.
+ * Implementors may use the 'sfx_iterator_combine()' function
+ * to add iterators onto their already existing iterators.
+ */
Common::Error add_iterator(SongIterator *it, uint32 start_time);
- /* Stops the currently playing song and deletes the associated iterator
- ** Returns : (int) Common::kNoError on success, Common::kUnknownError on failure
- */
+ /**
+ * Stops the currently playing song and deletes the associated iterator.
+ * @return Common::kNoError on success, Common::kUnknownError on failure
+ */
Common::Error stop();
- /* Transmits a song iterator message to the active song
- ** Parameters: (SongIterator::Message) msg: The message to transmit
- ** Returns : (int) Common::kNoError on success, Common::kUnknownError on failure
- ** OPTIONAL -- may be NULL
- ** If this method is not present, sending messages will stop
- ** and re-start playing, so it is preferred that it is present
- */
+ /**
+ * Transmits a song iterator message to the active song.
+ * @param msg the message to transmit
+ * @return Common::kNoError on success, Common::kUnknownError on failure
+ */
Common::Error iterator_message(const SongIterator::Message &msg);
- /* Pauses song playing
- ** Returns : (int) Common::kNoError on success, Common::kUnknownError on failure
- */
+ /**
+ * Pauses song playing.
+ * @return Common::kNoError on success, Common::kUnknownError on failure
+ */
Common::Error pause();
- /* Resumes song playing after a pause
- ** Returns : (int) Common::kNoError on success, Common::kUnknownError on failure
- */
+ /**
+ * Resumes song playing after a pause.
+ * @return Common::kNoError on success, Common::kUnknownError on failure
+ */
Common::Error resume();
- /* Pass a raw MIDI event to the synth
- Parameters: (int) argc: Length of buffer holding the midi event
- (byte *) argv: The buffer itself
- */
+ /**
+ * Pass a raw MIDI event to the synth.
+ * @param argc length of buffer holding the midi event
+ * @param argv the buffer itself
+ */
void tell_synth(int buf_nr, byte *buf);
};