![]() |
videoLat 2.0
Video conferencing delay measurements
|
#import <AudioProcess.h>
Public Member Functions | |
(AudioProcess *) | - clone |
(NSArray *) | - processOriginal: |
(BOOL) | - feedData:size:channels:bitsPerChannel:at:duration: |
(uint64_t) | - lastMatchTimestamp |
(void) | - _reset |
Internal: reset internal variables to prepare for new match. | |
Protected Attributes | |
BOOL | wasNoisy |
true if the previous buffer ended noisily | |
double | prevEnergy |
amount of energy in previous buffer | |
uint64_t | matchTimestamp |
timestamp of most recent match | |
Properties | |
NSArray * | originalSignature |
Object that does pattern-matching on audio data to compare it to a known audio sample.
The current implementation is very simple-minded: it looks for a bit of noise in an otherwise quiet sample.
- (BOOL) feedData: | (void *) | buffer | |
size: | (size_t) | size | |
channels: | (int) | channels | |
bitsPerChannel: | (int) | nBits | |
at: | (uint64_t) | now | |
duration: | (uint64_t) | duration | |
Feed audio data into the matcher.
buffer | memory buffer containing audio data (16 bit signed linear PCM) |
size | size of buffer, in bytes |
channels | number of channels (can be 1 or 2) |
now | timestamp corresponding to first sample in buffer |
- (uint64_t) lastMatchTimestamp |
Timestamp (in feedData terms) of match that corresponds to the beginning of the sample fed to processOriginal.
- (NSArray *) processOriginal: | (NSURL *) | fileURL |
Primes the audio processor to detect copies of this sample.
fileURL | File containing original audio sample |