int sm_replay_wav_prepare(struct sm_replay_wav_prepare_parms *replay_wav_prep_parms)
typedef struct sm_replay_wav_prepare_parms { char *filename; /* in */ SM_REPLAY_PARMS *replay_parms; /* out */ } SM_REPLAY_WAV_PREPARE_PARMS;
Given an open WAV file, populates the replay_parms structure with the information required to start a replay. The channel field will remain uninitialised until a valid tSMChannelId is supplied. Please note that the replay_parms structure must have already been cleared (usually with memset()) before calling this function. After this function returnes you may modify the field in that structure before starting a replay.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody WAV FILE API.