company logo

MP3Header :: replaceFrame - Replace MP3 frame in header

The function allows replacing an MP3 frame in an MP3 header.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation overview

Implementation details

  1. Update MP3 frame text
    bool MP3Header  :: replaceFrame ( odaba::utils::MP3Frame &cMP3Frame )

    The function locates and replaces the first frame with the identifier from the MP3Frame object passed in rMP3Frame.

    When the requested frame could not be found, the function returns false and true when being replaced successfully..

    When the MP3 header or the passed header is not valid (isValid()). the function throws an exception.

    • cMP3Frame - - internal feature (not documented)
  2. to list
  3. Replace MP3 frame at position
    bool MP3Header  :: replaceFrame ( odaba::utils::MP3Frame &cMP3Frame, int32 iPosition )

    The function locates the frame at position passed in iPosition and replaces it with the frame passed in rMP3Frame.

    When the requested frame could not be found, the function returns false and true when being replaced successfully..

    When the MP3 header or the passed header is not valid (isValid()). the function throws an exception.

    • cMP3Frame - - internal feature (not documented)
    • iPosition - Position in collection

      The position of an element in a collection is beginning with 0 for the first element.

  4. to list