How to link multiple HReaders and HWriters in a chain using the HWriterConsumer interface
#include <iostream>
#include "hardtapi.h"
int main(int argc, char** argv)
{
HInit(std::string("readers_and_consumers"), true);
std::cout << "readers_and_consumers: using Hardt " + getVersion() << std::endl;
if( argc < 2 )
{
std::cout << "Usage: readers_and_consumers 'output-sound-device-number'" << std::endl;
std::cout << "Use 'dspcmd -a' to get a list of your sound device numbers" << std::endl;
return 1;
}
const int BLOCKSIZE = 4096;
bool terminated = false;
}