src/sgp/SoundMan.cc
/* Starts up a sample on the specified channel. Override parameters are passed
 * in through the structure pointer pParms. Any entry with a value of 0xffffffff
 * will be filled in by the system.
 *
 * Returns: Unique sound ID if successful, SOUND_ERROR if not. */
Starts up a sample on the specified channel. Override parameters are passed
in through the structure pointer pParms. Any entry with a value of 0xffffffff
will be filled in by the system.

Unique sound ID if successful, SOUND_ERROR if not.
Starts up a sample on the specified channel . Override parameters are passed in through the structure pointer pParms . Any entry with a value of 0xffffffff will be filled in by the system . Unique sound ID if successful SOUND_ERROR if not .
static UINT32 SoundStartSample(SAMPLETAG* sample, SOUNDTAG* channel, UINT32 volume, UINT32 pan, UINT32 loop, void (*end_callback)(void*), void* data)
{
	SLOGD("playing channel %u sample %u file \"%s\"", channel - pSoundList, sample - pSampleList, sample->pName);
	if (!fSoundSystemInit) return SOUND_ERROR;
	channel->uiFadeVolume  = volume;
	channel->Loops         = loop;
	channel->Pan           = pan;
	channel->EOSCallback   = end_callback;
	channel->pCallbackData = data;
	UINT32 uiSoundID = SoundGetUniqueID();
	channel->uiSoundID    = uiSoundID;
	channel->pSample      = sample;
	channel->uiTimeStamp  = GetClock();
	channel->pos          = 0;
	channel->State        = CHANNEL_PLAY;
	sample->uiInstances++;
	sample->uiCacheHits++;
	return uiSoundID;
}
static UINT32 SoundStartSample ( SAMPLETAG * sample , SOUNDTAG * channel , UINT32 volume , UINT32 pan , UINT32 loop , void ( * end_callback ) ( void * ) , void * data ) { SLOGD ( " \" \" " , channel - pSoundList , sample - pSampleList , sample -> pName ) ; if ( ! fSoundSystemInit ) return SOUND_ERROR ; channel -> uiFadeVolume = volume ; channel -> Loops = loop ; channel -> Pan = pan ; channel -> EOSCallback = end_callback ; channel -> pCallbackData = data ; UINT32 uiSoundID = SoundGetUniqueID ( ) ; channel -> uiSoundID = uiSoundID ; channel -> pSample = sample ; channel -> uiTimeStamp = GetClock ( ) ; channel -> pos = 0 ; channel -> State = CHANNEL_PLAY ; sample -> uiInstances ++ ; sample -> uiCacheHits ++ ; return uiSoundID ; }
Starts up a sample on the specified channel.
Starts up a sample on the specified channel .