#ifndef __ardour_export_format_specification_h__
#define __ardour_export_format_specification_h__
-#include <glibmm/ustring.h>
+#include <string>
#include "pbd/uuid.h"
Time (Session & session) : AnyTime (), session (session) {}
Time & operator= (AnyTime const & other);
- nframes_t get_frames (nframes_t target_rate) const;
+ framecnt_t get_frames_at (framepos_t position, framecnt_t target_rate) const;
/* Serialization */
void set_format (boost::shared_ptr<ExportFormat> format);
- void set_name (Glib::ustring const & name) { _name = name; }
+ void set_name (std::string const & name) { _name = name; }
void set_type (Type type) { _type = type; }
void set_format_id (FormatId value) { format_ids.clear(); format_ids.insert (value); }
/* Accessing functions */
PBD::UUID const & id () { return _id; }
- Glib::ustring const & name () const { return _name; }
- Glib::ustring description ();
+ std::string const & name () const { return _name; }
+ std::string description ();
bool has_broadcast_info () const { return _has_broadcast_info; }
uint32_t channel_limit () const { return _channel_limit; }
- Glib::ustring format_name () const { return _format_name; }
+ std::string format_name () const { return _format_name; }
Type type () const { return _type; }
FormatId format_id () const { return *format_ids.begin(); }
bool tag () const { return _tag && supports_tagging; }
- nframes_t silence_beginning () const { return _silence_beginning.get_frames (sample_rate()); }
- nframes_t silence_end () const { return _silence_end.get_frames (sample_rate()); }
-
- nframes_t silence_beginning (nframes_t samplerate) const { return _silence_beginning.get_frames (samplerate); }
- nframes_t silence_end (nframes_t samplerate) const { return _silence_end.get_frames (samplerate); }
+ framecnt_t silence_beginning_at (framepos_t position, framecnt_t samplerate) const
+ { return _silence_beginning.get_frames_at (position, samplerate); }
+ framecnt_t silence_end_at (framepos_t position, framecnt_t samplerate) const
+ { return _silence_end.get_frames_at (position, samplerate); }
AnyTime silence_beginning_time () const { return _silence_beginning; }
AnyTime silence_end_time () const { return _silence_end; }
/* The variables below do not have setters (usually set via set_format) */
- Glib::ustring _format_name;
+ std::string _format_name;
bool has_sample_format;
bool supports_tagging;
bool _has_broadcast_info;
/* The variables below have getters and setters */
- Glib::ustring _name;
+ std::string _name;
PBD::UUID _id;
Type _type;