13
0

Fix some more doxygen warnings

This commit is contained in:
Robin Gareus 2019-09-30 05:33:44 +02:00
parent 6c83b6f47d
commit ee54b13d6d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
8 changed files with 50 additions and 41 deletions

View File

@ -192,7 +192,7 @@ namespace ARDOUR { namespace DSP {
* *
* @param data pointer to control-data array * @param data pointer to control-data array
* @param val target value * @param val target value
* @param array length * @param n_samples array length
*/ */
void ctrl (float *data, const float val, const uint32_t n_samples); void ctrl (float *data, const float val, const uint32_t n_samples);
/** update filter cut-off frequency /** update filter cut-off frequency
@ -282,7 +282,7 @@ namespace ARDOUR { namespace DSP {
/** query /** query
* @param bin the frequency bin 0 .. window_size / 2 * @param bin the frequency bin 0 .. window_size / 2
* @param norm gain factor (set equal to @bin for 1/f normalization) * @param norm gain factor (set equal to \param bin for 1/f normalization)
* @return signal power at given bin (in dBFS) * @return signal power at given bin (in dBFS)
*/ */
float power_at_bin (const uint32_t bin, const float norm = 1.f) const; float power_at_bin (const uint32_t bin, const float norm = 1.f) const;

View File

@ -34,6 +34,7 @@ namespace ARDOUR {
/** instantiate a Synth /** instantiate a Synth
* *
* @param samplerate samplerate * @param samplerate samplerate
* @param polyphony polyphony
*/ */
FluidSynth (float samplerate, int polyphony = 32); FluidSynth (float samplerate, int polyphony = 32);
~FluidSynth (); ~FluidSynth ();

View File

@ -81,6 +81,7 @@ namespace ARDOUR { namespace LuaAPI {
* @param s Session Handle * @param s Session Handle
* @param id Plugin Name, ID or URI * @param id Plugin Name, ID or URI
* @param type Plugin Type * @param type Plugin Type
* @param preset name of plugin-preset to load, leave empty "" to not load any preset after instantiation
* @returns Processor or nil * @returns Processor or nil
*/ */
boost::shared_ptr<ARDOUR::Processor> new_plugin (ARDOUR::Session *s, const std::string& id, ARDOUR::PluginType type, const std::string& preset = ""); boost::shared_ptr<ARDOUR::Processor> new_plugin (ARDOUR::Session *s, const std::string& id, ARDOUR::PluginType type, const std::string& preset = "");
@ -92,7 +93,7 @@ namespace ARDOUR { namespace LuaAPI {
* @param value value to set * @param value value to set
* @returns true on success, false on error or out-of-bounds value * @returns true on success, false on error or out-of-bounds value
*/ */
bool set_processor_param (boost::shared_ptr<ARDOUR::Processor> proc, uint32_t which, float val); bool set_processor_param (boost::shared_ptr<ARDOUR::Processor> proc, uint32_t which, float value);
/** get a plugin control parameter value /** get a plugin control parameter value
* *
@ -116,16 +117,16 @@ namespace ARDOUR { namespace LuaAPI {
* *
* This is a wrapper around set_processor_param which looks up the Processor by plugin-insert. * This is a wrapper around set_processor_param which looks up the Processor by plugin-insert.
* *
* @param proc Plugin-Insert * @param pi Plugin-Insert
* @param which control-input to set (starting at 0) * @param which control-input to set (starting at 0)
* @param value value to set * @param value value to set
* @returns true on success, false on error or out-of-bounds value * @returns true on success, false on error or out-of-bounds value
*/ */
bool set_plugin_insert_param (boost::shared_ptr<ARDOUR::PluginInsert> pi, uint32_t which, float val); bool set_plugin_insert_param (boost::shared_ptr<ARDOUR::PluginInsert> pi, uint32_t which, float value);
/** get a plugin control parameter value /** get a plugin control parameter value
* *
* @param proc Plugin-Insert * @param pi Plugin-Insert
* @param which control port to query (starting at 0, including ports of type input and output) * @param which control port to query (starting at 0, including ports of type input and output)
* @param ok boolean variable contains true or false after call returned. to be checked by caller before using value. * @param ok boolean variable contains true or false after call returned. to be checked by caller before using value.
* @returns value * @returns value
@ -250,12 +251,12 @@ namespace ARDOUR { namespace LuaAPI {
* *
* If the plugin is not yet initialized, initialize() is called. * If the plugin is not yet initialized, initialize() is called.
* *
* if @cb is not nil, it is called with the immediate * if \param fn is not nil, it is called with the immediate
* Vamp::Plugin::Features on every process call. * Vamp::Plugin::Features on every process call.
* *
* @param r readable * @param r readable
* @param channel channel to process * @param channel channel to process
* @param fn lua callback function * @param fn lua callback function or nil
* @return 0 on success * @return 0 on success
*/ */
int analyze (boost::shared_ptr<ARDOUR::Readable> r, uint32_t channel, luabridge::LuaRef fn); int analyze (boost::shared_ptr<ARDOUR::Readable> r, uint32_t channel, luabridge::LuaRef fn);

View File

@ -189,8 +189,7 @@ class LIBARDOUR_API PortManager
boost::shared_ptr<Port> register_port (DataType type, const std::string& portname, bool input, bool async = false, PortFlags extra_flags = PortFlags (0)); boost::shared_ptr<Port> register_port (DataType type, const std::string& portname, bool input, bool async = false, PortFlags extra_flags = PortFlags (0));
void port_registration_failure (const std::string& portname); void port_registration_failure (const std::string& portname);
/** List of ports to be used between ::cycle_start() and ::cycle_end() /** List of ports to be used between \ref cycle_start() and \ref cycle_end() */
*/
boost::shared_ptr<Ports> _cycle_ports; boost::shared_ptr<Ports> _cycle_ports;
void silence (pframes_t nframes, Session *s = 0); void silence (pframes_t nframes, Session *s = 0);

View File

@ -88,10 +88,17 @@ class LIBARDOUR_API Processor : public SessionObject, public Automatable, public
virtual int set_block_size (pframes_t /*nframes*/) { return 0; } virtual int set_block_size (pframes_t /*nframes*/) { return 0; }
virtual bool requires_fixed_sized_buffers() const { return false; } virtual bool requires_fixed_sized_buffers() const { return false; }
/** @param result_required true if, on return from this method, @a bufs is required to contain valid data; /** The main process function for processors
* if false, the method need not bother writing to @a bufs if it doesn't want to. *
* @param bufs bufferset of data to process in-place
* @param start_sample absolute timeline position in audio-samples to commence processing (latency compensated)
* @param end_sample absolute timeline position in audio-samples, usually start_sample +/- \param nframes
* @param speed transport speed. usually -1, 0, +1
* @param nframes number of audio samples to process
* @param result_required true if, on return from this method, \param bufs is required to contain valid data;
* if false, the method need not bother writing to @a bufs if it doesn't want to.
*/ */
virtual void run (BufferSet& /*bufs*/, samplepos_t /*start_sample*/, samplepos_t /*end_sample*/, double speed, pframes_t /*nframes*/, bool /*result_required*/) {} virtual void run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool result_required) {}
virtual void silence (samplecnt_t nframes, samplepos_t start_sample) { automation_run (start_sample, nframes); } virtual void silence (samplecnt_t nframes, samplepos_t start_sample) { automation_run (start_sample, nframes); }
virtual void activate () { _pending_active = true; ActiveChanged(); } virtual void activate () { _pending_active = true; ActiveChanged(); }

View File

@ -389,23 +389,24 @@ class LIBARDOUR_API TempoMap : public PBD::StatefulDestructible
TempoSection* next_tempo_section (TempoSection*) const; TempoSection* next_tempo_section (TempoSection*) const;
/** add a tempo section locked to pls. ignored values will be set in recompute_tempi() /** add a tempo section locked to pls. ignored values will be set in recompute_tempi()
* @param pulse pulse position of new section. ignored if pls == AudioTime * @param pulse pulse position of new section. ignored if \param pls == AudioTime
* @param sample frame position of new section. ignored if pls == MusicTime * @param sample frame position of new section. ignored if \param pls == MusicTime
* @param type type of new tempo section (Ramp, Constant) * @param pls the position lock style
*/ */
TempoSection* add_tempo (const Tempo&, const double& pulse, const samplepos_t sample, PositionLockStyle pls); TempoSection* add_tempo (const Tempo&, const double& pulse, const samplepos_t sample, PositionLockStyle pls);
/** add a meter section locked to pls.. ignored values will be set in recompute_meters() /** add a meter section locked to \param pls . ignored values will be set in recompute_meters()
* @param meter the Meter to be added * @param meter the Meter to be added
* @param where bbt position of new section * @param where bbt position of new section
* @param sample frame position of new section. ignored if pls == MusicTime * @param sample frame position of new section. ignored if \param pls == MusicTime
* note that @sample may also be ignored if it would create an un-solvable map *
* note that \param sample may also be ignored if it would create an un-solvable map
* (previous audio-locked tempi may place the requested beat at an earlier time than sample) * (previous audio-locked tempi may place the requested beat at an earlier time than sample)
* in which case the new meter will be placed at the specified BBT. * in which case the new meter will be placed at the specified BBT.
* @param pls the position lock style * @param pls the position lock style
* *
* adding an audio-locked meter will add a meter-locked tempo section at the meter position. * adding an audio-locked meter will add a meter-locked tempo section at the meter position.
* the meter-locked tempo tempo will be the Tempo at @beat * the meter-locked tempo tempo will be the Tempo at the beat
*/ */
MeterSection* add_meter (const Meter& meter, const Timecode::BBT_Time& where, samplepos_t sample, PositionLockStyle pls); MeterSection* add_meter (const Meter& meter, const Timecode::BBT_Time& where, samplepos_t sample, PositionLockStyle pls);

View File

@ -50,10 +50,9 @@ get_paths (std::vector<std::string>& result,
/** /**
* Get a list of files in a Searchpath. * Get a list of files in a Searchpath.
* @note paths in result will be absolute.
* *
* @param path A Searchpath * @param paths A Searchpath
* @param result A vector of paths to files. * @param result A vector of absolute paths to files.
*/ */
LIBPBD_API void LIBPBD_API void
get_files (std::vector<std::string>& result, get_files (std::vector<std::string>& result,
@ -109,11 +108,11 @@ find_file (const Searchpath& search_path,
/** /**
* Find files in paths that match a regular expression * Find files in paths that match a regular expression
* @note This function does not recurse.
* *
* @param result A vector in which to place the resulting matches. * @param results A vector in which to place the resulting matches.
* @param paths A Searchpath * @param paths A Searchpath
* @param regexp A regular expression * @param regexp A regular expression
* @param recurse Search directories recursively
*/ */
LIBPBD_API void LIBPBD_API void
find_files_matching_regex (std::vector<std::string>& results, find_files_matching_regex (std::vector<std::string>& results,
@ -125,7 +124,7 @@ find_files_matching_regex (std::vector<std::string>& results,
* Find paths in a Searchpath that match a supplied filter(functor) * Find paths in a Searchpath that match a supplied filter(functor)
* @note results include files and directories. * @note results include files and directories.
* *
* @param result A vector in which to place the resulting matches. * @param results A vector in which to place the resulting matches.
* @param paths A Searchpath * @param paths A Searchpath
* @param filter A functor to use to filter paths * @param filter A functor to use to filter paths
* @param arg additonal argument to filter if required * @param arg additonal argument to filter if required
@ -146,7 +145,7 @@ find_paths_matching_filter (std::vector<std::string>& results,
* Find paths in a Searchpath that match a supplied filter(functor) * Find paths in a Searchpath that match a supplied filter(functor)
* @note results include only files. * @note results include only files.
* *
* @param result A vector in which to place the resulting matches. * @param results A vector in which to place the resulting matches.
* @param paths A Searchpath * @param paths A Searchpath
* @param filter A functor to use to filter paths * @param filter A functor to use to filter paths
* @param arg additonal argument to filter if required * @param arg additonal argument to filter if required
@ -183,9 +182,9 @@ LIBPBD_API void copy_files(const std::string & from_path, const std::string & to
LIBPBD_API void copy_recurse(const std::string & from_path, const std::string & to_dir); LIBPBD_API void copy_recurse(const std::string & from_path, const std::string & to_dir);
/** /**
* Update the access and modification times of file at @path, creating file if it * Update the access and modification times of file at path, creating file
* doesn't already exist. * if it doesn't already exist.
* @path file path to touch * @param path file path to touch
* @return true if file exists or was created and access time updated. * @return true if file exists or was created and access time updated.
*/ */
LIBPBD_API bool touch_file (const std::string& path); LIBPBD_API bool touch_file (const std::string& path);
@ -202,7 +201,7 @@ LIBPBD_API bool hard_link (const std::string& existing_file, const std::string&
LIBPBD_API std::string get_absolute_path (const std::string &); LIBPBD_API std::string get_absolute_path (const std::string &);
/** /**
* The equivalent of ::realpath on POSIX systems, on Windows hard * The equivalent of realpath on POSIX systems, on Windows hard
* links/junctions etc are not resolved. * links/junctions etc are not resolved.
*/ */
LIBPBD_API std::string canonical_path (const std::string& path); LIBPBD_API std::string canonical_path (const std::string& path);
@ -240,7 +239,7 @@ LIBPBD_API bool exists_and_writable(const std::string & p);
* *
* @param dir The directory to clear of files. * @param dir The directory to clear of files.
* @param size of removed files in bytes. * @param size of removed files in bytes.
* @param list of files that were removed. * @param removed_files list of files that were removed.
*/ */
LIBPBD_API int clear_directory (const std::string& dir, size_t* size = 0, LIBPBD_API int clear_directory (const std::string& dir, size_t* size = 0,
std::vector<std::string>* removed_files = 0); std::vector<std::string>* removed_files = 0);
@ -269,12 +268,11 @@ LIBPBD_API void remove_directory (const std::string& dir);
*/ */
LIBPBD_API std::string tmp_writable_directory (const char* domain, const std::string& prefix); LIBPBD_API std::string tmp_writable_directory (const char* domain, const std::string& prefix);
/** If @param path exists, unlink it. If it doesn't exist, create it. /** If \param path exists, unlink it. If it doesn't exist, create it.
* *
* @return zero if required action was successful, non-zero otherwise. * @return zero if required action was successful, non-zero otherwise.
*/ */
LIBPBD_API int toggle_file_existence (std::string const & path);
LIBPBD_API int toggle_file_existence (std::string const &);
} // namespace PBD } // namespace PBD

View File

@ -109,9 +109,10 @@ class LIBPBD_API SystemExec
* creates an argv array from the given command string, splitting into * creates an argv array from the given command string, splitting into
* parameters at spaces. * parameters at spaces.
* "\ " is non-splitting space, "\\" (and "\" at end of command) as "\", * "\ " is non-splitting space, "\\" (and "\" at end of command) as "\",
* for "%<char>", <char> is looked up in subs and the corresponding string * for "%<char>", \<char\> is looked up in subs and the corresponding string
* substituted. "%%" (and "%" at end of command) * substituted. "%%" (and "%" at end of command)
* returns an argv array suitable for creating a new SystemExec with *
* @returns an argv array suitable for creating a new SystemExec with
*/ */
SystemExec (std::string command, const std::map<char, std::string> subs); SystemExec (std::string command, const std::map<char, std::string> subs);
@ -135,10 +136,11 @@ class LIBPBD_API SystemExec
* '1': ignore STDERR of child-program * '1': ignore STDERR of child-program
* '2': merge STDERR into STDOUT and send it with the * '2': merge STDERR into STDOUT and send it with the
* ReadStdout signal. * ReadStdout signal.
* @param _vfork_exec_wrapper path to vfork-wrapper binary
* @return If the process is already running or was launched successfully * @return If the process is already running or was launched successfully
* the function returns zero (0). A negative number indicates an error. * the function returns zero (0). A negative number indicates an error.
*/ */
int start (StdErrMode, const char *_vfork_exec_wrapper); int start (StdErrMode stderr_mode, const char *_vfork_exec_wrapper);
/** kill running child-process /** kill running child-process
* *
* if a child process exists trt to shut it down by closing its STDIN. * if a child process exists trt to shut it down by closing its STDIN.
@ -158,7 +160,7 @@ class LIBPBD_API SystemExec
* *
* This function is only useful if you want to control application * This function is only useful if you want to control application
* termination yourself (eg timeouts or progress-dialog). * termination yourself (eg timeouts or progress-dialog).
* @param option flags - see waitpid manual * @param options flags - see waitpid manual
* @return status info from waitpid call (not waitpid's return value) * @return status info from waitpid call (not waitpid's return value)
* or -1 if the child-program is not running. * or -1 if the child-program is not running.
*/ */
@ -183,7 +185,7 @@ class LIBPBD_API SystemExec
* @param bytes length of data to write * @param bytes length of data to write
* @return number of bytes written. * @return number of bytes written.
*/ */
size_t write_to_stdin (const void* d, size_t bytes=0); size_t write_to_stdin (const void* data, size_t bytes=0);
/** The ReadStdout signal is emitted when the application writes to STDOUT. /** The ReadStdout signal is emitted when the application writes to STDOUT.
* it passes the written data and its length in bytes as arguments to the bound * it passes the written data and its length in bytes as arguments to the bound