Package com.revesoft.itelmobiledialer.media.controller.audio
See: Description
-
Class Summary Class Description AudioFrame Represents an audio frame for RTP communication. AudioFrameComparator x = 0 if both "true" or both "false" x = 1 if 1st is "true" and 2nd is "false" x = -1 if 1st is "false" and 2nd is "true" y = 0 if both a == b y = 1 if a > b y = -1 if a < b so if x != 0 meaning both not same, in that case we will return as it is (true, if true or false, if false) because silence has higher priority rather than rms and the order is reversed. AudioFrameShort AudioMixer AudioPacketFactory Audio Packet Structure Doc for Reve Conference: Here our main goal is to design redundant audio packet for a conference so that it can perform well in heavy packet loss environment. Frame 1 is always the primary audio packet and others are redundant. Audio Packet - Header : 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | MediaID | Packet Type | Frame Count | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame 1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame 2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | Audio Packet - Frame (single): 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame Length | Flag/Silence | codec | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Number | Rms | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Timestamp | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Data ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ MediaID ( 2 bytes / 16 bits) = media ID of the audio packet sender Packet Type ( 1 byte / 8 bits) = Audio / Video / Control / other (special packet) : 00 => Audio ,01 => Video Frame Count ( 1 byte / 8 bits) = number of Frame or redundant data (audio) present Frame ( defined by Frame count ) = audio packet with info’s Frame Length ( 2 bytes / 16 bits ) = the length (bytes) of the Frame (first 12 bytes are fixed Frame header so length 130 means 12 bytes Frame header with 118 bytes of Frame data, there can be mulitple payloads) Flag/Silence ( 1 byte / 8 bits ) = silence bit (first bit is SILENCE bit and next 7 bits are reserved) Reserved (1 byte / 8 bits ) = Reserved for later usage Sequence Number ( 2 bytes / 16 bits ) = sequence number of the audio Frame Rms ( 2 bytes / 16 bits ) = rms value of the audio data Timestamp ( 4 bytes / 32 bits) = timestamp of the Frame (while created) Data ( defined by Frame length) = opus encoded audio bytesDeviceNotInitializedException SequenceUtils Sodrul Amin Shaon ** Md.