EXPORT_C void COggVorbisFile::SetPositionL(TTimeIntervalMicroSeconds aPos) { // using tremor: so milliseconds not seconds TInt64 milliseconds = aPos.Int64()/TInt64(1000); //RDebug::Printf("SetPositionL: %f\n", milliseconds.GetTInt()); iBody->SetPositionL(milliseconds.GetTInt()); }
EXPORT_C void TSTStringFormatter::AppendFileLength(TInt64 aLength, TDes &aLengthStr) { if (aLength<0) return; TInt range; for (range=0;range<3;++range) { if (aLength<1000*1000) break; // keep some digits from fraction aLength/=1000; } #ifdef EKA2 TReal len=aLength; #else TReal len=aLength.GetTInt(); #endif if (len>1000) { len/=1000; ++range; } if (range==0) aLengthStr.AppendFormat(_L("%.0f"),len); else aLengthStr.AppendFormat(_L("%.1f"),len); switch (range) { case 0: aLengthStr.Append(_L(" B")); break; case 1: aLengthStr.Append(_L(" kB")); break; case 2: aLengthStr.Append(_L(" MB")); break; case 3: aLengthStr.Append(_L(" GB")); break; case 4: aLengthStr.Append(_L(" TB")); break; default: __ASSERT_DEBUG(false,User::Panic(_L("#TStringFormatter"),0)); } }