Sound Function - Sound Module Control Function

sdPstmPlay

Plays a PCM Stream

FORMAT

SDE_ERR sdPstmPlay( handle, pcmType, smp_frequency, priority )
SDPSTM handle
SDE_PCM_TYPE pcmType
Uint16 smp_frequency
Sint8 priority

PARAMETER

 handle  Object handle 
 pcmType  PCM type of playing data 
 smp_frequency  Standard play rate  
 priority  Priority level 

RETURN

 SDE_ERR_NO_INIT  The Sound Library has not been initialized 
 SDE_ERR_HANDLE_NULL  The handle is NULL 
 SDE_ERR_HOST_CMD_BUF_NO_ENOUGH  No more host commands can be accepted 

DESCRIPTION

Plays a PCM Stream.

The value of argument pcmType, which specifies PCM type, does not directly use the sampling frequency, but uses the previously prepared constants listed below.

 SDE_PCM_TYPE_8BIT_PCM  8-bit linear PCM 
 SDE_PCM_TYPE_16BIT_PCM  16-bit linear PCM 
 SDE_PCM_TYPE_4BIT_ADPCM  4-bit ADPCM 

The following constants are specified for the argument smp_frequency, which specifies standard values used during play.

 Constant  Meaning 
 SDD_PSTM_FREQ_48000  48,000Hz 
 SDD_PSTM_FREQ_44100  44,100Hz 
 SDD_PSTM_FREQ_37800  37,800Hz 
 SDD_PSTM_FREQ_32000  32,000Hz 
 SDD_PSTM_FREQ_24000  24,000Hz 
 SDD_PSTM_FREQ_22050  22,050Hz 
 SDD_PSTM_FREQ_18900  18,900Hz 
 SDD_PSTM_FREQ_16000  16,000Hz 
 SDD_PSTM_FREQ_12000  12,000Hz 
 SDD_PSTM_FREQ_11025  11,025Hz 
 SDD_PSTM_FREQ_08820  8,820Hz 
 SDD_PSTM_FREQ_08000  8,000Hz 

The range of priority, which specifies priority level, is 0000H (always take priority) to 0001H (lowest) to 000FH (highest)


sdPstmPlay
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999