Example #1
0
blargg_err_t Sap_Emu::track_info_( track_info_t* out, int track ) const
{
	copy_sap_fields( info_, out, track );
	
	if ( track < max_tracks )
	{
		int time = info_.track_times [track];
		if ( time )
		{
			if ( time > 0 )
			{
				out->loop_length = 0;
				out->length = 0;
			}
			else
			{
				out->loop_length = -time;
				out->length = 0;
			}
		}
	}
	return blargg_ok;
}
Example #2
0
	blargg_err_t track_info_( track_info_t* out, int track ) const
	{
		copy_sap_fields( info, out, track );
		if ( track < info.track_count )
		{
			int time = info.track_times [track];
			if ( time )
			{
				if ( time > 0 )
				{
					out->loop_length = 0;
					out->length = time;
				}
				else
				{
					time = -time;
					out->loop_length = time;
					out->length = 0;
				}
			}
		}

		return blargg_ok;
	}
Example #3
0
	blargg_err_t track_info_( track_info_t* out, int ) const
	{
		copy_sap_fields( info, out );
		return 0;
	}