struct SDS_PSTM_STAT { Sint8 m_HostCmdRsvNum; Sint8 m_HostCmdDelayTime; Sint8 m_Vol; Sint8 m_Pan; Sint8 m_FxLev; Sint8 m_DrctLev; Sint16 m_Pitch; Sint16 m_Speed; Uint32 m_TotalSmpFrame; Sint32 m_CurAdr; Uint32 m_Err; Uint32 m_Flg; }; typedef struct SDS_PSTM_STAT SDS_PSTM_STAT;
m_HostCmdRsvNum | Host command buffer reserved area number (Currently undefined) |
m_HostCmdDelayTime | Host command sending delay time (Currently undefined) |
m_Vol | Current port volume |
m_Pan | Current port panpot |
m_FxLev | Current port FX level |
m_DrctLev | Current port direct level |
m_Pitch | Current port pitch |
m_Speed | Current port speed |
m_TotalSmpFrame | Total play sample frames for sound data playing at current port |
m_CurAdr | Current pointer to sound playing at current port |
m_Err | Various errors |
m_Flg | Various flags |
The following bits are set for member m_Err.
SDD_PORT_ERR_PRIORITY | When the priority of sound data intended to be played is lower than the priority of the currently playing sound data. |
SDD_PORT_ERR_REQUEST_NUM | When sound data play request is received, but cannot be executed (for example, when a bank number or list number that doesn't exist is specified). |
SDD_PORT_ERR_DATA_ID_ERR | When the data ID and bank ID of sound data to be played is incorrect. |
SDD_PORT_ERR_VER_ERR | When the sound data version is incorrect (old or new). |
SDD_PORT_ERR_MIDI_BUF_NO_ENOUGH | When the buffer overflows sending a message to the MIDI sound source from the MIDI sequencer or sound library. |
SDD_PORT_ERR_MIDI_SEQ_BUF_NO_ENOUGH | When the stack overflows when the MIDI sequencer intends to send a message to the MIDI sound source, but it cannot be sent because of buffer flow. |
SDD_PORT_ERR_SLOT_NO_ENOUGH | When the buffer overflows sending a message to the MIDI sound source from the MIDI sequencer or sound library. |
SDD_PORT_FLG_PLAY | Sound data is playing. |
SDD_PORT_FLG_PAUSE | Sound data play is paused. |
SDD_PORT_FLG_CHG_VOL | Volume is being set. (In the process of feeding) |
SDD_PORT_FLG_CHG_SPEED | Speed is being set. (In the process of feeding) |
SDD_PORT_FLG_CHG_PITCH | Pitch is being set. (In the process of feeding) |
SDD_PORT_FLG_CHG_PAN | Panpot is being set. (In the process of feeding) |
SDD_PORT_FLG_TROUBLE | When an error is generated. |