示例#1
0
文件: SFApi.c 项目: 12019/mtktest
/**
* @brief 开始播放指定的设备
* @param aDevice - 播放的设备
*/
void SFPCMDevice_Start(SFPCMDevice* aDevice)
{
	PARAM_UNUSED(aDevice);

	if((MMI_PROFILE_SILENT == gactivatedprofile)
		|| (MMI_PROFILE_MEETING == gactivatedprofile))
	{
		return;
	}
	
	u8_g_sound_playflag = 1;
	pu8_g_sound_bufstart = (U8 *)u8_g_sound_buffer;
	u32_g_sound_bufsize = SF_SOUND_BUFFER_SIZE;
	pu8_g_sound_in_ptr = pu8_g_sound_out_ptr = pu8_g_sound_bufstart;

	memset(pu8_g_sound_bufstart,0x0,u32_g_sound_bufsize);
	
	mdi_audio_play_string(pu8_g_sound_bufstart, u32_g_sound_bufsize, 
		MDI_FORMAT_PCM_8K, DEVICE_AUDIO_PLAY_INFINITE, NULL, NULL);
}
示例#2
0
void PlayAudioStream(U8* audioBuffer, U16 length, U8 format, U8 style )
{
#if 1
   mdi_audio_play_string((void *)audioBuffer, length, format, style, NULL, NULL);
#else
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
}