コード例 #1
0
ファイル: blursk.cpp プロジェクト: PyroOS/Pyro
	void AudioData( os::View* pcTarget, int16 nData[2][512] )
	{
		if( !activated )
			return;
			
			
		config.signal_style = m_zType;
		
		blursk_view = pcTarget;
		int width = pcTarget->GetBounds().Width() + 1;
		int height = pcTarget->GetBounds().Height() + 1;
		
		if( width < 32 || height < 32 )
			return;
			
		
		if ((width != img_physwidth || height != img_physheight))
		{
			/* Change the image to match the window */
			img_resize(width, height);

			/* Store the new height & width.  Might as well grab the
			 * position too.
			 */
			config.width = width;
			config.height = height;
			config.x = 0;
			config.y = 0;
		
			delete( blursk_bitmap );
			blursk_bitmap = new os::Bitmap( config.width, config.height, os::CS_RGB32 );
		}
		
		blursk_render_pcm( nData );
	}
コード例 #2
0
ファイル: blursk.c プロジェクト: Libvisual/LibVisualAndroid
void __blursk_render_pcm (BlurskPrivate *priv, int16_t *pcmbuf) {
    blursk_render_pcm(priv, pcmbuf);
}