Fix typo untyped_steam -> untyped_stream

This commit is contained in:
Maxime Biette 2021-07-12 17:49:06 -04:00
parent 3d7cfffe13
commit 168226c634
2 changed files with 8 additions and 8 deletions

View File

@ -87,19 +87,19 @@ namespace dsp {
ctrlMtx.unlock(); ctrlMtx.unlock();
} }
void registerInput(untyped_steam* inStream) { void registerInput(untyped_stream* inStream) {
inputs.push_back(inStream); inputs.push_back(inStream);
} }
void unregisterInput(untyped_steam* inStream) { void unregisterInput(untyped_stream* inStream) {
inputs.erase(std::remove(inputs.begin(), inputs.end(), inStream), inputs.end()); inputs.erase(std::remove(inputs.begin(), inputs.end(), inStream), inputs.end());
} }
void registerOutput(untyped_steam* outStream) { void registerOutput(untyped_stream* outStream) {
outputs.push_back(outStream); outputs.push_back(outStream);
} }
void unregisterOutput(untyped_steam* outStream) { void unregisterOutput(untyped_stream* outStream) {
outputs.erase(std::remove(outputs.begin(), outputs.end(), outStream), outputs.end()); outputs.erase(std::remove(outputs.begin(), outputs.end(), outStream), outputs.end());
} }
@ -133,8 +133,8 @@ namespace dsp {
std::mutex ctrlMtx; std::mutex ctrlMtx;
std::vector<untyped_steam*> inputs; std::vector<untyped_stream*> inputs;
std::vector<untyped_steam*> outputs; std::vector<untyped_stream*> outputs;
bool running = false; bool running = false;
bool tempStopped = false; bool tempStopped = false;

View File

@ -7,7 +7,7 @@
#define STREAM_BUFFER_SIZE 1000000 #define STREAM_BUFFER_SIZE 1000000
namespace dsp { namespace dsp {
class untyped_steam { class untyped_stream {
public: public:
virtual bool swap(int size) { return false; } virtual bool swap(int size) { return false; }
virtual int read() { return -1; } virtual int read() { return -1; }
@ -19,7 +19,7 @@ namespace dsp {
}; };
template <class T> template <class T>
class stream : public untyped_steam { class stream : public untyped_stream {
public: public:
stream() { stream() {
writeBuf = (T*)volk_malloc(STREAM_BUFFER_SIZE * sizeof(T), volk_get_alignment()); writeBuf = (T*)volk_malloc(STREAM_BUFFER_SIZE * sizeof(T), volk_get_alignment());