mirror of https://github.com/bsnes-emu/bsnes.git
Minor touchups.
This commit is contained in:
parent
e3f2e634c8
commit
c6f92b782c
|
@ -63,7 +63,7 @@ struct Stream {
|
||||||
auto addLowPassFilter(double cutoffFrequency, Filter::Order order, uint passes = 1) -> void;
|
auto addLowPassFilter(double cutoffFrequency, Filter::Order order, uint passes = 1) -> void;
|
||||||
auto addHighPassFilter(double cutoffFrequency, Filter::Order order, uint passes = 1) -> void;
|
auto addHighPassFilter(double cutoffFrequency, Filter::Order order, uint passes = 1) -> void;
|
||||||
|
|
||||||
auto pending() const -> uint;
|
auto pending() const -> bool;
|
||||||
auto read(double samples[]) -> uint;
|
auto read(double samples[]) -> uint;
|
||||||
auto write(const double samples[]) -> void;
|
auto write(const double samples[]) -> void;
|
||||||
|
|
||||||
|
|
|
@ -81,9 +81,8 @@ auto Stream::addHighPassFilter(double cutoffFrequency, Filter::Order order, uint
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto Stream::pending() const -> uint {
|
auto Stream::pending() const -> bool {
|
||||||
if(!channels) return 0;
|
return channels && channels[0].resampler.pending();
|
||||||
return channels[0].resampler.pending();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto Stream::read(double samples[]) -> uint {
|
auto Stream::read(double samples[]) -> uint {
|
||||||
|
|
|
@ -41,7 +41,7 @@ struct queue {
|
||||||
template<typename U = T> auto capacity() const -> uint { return _capacity * sizeof(T) / sizeof(U); }
|
template<typename U = T> auto capacity() const -> uint { return _capacity * sizeof(T) / sizeof(U); }
|
||||||
template<typename U = T> auto size() const -> uint { return _size * sizeof(T) / sizeof(U); }
|
template<typename U = T> auto size() const -> uint { return _size * sizeof(T) / sizeof(U); }
|
||||||
auto empty() const -> bool { return _size == 0; }
|
auto empty() const -> bool { return _size == 0; }
|
||||||
auto pending() const -> bool { return _size; }
|
auto pending() const -> bool { return _size > 0; }
|
||||||
auto full() const -> bool { return _size >= (int)_capacity; }
|
auto full() const -> bool { return _size >= (int)_capacity; }
|
||||||
auto underflow() const -> bool { return _size < 0; }
|
auto underflow() const -> bool { return _size < 0; }
|
||||||
auto overflow() const -> bool { return _size > (int)_capacity; }
|
auto overflow() const -> bool { return _size > (int)_capacity; }
|
||||||
|
|
Loading…
Reference in New Issue