TsPayloadReader.TrackIdGenerator


class TsPayloadReader.TrackIdGenerator


Generates track ids for initializing TsPayloadReaders' TrackOutputs.

Summary

Public constructors

TrackIdGenerator(firstTrackId: Int, trackIdIncrement: Int)
TrackIdGenerator(
    programNumber: Int,
    firstTrackId: Int,
    trackIdIncrement: Int
)

Public functions

Unit

Generates a new set of track and track format ids.

Public properties

String!
Int

Public constructors

TrackIdGenerator

TrackIdGenerator(firstTrackId: Int, trackIdIncrement: Int)

TrackIdGenerator

TrackIdGenerator(
    programNumber: Int,
    firstTrackId: Int,
    trackIdIncrement: Int
)

Public functions

generateNewId

fun generateNewId(): Unit

Generates a new set of track and track format ids. Must be called before get* methods.

Public properties

formatId

val formatIdString!

trackId

val trackIdInt