summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-19 13:11:49 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-19 13:15:34 +0200
commit67350935c720d9c3777ae317cb31a7cee61364ee (patch)
tree89e84c56f07327a71a06d3b2788cc9e9079201b6 /src
parent9d8fdd276cd8d708b30d30ffb04279413bdfe080 (diff)
Add wrapper for AtmosAssetWriter::write to write a frame.
Diffstat (limited to 'src')
-rw-r--r--src/atmos_asset_writer.cc8
-rw-r--r--src/atmos_asset_writer.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/atmos_asset_writer.cc b/src/atmos_asset_writer.cc
index 07d310f6..1634010c 100644
--- a/src/atmos_asset_writer.cc
+++ b/src/atmos_asset_writer.cc
@@ -70,6 +70,14 @@ AtmosAssetWriter::AtmosAssetWriter (AtmosAsset* asset, boost::filesystem::path f
_asset->fill_writer_info (&_state->writer_info, _asset->id());
}
+
+void
+AtmosAssetWriter::write (shared_ptr<const AtmosFrame> frame)
+{
+ write (frame->data(), frame->size());
+}
+
+
void
AtmosAssetWriter::write (uint8_t const * data, int size)
{
diff --git a/src/atmos_asset_writer.h b/src/atmos_asset_writer.h
index e494b779..57059606 100644
--- a/src/atmos_asset_writer.h
+++ b/src/atmos_asset_writer.h
@@ -53,6 +53,7 @@ class AtmosAsset;
class AtmosAssetWriter : public AssetWriter
{
public:
+ void write (boost::shared_ptr<const AtmosFrame> frame);
void write (uint8_t const * data, int size);
bool finalize ();