+ static float const clip = 1.0f - (1.0f / pow (2, 23));
+
+ if (!_started) {
+ Kumu::Result_t r = _state->mxf_writer.OpenWrite (_file.string().c_str(), _state->writer_info, _state->audio_desc);
+ if (ASDCP_FAILURE (r)) {
+ boost::throw_exception (FileError ("could not open audio MXF for writing", _file.string(), r));
+ }
+
+ _sound_asset->set_file (_file);
+ _started = true;
+ }
+