I/O & Encoding

PyAudioop

Python stdlib module — audioop. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.add()Neutral
#
Signature
add(fragment1, fragment2, width)

Return a fragment which is the addition of the two samples passed as parameters.

.adpcm2lin()Neutral
#
Signature
adpcm2lin(fragment, width, state)

Decode an Intel/DVI ADPCM coded fragment to a linear fragment.

.alaw2lin()Neutral
#
Signature
alaw2lin(fragment, width)

Convert sound fragments in a-LAW encoding to linearly encoded sound fragments.

.avg()Neutral
#
Signature
avg(fragment, width)

Return the average over all samples in the fragment.

.avgpp()Neutral
#
Signature
avgpp(fragment, width)

Return the average peak-peak value over all samples in the fragment.

.bias()Neutral
#
Signature
bias(fragment, width, bias)

Return a fragment that is the original fragment with a bias added to each sample.

.byteswap()Neutral
#
Signature
byteswap(fragment, width)

Convert big-endian samples to little-endian and vice versa.

.cross()Neutral
#
Signature
cross(fragment, width)

Return the number of zero crossings in the fragment passed as an argument.

.findfactor()Neutral
#
Signature
findfactor(fragment, reference)

Return a factor F such that rms(add(fragment, mul(reference, -F))) is minimal.

.findfit()Neutral
#
Signature
findfit(fragment, reference)

Try to match reference as well as possible to a portion of fragment.

Fully-Qualified Names

FQNField
audioopfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import audioop