diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:11:49 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:15:34 +0200 |
| commit | 67350935c720d9c3777ae317cb31a7cee61364ee (patch) | |
| tree | 89e84c56f07327a71a06d3b2788cc9e9079201b6 /src/atmos_asset_writer.cc | |
| parent | 9d8fdd276cd8d708b30d30ffb04279413bdfe080 (diff) | |
Add wrapper for AtmosAssetWriter::write to write a frame.
Diffstat (limited to 'src/atmos_asset_writer.cc')
| -rw-r--r-- | src/atmos_asset_writer.cc | 8 |
1 files changed, 8 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) { |
