Simple Sound for Small Devices
libsssd
last updated: 14 JUN 2003 (v0.6)

Function Name:  sssd_blockUntilSample

   Will wait until a playing sample has finished playing before returning.


C Prototype:

int sssd_blockUntilSample (struct sssdaudio *ga, int playing_id, int sample_number);

  Other Prototypes:



Arguments:


struct gameaudio *ga

    Pointer to an initialized sssdaudio structure (returned by sssd_initAudio)

int playing_id

    Playing sample ID as returned by sssd_playSample().

int sample_number

    The sample position number that will need to be sent to the audio device before this function returns.



Returns:


0
Success

ERR_SAMPLES_RANGE
The sample_number argument is beyond the range of the playing sample.

ERR_PLAYING_ID
The provided playing ID is illegal (out of range or sample is not currently playing).

ERR_PLAYING_LOOP
The playing sample is an infinite loop.

 

libsssd (c)2003 Patrick Roberts created from libgaudio (c) 1999-2000 A. Schiffler.  Release as open source under MPL 1.1.  Documentation (c)2003 Patrick Roberts.