Documentation for pcm_play_data() API function. Info taken from http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-07/0059.shtml.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20868 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marc Guay 2009-05-07 14:45:43 +00:00
parent 87978d4ee8
commit b0f40b7d2b

View file

@ -1690,10 +1690,10 @@ bool pcm_is_playing(void)
void pcm_play_data(pcm_more_callback_type get_more, unsigned char* start, size_t size) void pcm_play_data(pcm_more_callback_type get_more, unsigned char* start, size_t size)
\group sound \group sound
\conditions (CONFIG_CODEC == SWCODEC) \conditions (CONFIG_CODEC == SWCODEC)
\param get_more \param get_more Optional callback
\param start \param start is the address of raw 16-16, interleaved PCM data
\param size \param size is the size of the data to play
\description \description May be used without the callback parameter in order to play a single clip. If you wish to play sound continuously, then use the callback instead and return the buffer address and size to be played from that callback. Every time that a buffer is played out, the callback is asked for the next buffer to play but without stopping and starting playback. The callback is called asynchronously in interrupt context so what you may do in there is limited.
void pcm_play_lock(void) void pcm_play_lock(void)
\group sound \group sound