|
a/sc2src/rcvqueue.h |
|
b/sc2src/rcvqueue.h |
|
... |
|
... |
44 |
return m_bytes / (m_bits/8);
|
44 |
return m_bytes / (m_bits/8);
|
45 |
}
|
45 |
}
|
46 |
unsigned int frames() {
|
46 |
unsigned int frames() {
|
47 |
return samples() / m_chans;
|
47 |
return samples() / m_chans;
|
48 |
}
|
48 |
}
|
|
|
49 |
// Convert frame count into byte count
|
|
|
50 |
unsigned int frames_to_bytes(unsigned int frames) {
|
|
|
51 |
return frames * m_chans * (m_bits/8);
|
|
|
52 |
}
|
|
|
53 |
|
49 |
unsigned int m_bits;
|
54 |
unsigned int m_bits;
|
50 |
unsigned int m_chans;
|
55 |
unsigned int m_chans;
|
51 |
unsigned int m_freq;
|
56 |
unsigned int m_freq;
|
52 |
unsigned int m_bytes; // Useful bytes
|
57 |
unsigned int m_bytes; // Useful bytes
|
53 |
unsigned int m_allocbytes; // buffer size
|
58 |
unsigned int m_allocbytes; // buffer size
|