fix common misspellings
These fixes were mostly generated with `codespell' [0] and manually reviewed. [0] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
This commit is contained in:
parent
be798998bf
commit
6d3ed3f16f
@ -356,7 +356,7 @@ cd mpd-version</programlisting>
|
|||||||
If set to "yes", then MPD attempts to keep this audio
|
If set to "yes", then MPD attempts to keep this audio
|
||||||
output always open. This may be useful for streaming
|
output always open. This may be useful for streaming
|
||||||
servers, when you don't want to disconnect all
|
servers, when you don't want to disconnect all
|
||||||
listeners even when playback is accidently stopped.
|
listeners even when playback is accidentally stopped.
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -68,7 +68,7 @@ struct archive_plugin {
|
|||||||
* Opens an input_stream of a file within the archive.
|
* Opens an input_stream of a file within the archive.
|
||||||
*
|
*
|
||||||
* @param path the path within the archive
|
* @param path the path within the archive
|
||||||
* @param error_r location to store the error occuring, or
|
* @param error_r location to store the error occurring, or
|
||||||
* NULL to ignore errors
|
* NULL to ignore errors
|
||||||
*/
|
*/
|
||||||
struct input_stream *(*open_stream)(struct archive_file *af,
|
struct input_stream *(*open_stream)(struct archive_file *af,
|
||||||
|
@ -38,7 +38,7 @@ struct audio_format;
|
|||||||
* @param dest the destination #audio_format struct
|
* @param dest the destination #audio_format struct
|
||||||
* @param src the input string
|
* @param src the input string
|
||||||
* @param mask if true, then "*" is allowed for any number of items
|
* @param mask if true, then "*" is allowed for any number of items
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
|
@ -80,7 +80,7 @@ daemonize_kill(void)
|
|||||||
|
|
||||||
ret = kill(pid, SIGTERM);
|
ret = kill(pid, SIGTERM);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
MPD_ERROR("unable to kill proccess %i: %s",
|
MPD_ERROR("unable to kill process %i: %s",
|
||||||
pid, g_strerror(errno));
|
pid, g_strerror(errno));
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
@ -205,7 +205,7 @@ flac_encoder_open(struct encoder *_encoder, struct audio_format *audio_format,
|
|||||||
pcm_buffer_init(&encoder->buffer);
|
pcm_buffer_init(&encoder->buffer);
|
||||||
pcm_buffer_init(&encoder->expand_buffer);
|
pcm_buffer_init(&encoder->expand_buffer);
|
||||||
|
|
||||||
/* this immediatelly outputs data throught callback */
|
/* this immediately outputs data through callback */
|
||||||
|
|
||||||
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
|
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7
|
||||||
{
|
{
|
||||||
|
@ -78,7 +78,7 @@ encoder_struct_init(struct encoder *encoder,
|
|||||||
*
|
*
|
||||||
* @param plugin the encoder plugin
|
* @param plugin the encoder plugin
|
||||||
* @param param optional configuration
|
* @param param optional configuration
|
||||||
* @param error location to store the error occuring, or NULL to ignore errors.
|
* @param error location to store the error occurring, or NULL to ignore errors.
|
||||||
* @return an encoder object on success, NULL on failure
|
* @return an encoder object on success, NULL on failure
|
||||||
*/
|
*/
|
||||||
static inline struct encoder *
|
static inline struct encoder *
|
||||||
@ -107,7 +107,7 @@ encoder_finish(struct encoder *encoder)
|
|||||||
* @param encoder the encoder
|
* @param encoder the encoder
|
||||||
* @param audio_format the encoder's input audio format; the plugin
|
* @param audio_format the encoder's input audio format; the plugin
|
||||||
* may modify the struct to adapt it to its abilities
|
* may modify the struct to adapt it to its abilities
|
||||||
* @param error location to store the error occuring, or NULL to ignore errors.
|
* @param error location to store the error occurring, or NULL to ignore errors.
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
static inline bool
|
static inline bool
|
||||||
@ -135,7 +135,7 @@ encoder_close(struct encoder *encoder)
|
|||||||
* buffered available by encoder_read().
|
* buffered available by encoder_read().
|
||||||
*
|
*
|
||||||
* @param encoder the encoder
|
* @param encoder the encoder
|
||||||
* @param error location to store the error occuring, or NULL to ignore errors.
|
* @param error location to store the error occurring, or NULL to ignore errors.
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
static inline bool
|
static inline bool
|
||||||
@ -152,7 +152,7 @@ encoder_flush(struct encoder *encoder, GError **error)
|
|||||||
*
|
*
|
||||||
* @param encoder the encoder
|
* @param encoder the encoder
|
||||||
* @param tag the tag object
|
* @param tag the tag object
|
||||||
* @param error location to store the error occuring, or NULL to ignore errors.
|
* @param error location to store the error occurring, or NULL to ignore errors.
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
static inline bool
|
static inline bool
|
||||||
@ -170,7 +170,7 @@ encoder_tag(struct encoder *encoder, const struct tag *tag, GError **error)
|
|||||||
* @param encoder the encoder
|
* @param encoder the encoder
|
||||||
* @param data the buffer containing PCM samples
|
* @param data the buffer containing PCM samples
|
||||||
* @param length the length of the buffer in bytes
|
* @param length the length of the buffer in bytes
|
||||||
* @param error location to store the error occuring, or NULL to ignore errors.
|
* @param error location to store the error occurring, or NULL to ignore errors.
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
static inline bool
|
static inline bool
|
||||||
|
@ -79,7 +79,7 @@ struct filter_plugin {
|
|||||||
*
|
*
|
||||||
* @param plugin the filter plugin
|
* @param plugin the filter plugin
|
||||||
* @param param optional configuration section
|
* @param param optional configuration section
|
||||||
* @param error location to store the error occuring, or NULL to
|
* @param error location to store the error occurring, or NULL to
|
||||||
* ignore errors.
|
* ignore errors.
|
||||||
* @return a new filter object, or NULL on error
|
* @return a new filter object, or NULL on error
|
||||||
*/
|
*/
|
||||||
@ -92,7 +92,7 @@ filter_new(const struct filter_plugin *plugin,
|
|||||||
* the specified configuration section.
|
* the specified configuration section.
|
||||||
*
|
*
|
||||||
* @param param the configuration section
|
* @param param the configuration section
|
||||||
* @param error location to store the error occuring, or NULL to
|
* @param error location to store the error occurring, or NULL to
|
||||||
* ignore errors.
|
* ignore errors.
|
||||||
* @return a new filter object, or NULL on error
|
* @return a new filter object, or NULL on error
|
||||||
*/
|
*/
|
||||||
@ -114,7 +114,7 @@ filter_free(struct filter *filter);
|
|||||||
* @param filter the filter object
|
* @param filter the filter object
|
||||||
* @param audio_format the audio format of incoming data; the plugin
|
* @param audio_format the audio format of incoming data; the plugin
|
||||||
* may modify the object to enforce another input format
|
* may modify the object to enforce another input format
|
||||||
* @param error location to store the error occuring, or NULL to
|
* @param error location to store the error occurring, or NULL to
|
||||||
* ignore errors.
|
* ignore errors.
|
||||||
* @return the format of outgoing data
|
* @return the format of outgoing data
|
||||||
*/
|
*/
|
||||||
@ -137,7 +137,7 @@ filter_close(struct filter *filter);
|
|||||||
* @param src the input buffer
|
* @param src the input buffer
|
||||||
* @param src_size the size of #src_buffer in bytes
|
* @param src_size the size of #src_buffer in bytes
|
||||||
* @param dest_size_r the size of the returned buffer
|
* @param dest_size_r the size of the returned buffer
|
||||||
* @param error location to store the error occuring, or NULL to
|
* @param error location to store the error occurring, or NULL to
|
||||||
* ignore errors.
|
* ignore errors.
|
||||||
* @return the destination buffer on success (will be invalidated by
|
* @return the destination buffer on success (will be invalidated by
|
||||||
* filter_close() or filter_filter()), NULL on error
|
* filter_close() or filter_filter()), NULL on error
|
||||||
|
@ -70,7 +70,7 @@ icy_server_metadata_string(const char *stream_title, const char* stream_url)
|
|||||||
|
|
||||||
meta_length = strlen(icy_metadata);
|
meta_length = strlen(icy_metadata);
|
||||||
|
|
||||||
meta_length--; // substract placeholder
|
meta_length--; // subtract placeholder
|
||||||
|
|
||||||
meta_length = ((int)meta_length / 16) + 1;
|
meta_length = ((int)meta_length / 16) + 1;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
/**
|
/**
|
||||||
* Initializes this library and all input_stream implementations.
|
* Initializes this library and all input_stream implementations.
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
|
@ -35,7 +35,7 @@ struct input_plugin {
|
|||||||
/**
|
/**
|
||||||
* Global initialization. This method is called when MPD starts.
|
* Global initialization. This method is called when MPD starts.
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or
|
* @param error_r location to store the error occurring, or
|
||||||
* NULL to ignore errors
|
* NULL to ignore errors
|
||||||
* @return true on success, false if the plugin should be
|
* @return true on success, false if the plugin should be
|
||||||
* disabled
|
* disabled
|
||||||
|
@ -41,7 +41,7 @@ struct mixer_plugin {
|
|||||||
* @param ao the pointer returned by audio_output_plugin.init
|
* @param ao the pointer returned by audio_output_plugin.init
|
||||||
* @param param the configuration section, or NULL if there is
|
* @param param the configuration section, or NULL if there is
|
||||||
* no configuration
|
* no configuration
|
||||||
* @param error_r location to store the error occuring, or
|
* @param error_r location to store the error occurring, or
|
||||||
* NULL to ignore errors
|
* NULL to ignore errors
|
||||||
* @return a mixer object, or NULL on error
|
* @return a mixer object, or NULL on error
|
||||||
*/
|
*/
|
||||||
@ -56,7 +56,7 @@ struct mixer_plugin {
|
|||||||
/**
|
/**
|
||||||
* Open mixer device
|
* Open mixer device
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or
|
* @param error_r location to store the error occurring, or
|
||||||
* NULL to ignore errors
|
* NULL to ignore errors
|
||||||
* @return true on success, false on error
|
* @return true on success, false on error
|
||||||
*/
|
*/
|
||||||
@ -70,7 +70,7 @@ struct mixer_plugin {
|
|||||||
/**
|
/**
|
||||||
* Reads the current volume.
|
* Reads the current volume.
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or
|
* @param error_r location to store the error occurring, or
|
||||||
* NULL to ignore errors
|
* NULL to ignore errors
|
||||||
* @return the current volume (0..100 including) or -1 if
|
* @return the current volume (0..100 including) or -1 if
|
||||||
* unavailable or on error (error_r set, mixer will be closed)
|
* unavailable or on error (error_r set, mixer will be closed)
|
||||||
@ -80,7 +80,7 @@ struct mixer_plugin {
|
|||||||
/**
|
/**
|
||||||
* Sets the volume.
|
* Sets the volume.
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or
|
* @param error_r location to store the error occurring, or
|
||||||
* NULL to ignore errors
|
* NULL to ignore errors
|
||||||
* @param volume the new volume (0..100 including)
|
* @param volume the new volume (0..100 including)
|
||||||
* @return true on success, false on error
|
* @return true on success, false on error
|
||||||
|
@ -52,7 +52,7 @@ struct audio_output_plugin {
|
|||||||
* none is configured
|
* none is configured
|
||||||
* @param param the configuration section, or NULL if there is
|
* @param param the configuration section, or NULL if there is
|
||||||
* no configuration
|
* no configuration
|
||||||
* @param error location to store the error occuring, or NULL
|
* @param error location to store the error occurring, or NULL
|
||||||
* to ignore errors
|
* to ignore errors
|
||||||
* @return NULL on error, or an opaque pointer to the plugin's
|
* @return NULL on error, or an opaque pointer to the plugin's
|
||||||
* data
|
* data
|
||||||
@ -72,7 +72,7 @@ struct audio_output_plugin {
|
|||||||
* fail: if an error occurs during that, it should be reported
|
* fail: if an error occurs during that, it should be reported
|
||||||
* by the open() method.
|
* by the open() method.
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or
|
* @param error_r location to store the error occurring, or
|
||||||
* NULL to ignore errors
|
* NULL to ignore errors
|
||||||
* @return true on success, false on error
|
* @return true on success, false on error
|
||||||
*/
|
*/
|
||||||
@ -89,7 +89,7 @@ struct audio_output_plugin {
|
|||||||
*
|
*
|
||||||
* @param audio_format the audio format in which data is going
|
* @param audio_format the audio format in which data is going
|
||||||
* to be delivered; may be modified by the plugin
|
* to be delivered; may be modified by the plugin
|
||||||
* @param error location to store the error occuring, or NULL
|
* @param error location to store the error occurring, or NULL
|
||||||
* to ignore errors
|
* to ignore errors
|
||||||
*/
|
*/
|
||||||
bool (*open)(void *data, struct audio_format *audio_format,
|
bool (*open)(void *data, struct audio_format *audio_format,
|
||||||
@ -119,7 +119,7 @@ struct audio_output_plugin {
|
|||||||
/**
|
/**
|
||||||
* Play a chunk of audio data.
|
* Play a chunk of audio data.
|
||||||
*
|
*
|
||||||
* @param error location to store the error occuring, or NULL
|
* @param error location to store the error occurring, or NULL
|
||||||
* to ignore errors
|
* to ignore errors
|
||||||
* @return the number of bytes played, or 0 on error
|
* @return the number of bytes played, or 0 on error
|
||||||
*/
|
*/
|
||||||
|
@ -75,7 +75,7 @@ void pcm_convert_deinit(struct pcm_convert_state *state);
|
|||||||
* @param src_size the size of #src in bytes
|
* @param src_size the size of #src in bytes
|
||||||
* @param dest_format the requested destination audio format
|
* @param dest_format the requested destination audio format
|
||||||
* @param dest_size_r returns the number of bytes of the destination buffer
|
* @param dest_size_r returns the number of bytes of the destination buffer
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return the destination buffer, or NULL on error
|
* @return the destination buffer, or NULL on error
|
||||||
*/
|
*/
|
||||||
|
@ -281,7 +281,7 @@ pc_get_error_message(struct player_control *pc)
|
|||||||
return g_strdup("problems opening audio device");
|
return g_strdup("problems opening audio device");
|
||||||
|
|
||||||
case PLAYER_ERROR_SYSTEM:
|
case PLAYER_ERROR_SYSTEM:
|
||||||
return g_strdup("system error occured");
|
return g_strdup("system error occurred");
|
||||||
|
|
||||||
case PLAYER_ERROR_UNKTYPE:
|
case PLAYER_ERROR_UNKTYPE:
|
||||||
uri = pc_errored_song_uri(pc);
|
uri = pc_errored_song_uri(pc);
|
||||||
|
@ -112,7 +112,7 @@ struct player {
|
|||||||
* output thread. This attribute is only used if
|
* output thread. This attribute is only used if
|
||||||
* audio_output_all_get_elapsed_time() didn't return a usable
|
* audio_output_all_get_elapsed_time() didn't return a usable
|
||||||
* value; the output thread can estimate the elapsed time more
|
* value; the output thread can estimate the elapsed time more
|
||||||
* precisly.
|
* precisely.
|
||||||
*/
|
*/
|
||||||
float elapsed_time;
|
float elapsed_time;
|
||||||
};
|
};
|
||||||
|
@ -139,7 +139,7 @@ lastfm_get(const char *url)
|
|||||||
* Ini-style value fetcher.
|
* Ini-style value fetcher.
|
||||||
* @param response data through which to search.
|
* @param response data through which to search.
|
||||||
* @param name name of value to search for.
|
* @param name name of value to search for.
|
||||||
* @return value for param name in param reponse or NULL on error. Free with g_free.
|
* @return value for param name in param response or NULL on error. Free with g_free.
|
||||||
*/
|
*/
|
||||||
static char *
|
static char *
|
||||||
lastfm_find(const char *response, const char *name)
|
lastfm_find(const char *response, const char *name)
|
||||||
|
@ -47,7 +47,7 @@ server_socket_close(struct server_socket *ss);
|
|||||||
* Add a listener on a port on all interfaces.
|
* Add a listener on a port on all interfaces.
|
||||||
*
|
*
|
||||||
* @param port the TCP port
|
* @param port the TCP port
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
@ -61,7 +61,7 @@ server_socket_add_port(struct server_socket *ss, unsigned port,
|
|||||||
*
|
*
|
||||||
* @param hostname the host name to be resolved
|
* @param hostname the host name to be resolved
|
||||||
* @param port the TCP port
|
* @param port the TCP port
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
@ -73,7 +73,7 @@ server_socket_add_host(struct server_socket *ss, const char *hostname,
|
|||||||
* Add a listener on a Unix domain socket.
|
* Add a listener on a Unix domain socket.
|
||||||
*
|
*
|
||||||
* @param path the absolute socket path
|
* @param path the absolute socket path
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return true on success
|
* @return true on success
|
||||||
*/
|
*/
|
||||||
|
@ -37,7 +37,7 @@ struct sockaddr;
|
|||||||
*
|
*
|
||||||
* @param sa the sockaddr struct
|
* @param sa the sockaddr struct
|
||||||
* @param length the length of #sa in bytes
|
* @param length the length of #sa in bytes
|
||||||
* @param error location to store the error occuring, or NULL to
|
* @param error location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
@ -53,7 +53,7 @@ sockaddr_to_string(const struct sockaddr *sa, size_t length, GError **error);
|
|||||||
* @param address the address to listen on
|
* @param address the address to listen on
|
||||||
* @param address_length the size of #address
|
* @param address_length the size of #address
|
||||||
* @param backlog the backlog parameter for the listen() system call
|
* @param backlog the backlog parameter for the listen() system call
|
||||||
* @param error location to store the error occuring, or NULL to
|
* @param error location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return the socket file descriptor or -1 on error
|
* @return the socket file descriptor or -1 on error
|
||||||
*/
|
*/
|
||||||
|
@ -40,7 +40,7 @@ songvec_save(FILE *fp, const struct songvec *sv);
|
|||||||
* Loads a song from the input file. Reading stops after the
|
* Loads a song from the input file. Reading stops after the
|
||||||
* "song_end" line.
|
* "song_end" line.
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return true on success, false on error
|
* @return true on success, false on error
|
||||||
*/
|
*/
|
||||||
|
@ -190,7 +190,7 @@ song_file_update_inarchive(struct song *song)
|
|||||||
tag_free(song->tag);
|
tag_free(song->tag);
|
||||||
|
|
||||||
//accept every file that has music suffix
|
//accept every file that has music suffix
|
||||||
//because we dont support tag reading throught
|
//because we don't support tag reading through
|
||||||
//input streams
|
//input streams
|
||||||
song->tag = tag_new();
|
song->tag = tag_new();
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ struct sticker;
|
|||||||
/**
|
/**
|
||||||
* Opens the sticker database (if path is not NULL).
|
* Opens the sticker database (if path is not NULL).
|
||||||
*
|
*
|
||||||
* @param error_r location to store the error occuring, or NULL to
|
* @param error_r location to store the error occurring, or NULL to
|
||||||
* ignore errors
|
* ignore errors
|
||||||
* @return true on success, false on error
|
* @return true on success, false on error
|
||||||
*/
|
*/
|
||||||
|
@ -51,7 +51,7 @@ spl_valid_name(const char *name_utf8);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of stored_playlist_info struct pointers. Returns
|
* Returns a list of stored_playlist_info struct pointers. Returns
|
||||||
* NULL if an error occured.
|
* NULL if an error occurred.
|
||||||
*/
|
*/
|
||||||
GPtrArray *
|
GPtrArray *
|
||||||
spl_list(void);
|
spl_list(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user