0.9.11-rc-2
Switch from JACK to ALSA audio.
This commit is contained in:
@@ -52,6 +52,10 @@ namespace pipedal
|
||||
{
|
||||
lineBuffer.reserve(120);
|
||||
}
|
||||
|
||||
size_t width() const { return lineWidth; }
|
||||
void width(size_t width) { lineWidth =width; }
|
||||
|
||||
std::ostream&Stream() const { return s;}
|
||||
|
||||
PrettyPrinter& Indent(size_t indent)
|
||||
@@ -67,6 +71,21 @@ namespace pipedal
|
||||
column = 0;
|
||||
}
|
||||
|
||||
PrettyPrinter& Column(int n)
|
||||
{
|
||||
if (column >= n) {
|
||||
lineBuffer.push_back(' ');
|
||||
++column;
|
||||
return *this;
|
||||
}
|
||||
|
||||
while (column != n)
|
||||
{
|
||||
lineBuffer.push_back(' ');
|
||||
++column;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
PrettyPrinter& HangingIndent()
|
||||
{
|
||||
hangingIndent = true;
|
||||
@@ -235,5 +254,13 @@ namespace pipedal
|
||||
};
|
||||
}
|
||||
|
||||
pp_manip Column(int n)
|
||||
{
|
||||
return [n] (PrettyPrinter &pp) -> PrettyPrinter& {
|
||||
pp.Column(n);
|
||||
return pp;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user