summaryrefslogtreecommitdiffstats
path: root/src/lib/netlist/prg/nlwav.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/prg/nlwav.cpp')
-rw-r--r--src/lib/netlist/prg/nlwav.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/netlist/prg/nlwav.cpp b/src/lib/netlist/prg/nlwav.cpp
index ebd128af08d..8b53ea8f428 100644
--- a/src/lib/netlist/prg/nlwav.cpp
+++ b/src/lib/netlist/prg/nlwav.cpp
@@ -1,18 +1,18 @@
// license:GPL-2.0+
// copyright-holders:Couriersud
+#include <plib/poptions.h>
#include <cstdio>
#include <cstring>
-#include "plib/poptions.h"
#include "plib/pstring.h"
#include "plib/plists.h"
#include "plib/pstream.h"
#include "nl_setup.h"
-class nlwav_options_t : public poptions
+class nlwav_options_t : public plib::options
{
public:
nlwav_options_t() :
- poptions(),
+ plib::options(),
#if 0
opt_ttr ("t", "time_to_run", 1.0, "time to run the emulation (seconds)", this),
opt_name("n", "name", "", "netlist in file to run; default is first one", this),
@@ -30,26 +30,26 @@ public:
opt_help("h", "help", "display help", this)
{}
#if 0
- poption_double opt_ttr;
- poption_str opt_name;
- poption_str opt_logs;
- poption_str opt_file;
+ option_double opt_ttr;
+ option_str opt_name;
+ option_str opt_logs;
+ option_str opt_file;
poption_str_limit opt_type;
- poption_str opt_cmd;
+ option_str opt_cmd;
#endif
- poption_str opt_inp;
- poption_str opt_out;
- poption_double opt_amp;
- poption_bool opt_verb;
- poption_bool opt_quiet;
- poption_bool opt_help;
+ plib::option_str opt_inp;
+ plib::option_str opt_out;
+ plib::option_double opt_amp;
+ plib::option_bool opt_verb;
+ plib::option_bool opt_quiet;
+ plib::option_bool opt_help;
};
/* http://de.wikipedia.org/wiki/RIFF_WAVE */
class wav_t
{
public:
- wav_t(postream &strm, unsigned sr) : m_f(strm)
+ wav_t(plib::postream &strm, unsigned sr) : m_f(strm)
{
initialize(sr);
m_f.write(&m_fh, sizeof(m_fh));
@@ -131,20 +131,20 @@ private:
riff_format_t m_fmt;
riff_data_t m_data;
- postream &m_f;
+ plib::postream &m_f;
};
void convert(nlwav_options_t &opts)
{
- pofilestream fo(opts.opt_out());
+ plib::pofilestream fo(opts.opt_out());
if (fo.bad())
{
throw netlist::fatalerror_e("Error opening output file: " + opts.opt_out());
}
wav_t wo(fo, 48000);
- pifilestream fin(opts.opt_inp());
+ plib::pifilestream fin(opts.opt_inp());
if (fin.bad())
throw netlist::fatalerror_e("Error opening input file: " + opts.opt_inp());