IAudioFrame class

Inheritance
  • Object
  • NativeClass
  • IAudioFrame

Constructors

IAudioFrame([NativeClassOptions? options])

Properties

$resource → NativeResource
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

channel() FutureOr<AudioChannel>
@detail api @author majun.lvhiei @brief Get the audio channel. See AudioChannel{@link #AudioChannel}. @return Audio channel @note For dual channels, the audio frames are interleaved.
data_size() FutureOr<int>
@detail api @author majun.lvhiei @brief Get audio frame data size. @return Audio frame data size in bytes.
destroy() → void
inherited
extraInfoSize() FutureOr<int>
@detail api @hidden for internal use only @brief Getd audio frame extra info data size @return Audio frame extra info data size in bytes.
frame_type() FutureOr<AudioFrameType>
@detail api @brief Get audio frame type, only PCM is supported currently. See AudioFrameType{@link #AudioFrameType}. @return Audio frame type.
getDataBuffer() FutureOr<ByteBuffer>
@detail api @author majun.lvhiei @brief Get the audio frame's temporary storage address @return Audio frame's ByteBuffer
getExtraInfo() FutureOr<ByteBuffer>
@detail api @hidden for internal use only @brief Gets audio frame extra info memory address @return Audio frame extra info memory address
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() FutureOr<void>
@detail api @brief Release audio frame.
sample_rate() FutureOr<AudioSampleRate>
@detail api @author majun.lvhiei @brief Get the audio sample rate. See AudioSampleRate{@link #AudioSampleRate}. @return AudioSampleRate
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
timestamp_us() FutureOr<long>
@detail api @author majun.lvhiei @brief Get the audio timestamp. @return Audio timestamp in microseconds.
toString() String
A string representation of this object.
inherited
updateResource(NativeResource resource) → void
inherited

Operators

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

Static Properties

codegen_$namespace → dynamic
no setter