summaryrefslogtreecommitdiff
path: root/drumgizmo/output/oss.h
diff options
context:
space:
mode:
authorGoran Mekić <meka@tilda.center>2017-04-15 18:45:30 +0200
committerGoran Mekić <meka@tilda.center>2017-04-16 21:35:13 +0200
commit43b179778a7845d64c0ce99a507af38ca8295f96 (patch)
tree1fd5a91bebf1feb1178fd1414061b0a0286788bc /drumgizmo/output/oss.h
parent14c76e247f982b153adba005283826a2b722f89f (diff)
Add OSS buffer parameters
Diffstat (limited to 'drumgizmo/output/oss.h')
-rw-r--r--drumgizmo/output/oss.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drumgizmo/output/oss.h b/drumgizmo/output/oss.h
index d44cd1c..889021f 100644
--- a/drumgizmo/output/oss.h
+++ b/drumgizmo/output/oss.h
@@ -39,7 +39,7 @@ public:
void setParm(const std::string& parm, const std::string& value) override;
bool start() override { return true; };
void stop() override {};
- void pre(size_t nsamples) override { data.resize(nsamples * num_channels); };
+ void pre(size_t nsamples) override;
void run(int ch, sample_t* samples, size_t nsamples) override;
void post(size_t nsamples) override;
bool isFreewheeling() const override { return false; };
@@ -52,5 +52,7 @@ private:
std::size_t num_channels;
unsigned int srate;
unsigned int format;
+ unsigned int max_fragments;
+ unsigned int fragment_size;
std::vector<std::int32_t> data;
};