|
| AudioDiskstream (Session &, const std::string &name, Diskstream::Flag f=Recordable) |
|
| AudioDiskstream (Session &, const XMLNode &) |
|
| ~AudioDiskstream () |
|
float | playback_buffer_load () const |
|
float | capture_buffer_load () const |
|
std::string | input_source (uint32_t n=0) const |
|
void | set_record_enabled (bool yn) |
|
int | set_destructive (bool yn) |
|
int | set_non_layered (bool yn) |
|
bool | can_become_destructive (bool &requires_bounce) const |
|
boost::shared_ptr< AudioPlaylist > | audio_playlist () |
|
int | use_playlist (boost::shared_ptr< Playlist >) |
|
int | use_new_playlist () |
|
int | use_copy_playlist () |
|
Sample * | playback_buffer (uint32_t n=0) |
|
Sample * | capture_buffer (uint32_t n=0) |
|
boost::shared_ptr
< AudioFileSource > | write_source (uint32_t n=0) |
|
int | add_channel (uint32_t how_many) |
|
int | remove_channel (uint32_t how_many) |
|
bool | set_name (std::string const &) |
|
bool | set_write_source_name (const std::string &str) |
|
XMLNode & | get_state (void) |
|
int | set_state (const XMLNode &node, int version) |
|
void | request_input_monitoring (bool) |
|
| Diskstream (Session &, const std::string &name, Flag f=Recordable) |
|
| Diskstream (Session &, const XMLNode &) |
|
virtual | ~Diskstream () |
|
std::string | write_source_name () const |
|
virtual std::string | steal_write_source_name () |
|
boost::shared_ptr< ARDOUR::IO > | io () const |
|
void | set_track (ARDOUR::Track *) |
|
void | set_flag (Flag f) |
|
void | unset_flag (Flag f) |
|
AlignStyle | alignment_style () const |
|
AlignChoice | alignment_choice () const |
|
void | set_align_style (AlignStyle, bool force=false) |
|
void | set_align_choice (AlignChoice a, bool force=false) |
|
framecnt_t | roll_delay () const |
|
void | set_roll_delay (framecnt_t) |
|
bool | record_enabled () const |
|
bool | destructive () const |
|
bool | hidden () const |
|
bool | recordable () const |
|
bool | non_layered () const |
|
bool | reversed () const |
|
double | speed () const |
|
virtual void | punch_in () |
|
virtual void | punch_out () |
|
void | non_realtime_set_speed () |
|
virtual void | playlist_modified () |
|
boost::shared_ptr< Playlist > | playlist () |
|
framepos_t | current_capture_start () const |
|
framepos_t | current_capture_end () const |
|
framepos_t | get_capture_start_frame (uint32_t n=0) const |
|
framecnt_t | get_captured_frames (uint32_t n=0) const |
|
ChanCount | n_channels () |
|
virtual void | ensure_input_monitoring (bool) |
|
framecnt_t | capture_offset () const |
|
virtual void | set_capture_offset () |
|
bool | slaved () const |
|
void | set_slaved (bool yn) |
|
int | set_loop (Location *loc) |
|
std::list< boost::shared_ptr
< Source > > & | last_capture_sources () |
|
void | handle_input_change (IOChange, void *src) |
|
void | move_processor_automation (boost::weak_ptr< Processor >, std::list< Evoral::RangeMove< framepos_t > > const &) |
|
bool | pending_overwrite () const |
|
| SessionObject (Session &session, const std::string &name) |
|
Session & | session () const |
|
std::string | name () const |
|
Public Member Functions inherited from ARDOUR::SessionHandleRef |
| SessionHandleRef (ARDOUR::Session &s) |
|
virtual | ~SessionHandleRef () |
|
| ScopedConnectionList () |
|
virtual | ~ScopedConnectionList () |
|
void | add_connection (const UnscopedConnection &c) |
|
void | drop_connections () |
|
| Stateful () |
|
virtual | ~Stateful () |
|
virtual bool | apply_changes (PropertyBase const &) |
|
PropertyChange | apply_changes (PropertyList const &) |
|
const OwnedPropertyList & | properties () const |
|
void | add_property (PropertyBase &s) |
|
void | add_extra_xml (XMLNode &) |
|
XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
|
void | save_extra_xml (const XMLNode &) |
|
const PBD::ID & | id () const |
|
bool | set_id (const XMLNode &) |
|
void | set_id (const std::string &) |
|
void | reset_id () |
|
void | clear_changes () |
|
virtual void | clear_owned_changes () |
|
PropertyList * | get_changes_as_properties (Command *) const |
|
virtual void | rdiff (std::vector< Command * > &) const |
|
bool | changed () const |
|
virtual PropertyList * | property_factory (const XMLNode &) const |
|
virtual void | suspend_property_changes () |
|
virtual void | resume_property_changes () |
|
bool | property_changes_suspended () const |
|
| Destructible () |
|
virtual | ~Destructible () |
|
void | drop_references () |
|
virtual | ~PublicDiskstream () |
|
|
void | set_pending_overwrite (bool) |
|
int | overwrite_existing_buffers () |
|
void | set_block_size (pframes_t) |
|
int | internal_playback_seek (framecnt_t distance) |
|
int | can_internal_playback_seek (framecnt_t distance) |
|
void | reset_write_sources (bool, bool force=false) |
|
void | non_realtime_input_change () |
|
void | non_realtime_locate (framepos_t location) |
|
int | seek (framepos_t which_sample, bool complete_refill=false) |
|
int | process (BufferSet &, framepos_t transport_frame, pframes_t nframes, framecnt_t &, bool need_disk_signal) |
|
frameoffset_t | calculate_playback_distance (pframes_t nframes) |
|
bool | commit (framecnt_t) |
|
virtual void | playlist_changed (const PBD::PropertyChange &) |
|
virtual void | playlist_deleted (boost::weak_ptr< Playlist >) |
|
virtual void | playlist_ranges_moved (std::list< Evoral::RangeMove< framepos_t > > const &, bool) |
|
virtual bool | realtime_set_speed (double, bool global_change) |
|
virtual void | check_record_status (framepos_t transport_frame, bool can_record) |
|
virtual void | prepare_to_stop (framepos_t transport_pos, framepos_t audible_frame) |
|
void | engage_record_enable () |
|
void | disengage_record_enable () |
|
void | calculate_record_range (Evoral::OverlapType ot, framepos_t transport_frame, framecnt_t nframes, framecnt_t &rec_nframes, framecnt_t &rec_offset) |
|
void | route_going_away () |
|
Protected Member Functions inherited from ARDOUR::SessionHandleRef |
virtual void | session_going_away () |
|
virtual void | insanity_check () |
|
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
|
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
|
void | add_properties (XMLNode &) |
|
PropertyChange | set_values (XMLNode const &) |
|
virtual void | post_set (const PropertyChange &) |
|
virtual void | send_change (const PropertyChange &) |
|
virtual void | mid_thaw (const PropertyChange &) |
|
|
int | do_flush (RunContext context, bool force=false) |
|
int | do_refill () |
|
int | do_refill_with_alloc () |
|
int | read (Sample *buf, Sample *mixdown_buffer, float *gain_buffer, framepos_t &start, framecnt_t cnt, int channel, bool reversed) |
|
void | finish_capture (boost::shared_ptr< ChannelList >) |
|
void | transport_stopped_wallclock (struct tm &, time_t, bool abort) |
|
void | transport_looped (framepos_t transport_frame) |
|
void | init () |
|
void | init_channel (ChannelInfo &chan) |
|
void | destroy_channel (ChannelInfo &chan) |
|
int | use_new_write_source (uint32_t n=0) |
|
int | find_and_use_playlist (const std::string &) |
|
void | allocate_temporary_buffers () |
|
int | use_pending_capture_data (XMLNode &node) |
|
void | get_input_sources () |
|
void | prepare_record_status (framepos_t capture_start_frame) |
|
void | set_align_style_from_io () |
|
void | setup_destructive_playlist () |
|
void | use_destructive_playlist () |
|
void | adjust_playback_buffering () |
|
void | adjust_capture_buffering () |
|
bool | prep_record_enable () |
|
bool | prep_record_disable () |
|
int | _do_refill (Sample *mixdown_buffer, float *gain_buffer) |
|
int | add_channel_to (boost::shared_ptr< ChannelList >, uint32_t how_many) |
|
int | remove_channel_from (boost::shared_ptr< ChannelList >, uint32_t how_many) |
|
Definition at line 56 of file audio_diskstream.h.
int AudioDiskstream::do_flush |
( |
RunContext |
context, |
|
|
bool |
force_flush = false |
|
) |
| |
|
privatevirtual |
Flush pending data to disk.
Important note: this function will write AT MOST disk_write_chunk_frames of data to disk. it will never write more than that. If it writes that much and there is more than that waiting to be written, it will return 1, otherwise 0 on success or -1 on failure.
If there is less than disk_write_chunk_frames to be written, no data will be written at all unless force_flush is true.
Implements ARDOUR::Diskstream.
Definition at line 1319 of file audio_diskstream.cc.