Commit e342441e authored by Stefan Westerfeld's avatar Stefan Westerfeld

Clean up error blurb code (no longer needed).

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 625ee5c3
......@@ -2,12 +2,9 @@ possible improvements:
- dynamic bit strength
streaming:
- need explicit Error objects
- logging
- raw streams
- raw streams -> document in -h?
- mp3 indexing / detect (resync-limit)
- stdio error handling
- document in README
- final documentation
- --snr
- --quiet
......
......@@ -8,7 +8,6 @@
class StdoutWavOutputStream : public AudioOutputStream
{
std::string m_error_blurb;
int m_bit_depth = 0;
int m_sample_rate = 0;
int m_n_channels = 0;
......@@ -32,11 +31,6 @@ public:
int sample_rate() const override;
int bit_depth() const override;
int n_channels() const override;
const char *error_blurb() const
{
return m_error_blurb.c_str();
}
};
#endif
......@@ -24,9 +24,10 @@ main (int argc, char **argv)
fprintf (stderr, "teststream: open input failed: %s\n", err.message());
return 1;
}
if (!out.open (in.n_channels(), in.sample_rate(), 16, in.n_frames()))
err = out.open (in.n_channels(), in.sample_rate(), 16, in.n_frames());
if (err)
{
fprintf (stderr, "teststream: open output failed: %s\n", out.error_blurb());
fprintf (stderr, "teststream: open output failed: %s\n", err.message());
return 1;
}
vector<float> samples;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment