#include <iostream>
#include "hardtapi.h"
{
std::cout <<
"\b\b\bS " << result->
S << std::flush;
return length;
}
int main(int argc, char** argv)
{
HInit(std::string("saq"), true);
std::cout << "saq: using Hardt " + getVersion() << std::endl;
std::cout << "S 0";
if( argc < 3 )
{
std::cout << "Usage: saq 'filename' '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;
const int LOCAL_OSCILATOR = 16160;
HMultiplier<int16_t> multiplier(highpass.Reader(), H_SAMPLE_RATE_48K, LOCAL_OSCILATOR, 10, BLOCKSIZE);
float coeffs[] =
{
0.06053979315740952, -0.12107958631481903, 0.06053979315740952, 1.9701579350811518, -0.9881958184253727,
0.125, -0.25, 0.125, 1.9780280925054692, -0.9952212910209018,
0.00048828125, 0.0009765625, 0.00048828125, 1.9683639531082289, -0.9877622267827567,
0.00048828125, 0.0009765625, 0.00048828125, 1.9742906058109615, -0.9947853486870636
};
bool terminated = false;
HSoundcardWriter<int16_t> soundcard(atoi(argv[2]), H_SAMPLE_RATE_48K, 1, H_SAMPLE_FORMAT_INT_16, BLOCKSIZE, fade.Consumer());
processor.Run();
delete result;
}