### IMMTrackMinSecFrameTime

  The IMMTrackMinSecFrameTime data type class represents the tracks-minutes-seconds-frames (TTMMSSFF) time format. This format is used primarily by compact disc audio devices.

### IMMTrackMinSecFrameTime - Member Functions and Data by Group

### Constructors & Destructor

You can construct, copy, and destruct objects of this class.

~IMMTrackMinSecFrameTime

      public:
      virtual ~IMMTrackMinSecFrameTime()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

IMMTrackMinSecFrameTime

  Overload 1

      public:
      IMMTrackMinSecFrameTime( IMMAudioCDContents& contents,
                               unsigned long value )

  You can construct an IMMTrackMinSecFrameTime from the following:

  contents
    A table of contents for the compact disc that you want to create a time for.
  value
    A time value where:
    1. 1st byte is the frames
    2. 2nd byte is the seconds
    3. 3rd byte is the minutes
    4. 4th byte is the track

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

  Overload 2

      public:
      IMMTrackMinSecFrameTime( IMMAudioCDContents& contents,
                               unsigned long track,
                               unsigned long minutes,
                               unsigned long seconds,
                               unsigned long frames )

  You can construct an IMMHourMinSecFrameTime from the following:

  contents
    A table of contents for the compact disc that you want to create a time for.
  track
    A track number.
  minutes
    The number of minutes.
  seconds
    The number of seconds.
  frames
    The number of frames.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

  Overload 3

      public:
      IMMTrackMinSecFrameTime( const IMMTrackMinSecFrameTime& time )

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

operator =

      public:
      IMMTrackMinSecFrameTime&
        operator =( const IMMTrackMinSecFrameTime& time )

  Sets the time to be equal to the passed-in time.

Exception

  IInvalidRequest | The passed-in time is invalid.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### Attributes

Use these members to parse the data into tracks, seconds, minutes, and frames.

frames

      public:
      virtual unsigned long frames() const

  Returns the frames component of the time.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

minutes

      public:
      virtual unsigned long minutes() const

  Returns the minutes component of the time. This is in the range of 0 to 59.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

seconds

      public:
      virtual unsigned long seconds() const

  Returns the seconds component of the time. This is in the range of 0 to 59.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

track

      public:
      virtual unsigned long track() const

  Returns the track component of the time.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### Conversion

Use these members to cast the time to an unsigned long.

operator unsigned long

      public:
      virtual operator unsigned long() const

  Returns the time as an unsigned long in the following format (FFSSMMTT):

  1. 1st byte is the frames
  2. 2nd byte is the seconds
  3. 3rd byte is the minutes
  4. 4th byte is the tracks
  This value is based on the current table of contents.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### Diagnostics

Use these members to return the time as a string.

asString

      public:
      virtual IString asString() const

  Returns the time value as a string formatted as TT MM:SS.FF.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### Operators

Use these operators to perform mathematical operations on time objects.

operator +

      public:
      IMMTrackMinSecFrameTime operator +(const IMMTime& time)

  Returns the sum of the current set time and the passed-in time.

Exception

  IInvalidRequest | The passed-in time is invalid or this time object is invalid.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

operator +=

      public:
      IMMTrackMinSecFrameTime& operator +=(const IMMTime& time)

  Adds the time to the current set time.

Exception

  IInvalidRequest | The passed-in time is invalid or this time object is invalid.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

operator -

      public:
      IMMTrackMinSecFrameTime operator -(const IMMTime& time)

  Returns the result of the current set time minus the passed-in time.

Exception

  IInvalidRequest | The passed-in time is invalid or this time object is invalid.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

operator -=

      public:
      IMMTrackMinSecFrameTime& operator -=(const IMMTime& time)

  Subtracts the time from the current set time.

Exception

  IInvalidRequest | The passed-in time is invalid or this time object is invalid.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

### IMMTrackMinSecFrameTime - Inherited Member Functions and Data

#### Inherited Public Functions

  IMMTime

  -     virtual ~IMMTime()

  -     virtual unsigned long asMMTime() const

  -     virtual unsigned long hours() const

  -     virtual unsigned long hundredths() const

  -     IMMTime(const IMMTime& time)

  -     IMMTime(unsigned long time = defaultTime)

  -     virtual bool isValid() const

  -     bool operator !=(const IMMTime& time) const

  -     IMMTime operator +(const IMMTime& time) const

  -     IMMTime& operator +=(const IMMTime& time)

  -     IMMTime operator -(const IMMTime& time) const

  -     IMMTime& operator -=(const IMMTime& time)

  -     bool operator <(const IMMTime& time) const

  -     bool operator <=(const IMMTime& time) const

  -     IMMTime& operator =(const IMMTime& time)

  -     bool operator ==(const IMMTime& time) const

  -     bool operator >(const IMMTime& time) const

  -     bool operator >=(const IMMTime& time) const

  -     virtual unsigned long ordinal() const

  -     virtual IMMTime& setTimeToOrdinal(unsigned long ordinal)

  -     virtual unsigned long thousandths() const

#### Inherited Public Data

  IMMTime

  -     static const unsigned long defaultTime

#### Inherited Protected Functions

  IMMTime

  -     IMMTime& setMMTime(unsigned long newTime)

  -     IMMTime& setValid(bool Valid = true)

#### Inherited Protected Data

  - None