TRTCAudioFrameCallbackFormat class

Format parameter of custom audio callback

Constructors

TRTCAudioFrameCallbackFormat({int sampleRate = 0, int channel = 0, int samplesPerCall = 0, TRTCAudioFrameOperationMode mode = TRTCAudioFrameOperationMode.readWrite})

Properties

channel int
  • Field description: Number of sound channels.
  • Recommended value: Default value: 1, which means mono channel. Valid values: 1: mono channel; 2: dual channel.
  • getter/setter pair
    hashCode int
    The hash code for this object.
    no setterinherited
    mode TRTCAudioFrameOperationMode
  • Field description: Audio callback data operation mode.
  • Recommended value: TRTCAudioFrameOperationModeReadOnly, get audio data from callback only. The modes that can be set are TRTCAudioFrameOperationModeReadOnly, TRTCAudioFrameOperationModeReadWrite.
  • getter/setter pair
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    sampleRate int
  • Field description: Sample rate.
  • Recommended value: Default value: 48000 Hz. Valid values: 16000, 32000, 44100, 48000.
  • getter/setter pair
    samplesPerCall int
  • Field description: Number of sample points.
  • Recommended value: The value must be an integer multiple of sampleRate/100.
  • getter/setter pair

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited