ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Audio::LinearRateDetails Struct Reference

Audio rate converter based on simple linear Interpolation. More...

List of all members.

Public Attributes

const st_sample_tinPtr
int inLen
long opos
 position of how far output is ahead of input
long opos_inc
 integer position increment in the output stream
st_sample_t icur [2]
 current sample(s) in the input stream (left/right channel)
int32 ilast [2]
 last sample(s) in the input stream (left/right channel)
st_sample_t inBuf [INTERMEDIATE_BUFFER_SIZE]

Detailed Description

Audio rate converter based on simple linear Interpolation.

The use of fractional increment allows us to use no buffer. It avoid the problems at the end of the buffer we had with the old method which stored a possibly big buffer of size lcm(in_rate,out_rate).

Limited to sampling frequency <= 65535 Hz.

Definition at line 220 of file rate_arm.cpp.


Member Data Documentation

current sample(s) in the input stream (left/right channel)

Definition at line 232 of file rate_arm.cpp.

last sample(s) in the input stream (left/right channel)

Note, these are deliberately ints, not st_sample_t's

Definition at line 235 of file rate_arm.cpp.

st_sample_t Audio::LinearRateDetails::inBuf[INTERMEDIATE_BUFFER_SIZE]

Definition at line 237 of file rate_arm.cpp.

Definition at line 222 of file rate_arm.cpp.

Definition at line 221 of file rate_arm.cpp.

position of how far output is ahead of input

Holds what would have been opos-ipos<<16 + opos_frac

Definition at line 226 of file rate_arm.cpp.

integer position increment in the output stream

Definition at line 229 of file rate_arm.cpp.


The documentation for this struct was generated from the following file:


Generated on Sat May 25 2019 05:04:55 for ResidualVM by doxygen 1.7.1
curved edge   curved edge