A helper class for writing to SoundAssets.
More...
#include <sound_asset_writer.h>
|
| SoundAssetWriter (SoundAsset *, boost::filesystem::path, bool sync) |
|
void | start () |
|
void | write_current_frame () |
|
std::vector< bool > | create_sync_packets () |
|
|
class | SoundAsset |
|
struct | ::sync_test1 |
|
A helper class for writing to SoundAssets.
Objects of this class can only be created with SoundAsset::start_write().
Sound samples can be written to the SoundAsset by calling write() with a buffer of float values. finalize() must be called after the last samples have been written.
Definition at line 67 of file sound_asset_writer.h.
◆ create_sync_packets()
vector< bool > SoundAssetWriter::create_sync_packets |
( |
| ) |
|
|
private |
Calculate and return the sync packets required for this edit unit (aka "frame")
Definition at line 277 of file sound_asset_writer.cc.
◆ finalize()
bool SoundAssetWriter::finalize |
( |
| ) |
|
|
overridevirtual |
◆ write()
void SoundAssetWriter::write |
( |
float const *const * |
data, |
|
|
int |
frames |
|
) |
| |
- Parameters
-
data | Pointer an array of float pointers, one for each channel. |
frames | Number of frames i.e. number of floats that are given for each channel. |
Definition at line 191 of file sound_asset_writer.cc.
◆ _sync
bool dcp::SoundAssetWriter::_sync = false |
|
private |
◆ _sync_packet
int dcp::SoundAssetWriter::_sync_packet = 0 |
|
private |
index of the sync packet (0-3) which starts the next edit unit
Definition at line 100 of file sound_asset_writer.h.
The documentation for this class was generated from the following files: