Kaydet (Commit) 55d52165 authored tarafından Bartolomé Sánchez Salado's avatar Bartolomé Sánchez Salado Kaydeden (comit) Michael Meeks

Removed unused code.

üst 739252d0
...@@ -396,32 +396,6 @@ double SAL_CALL Player::getMediaTime( ) ...@@ -396,32 +396,6 @@ double SAL_CALL Player::getMediaTime( )
// ------------------------------------------------------------------------------ // ------------------------------------------------------------------------------
void SAL_CALL Player::setStopTime( double /*fTime*/ )
throw (uno::RuntimeException)
{
// TODO implement
}
// ------------------------------------------------------------------------------
double SAL_CALL Player::getStopTime( )
throw (uno::RuntimeException)
{
// Get the time at which to stop
return 0;
}
// ------------------------------------------------------------------------------
void SAL_CALL Player::setRate( double /*fRate*/ )
throw (uno::RuntimeException)
{
// TODO set the window rate
}
// ------------------------------------------------------------------------------
double SAL_CALL Player::getRate( ) double SAL_CALL Player::getRate( )
throw (uno::RuntimeException) throw (uno::RuntimeException)
{ {
......
...@@ -62,9 +62,6 @@ public: ...@@ -62,9 +62,6 @@ public:
virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException);
......
...@@ -59,9 +59,6 @@ public: ...@@ -59,9 +59,6 @@ public:
virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException);
......
...@@ -226,40 +226,6 @@ double SAL_CALL Player::getMediaTime( ) ...@@ -226,40 +226,6 @@ double SAL_CALL Player::getMediaTime( )
// ------------------------------------------------------------------------------ // ------------------------------------------------------------------------------
void SAL_CALL Player::setStopTime( double fTime )
throw (uno::RuntimeException)
{
OSL_TRACE ("Player::setStopTime %f", fTime);
mnStopTime = fTime;
}
// ------------------------------------------------------------------------------
double SAL_CALL Player::getStopTime( )
throw (uno::RuntimeException)
{
double fRet = mnStopTime;
return fRet;
}
// ------------------------------------------------------------------------------
void SAL_CALL Player::setRate( double fRate )
throw (uno::RuntimeException)
{
OSL_TRACE ("Player::setRate");
// Quicktime: 0 = stop, 1 = normal speed, 2 = double speed, -1 = normal speed backwards
if ( mpMovie )
{
[mpMovie setRate: fRate];
}
}
// ------------------------------------------------------------------------------
double SAL_CALL Player::getRate( ) double SAL_CALL Player::getRate( )
throw (uno::RuntimeException) throw (uno::RuntimeException)
{ {
......
...@@ -305,37 +305,6 @@ double SAL_CALL Player::getMediaTime( ) ...@@ -305,37 +305,6 @@ double SAL_CALL Player::getMediaTime( )
// ------------------------------------------------------------------------------ // ------------------------------------------------------------------------------
void SAL_CALL Player::setStopTime( double fTime )
throw (uno::RuntimeException)
{
if( mpMP )
mpMP->put_StopTime( fTime );
}
// ------------------------------------------------------------------------------
double SAL_CALL Player::getStopTime( )
throw (uno::RuntimeException)
{
REFTIME aRefTime( 0.0 );
if( mpMP )
mpMP->get_StopTime( &aRefTime );
return aRefTime;
}
// ------------------------------------------------------------------------------
void SAL_CALL Player::setRate( double fRate )
throw (uno::RuntimeException)
{
if( mpMP )
mpMP->put_Rate( fRate );
}
// ------------------------------------------------------------------------------
double SAL_CALL Player::getRate( ) double SAL_CALL Player::getRate( )
throw (uno::RuntimeException) throw (uno::RuntimeException)
{ {
......
...@@ -75,9 +75,6 @@ public: ...@@ -75,9 +75,6 @@ public:
virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getDuration( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setMediaTime( double fTime ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getMediaTime( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setStopTime( double fTime ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getStopTime( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setRate( double fRate ) throw (::com::sun::star::uno::RuntimeException);
virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException); virtual double SAL_CALL getRate( ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPlaybackLoop( sal_Bool bSet ) throw (::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException); virtual sal_Bool SAL_CALL isPlaybackLoop( ) throw (::com::sun::star::uno::RuntimeException);
......
...@@ -77,26 +77,6 @@ interface XPlayer ...@@ -77,26 +77,6 @@ interface XPlayer
*/ */
double getMediaTime(); double getMediaTime();
/** sets the time at which to stop reading the stream.
@param fTime
the time at which to stop reading the stream in seconds
*/
void setStopTime( [in] double fTime );
/** gets the time at which the stream will stop. The result
is not guaranteed if no stop time has been set.
*/
double getStopTime();
/** sets the speed of the stream reading relatively to the normal
speed.
@param fRate
the stream reading rate. <code>1.0</code> means normal speed.
*/
void setRate( [in] double fRate );
/** gets the speed of the stream reading relatively to the normal /** gets the speed of the stream reading relatively to the normal
reading. reading.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment