Skip to content

Commit

Permalink
docs/sphinx: Fix various typos
Browse files Browse the repository at this point in the history
(This modifies UI, libobs, deps/obs-scripting, various cmake files)

Found using:
`codespell -q 3 -S *.ini,./UI/data/locale,./deps/w32-pthreads -L aci,dur,iff,mut,numer,uint`
  • Loading branch information
luzpaz authored and jp9000 committed Oct 15, 2019
1 parent 6b08c06 commit d124e64
Show file tree
Hide file tree
Showing 33 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion UI/audio-encoders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static void PopulateBitrateMap()
if (aac_ != GetCodec(encoder.c_str()))
continue;

// disable mf_aac if audio ouput is not stereo nor mono
// disable mf_aac if audio output is not stereo nor mono
if ((output_channels >= 3) && (encoder == "mf_aac"))
continue;

Expand Down
2 changes: 1 addition & 1 deletion UI/data/themes/Acri.qss
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ LockedCheckBox::indicator:unchecked:hover {
image: url(:res/images/unlocked.svg);
}

/* Visibilty CheckBox */
/* Visibility CheckBox */

VisibilityCheckBox {
outline: none;
Expand Down
2 changes: 1 addition & 1 deletion UI/data/themes/Dark.qss
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ LockedCheckBox::indicator:unchecked {
image: url(:res/images/unlocked.svg);
}

/* Visibilty CheckBox */
/* Visibility CheckBox */

VisibilityCheckBox {
outline: none;
Expand Down
2 changes: 1 addition & 1 deletion UI/data/themes/Rachni.qss
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ LockedCheckBox::indicator:unchecked:hover {
image: url(:res/images/unlocked.svg);
}

/* Visibilty CheckBox */
/* Visibility CheckBox */

VisibilityCheckBox {
outline: none;
Expand Down
2 changes: 1 addition & 1 deletion UI/data/themes/System.qss
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ LockedCheckBox::indicator:unchecked {
image: url(:res/images/unlocked.svg);
}

/* Visibilty CheckBox */
/* Visibility CheckBox */

VisibilityCheckBox {
outline: none;
Expand Down
2 changes: 1 addition & 1 deletion UI/volume-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ void VolumeMeter::setPeakMeterType(enum obs_peak_meter_type peakMeterType)
// processing required by lossy audio compression.
//
// The alignment level was not specified, but I've adjusted
// it compared to a sample-peak meter. Incidently Youtube
// it compared to a sample-peak meter. Incidentally Youtube
// uses this new Alignment Level as the maximum integrated
// loudness of a video.
//
Expand Down
2 changes: 1 addition & 1 deletion UI/window-projector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ void OBSProjector::OBSRenderMultiview(void *data, uint32_t cx, uint32_t cy)
gs_matrix_pop();
}

// Region for future usage with aditional info.
// Region for future usage with additional info.
if (multiviewLayout == MultiviewLayout::HORIZONTAL_TOP_24_SCENES) {
// Just paint the background for now
paintAreaWithColor(window->thickness, window->thickness,
Expand Down
4 changes: 2 additions & 2 deletions cmake/Modules/CopyMSVCBins.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Doesn't realy make sense anywhere else
# Doesn't really make sense anywhere else
if(NOT MSVC)
return()
endif()
Expand All @@ -8,7 +8,7 @@ if(COPIED_DEPENDENCIES)
return()
endif()

option(COPY_DEPENDENCIES "Automaticaly try copying all dependencies" ON)
option(COPY_DEPENDENCIES "Automatically try copying all dependencies" ON)
if(NOT COPY_DEPENDENCIES)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion cmake/Modules/FindFFmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# FFMPEG_FOUND - All required components and the core library were found
# FFMPEG_INCLUDE_DIRS - Combined list of all components include dirs
# FFMPEG_LIBRARIES - Combined list of all componenets libraries
# FFMPEG_LIBRARIES - Combined list of all components libraries
# FFMPEG_VERSION_STRING - Version of the first component requested
#
# For each requested component the following variables are defined:
Expand Down
2 changes: 1 addition & 1 deletion deps/obs-scripting/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if(NOT PYTHONLIBS_FOUND AND NOT LUAJIT_FOUND)
return()
endif()

set(SCRIPTING_ENABLED ON CACHE BOOL "Interal global cmake variable" FORCE)
set(SCRIPTING_ENABLED ON CACHE BOOL "Internal global cmake variable" FORCE)

if(UI_ENABLED)
set(EXTRA_LIBS obs-frontend-api)
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/frontends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ save/load individual sources manually by using
:c:func:`obs_save_source()` and :c:func:`obs_load_source()`.

*(Author's note: I should not have written those helper functions; the
downside is I had to add "private" sources that aren't savable via the*
downside is I had to add "private" sources that aren't saveable via the*
:c:func:`obs_source_create_private()` *function. Just one of the many
minor design flaws that can occur during long-term development.)*

Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-libobs-graphics-graphics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ Draw Functions

Gets the current viewport

:param rect: Pointer to recieve viewport rectangle
:param rect: Pointer to receive viewport rectangle

---------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-libobs-graphics-vec2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,5 @@

Normalizes a vector

:param dst: Desination
:param dst: Destination
:param v: Vector to normalize
2 changes: 1 addition & 1 deletion docs/sphinx/reference-libobs-graphics-vec3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@

Normalizes a vector

:param dst: Desination
:param dst: Destination
:param v: Vector to normalize

---------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-libobs-graphics-vec4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@

Normalizes a vector

:param dst: Desination
:param dst: Destination
:param v: Vector to normalize

---------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-libobs-util-darray.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ dynamic array value with a reference (&) operator. For example:

.. function:: void da_copy(da_dst, da_src)

Makes a copy of a dyanmic array.
Makes a copy of a dynamic array.

:param da_dst: The dynamic array to copy to
:param da_src: The dynamic array to copy from
Expand Down
6 changes: 3 additions & 3 deletions docs/sphinx/reference-libobs-util-dstr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Dynamic String Functions
Copies a specific number of characters from another dynamic string.

:param dst: Dynamic string
:param src: Dynamic tring to copy
:param src: Dynamic string to copy
:param len: Number of characters to copy

----------------------
Expand Down Expand Up @@ -234,7 +234,7 @@ Dynamic String Functions

.. function:: void dstr_cat_dstr(struct dstr *dst, const struct dstr *str)

Concatenates a dyanmic string with another dynamic string.
Concatenates a dynamic string with another dynamic string.

:param dst: Dynamic string to concatenate to
:param str: Dynamic string to concatenate with
Expand Down Expand Up @@ -308,7 +308,7 @@ Dynamic String Functions
Removes a specific number of characters starting from a specific
index.

:param dst: Dyanmic string
:param dst: Dynamic string
:param idx: Index to start removing characters at
:param count: Number of characters to remove

Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-libobs-util-platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ Other Path/File Functions

.. function:: int os_copyfile(const char *file_in, const char *file_out)

Copys a file.
Copies a file.

---------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/reference-libobs-util-profiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Profiler Data Access Functions

:param snap: A profiler snapshot
:param filename: The path to the CSV file to save
:return: *true* if successfuly written, *false* otherwise
:return: *true* if successfully written, *false* otherwise

----------------------

Expand All @@ -169,7 +169,7 @@ Profiler Data Access Functions

:param snap: A profiler snapshot
:param filename: The path to the gzipped CSV file to save
:return: *true* if successfuly written, *false* otherwise
:return: *true* if successfully written, *false* otherwise

----------------------

Expand Down
8 changes: 4 additions & 4 deletions docs/sphinx/reference-libobs-util-threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Event Functions

- 0 - successful
- ETIMEDOUT - Timed out
- EINVAL - An unexpected error occured
- EINVAL - An unexpected error occurred

----------------------

Expand All @@ -86,7 +86,7 @@ Event Functions

- 0 - successful
- EAGAIN - The event is not signaled
- EINVAL - An unexpected error occured
- EINVAL - An unexpected error occurred

----------------------

Expand Down Expand Up @@ -123,7 +123,7 @@ Semaphore Functions

.. function:: void os_sem_destroy(os_sem_t *sem)

Destroys a sempahore object.
Destroys a semaphore object.

:param sem: Semaphore object

Expand All @@ -140,7 +140,7 @@ Semaphore Functions

.. function:: int os_sem_wait(os_sem_t *sem)

Decrements the semphore or waits until the semaphore has been
Decrements the semaphore or waits until the semaphore has been
incremented.

:param sem: Semaphore object
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ to communicate with libobs and front-ends.
Module Externs
--------------

These functions are externs that are useable throughout the module.
These functions are externs that are usable throughout the module.

.. function:: const char *obs_module_text(const char *lookup_string)

Expand Down
12 changes: 6 additions & 6 deletions docs/sphinx/reference-outputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Output Definition Structure (obs_output_info)

.. member:: void (*obs_output_info.raw_audio)(void *data, struct audio_data *frames)

This is called when the output recieves raw audio data. Only applies
This is called when the output receives raw audio data. Only applies
to outputs that are not encoded.

**This callback must be used with single-track raw outputs.**
Expand All @@ -131,7 +131,7 @@ Output Definition Structure (obs_output_info)

.. member:: void (*obs_output_info.raw_audio2)(void *data, size_t idx, struct audio_data *frames)

This is called when the output recieves raw audio data. Only applies
This is called when the output receives raw audio data. Only applies
to outputs that are not encoded.

**This callback must be used with multi-track raw outputs.**
Expand Down Expand Up @@ -251,7 +251,7 @@ Output Signals

:Parameters: - **code** - Can be one of the following values:

| OBS_OUTPUT_SUCCESS - Successfuly stopped
| OBS_OUTPUT_SUCCESS - Successfully stopped
| OBS_OUTPUT_BAD_PATH - The specified path was invalid
| OBS_OUTPUT_CONNECT_FAILED - Failed to connect to a server
| OBS_OUTPUT_INVALID_STREAM - Invalid stream path
Expand Down Expand Up @@ -368,7 +368,7 @@ General Output Functions

Starts the output.

:return: *true* if output successfuly started, *false* otherwise. If
:return: *true* if output successfully started, *false* otherwise. If
the output failed to start,
:c:func:`obs_output_get_last_error()` may contain a specific
error string related to the reason
Expand Down Expand Up @@ -460,7 +460,7 @@ General Output Functions

Pause an output (if supported by the output).

:return: *true* if the output was paused successfuly, *false*
:return: *true* if the output was paused successfully, *false*
otherwise

---------------------
Expand Down Expand Up @@ -818,7 +818,7 @@ Functions used by outputs
to the user

:param code: | Can be one of the following values:
| OBS_OUTPUT_SUCCESS - Successfuly stopped
| OBS_OUTPUT_SUCCESS - Successfully stopped
| OBS_OUTPUT_BAD_PATH - The specified path was invalid
| OBS_OUTPUT_CONNECT_FAILED - Failed to connect to a server
| OBS_OUTPUT_INVALID_STREAM - Invalid stream path
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Property Object Functions

- **OBS_COMBO_TYPE_EDITABLE** - Can be edited.
Only used with string lists.
- **OBS_COMBO_TYPE_LIST** - Not ediable.
- **OBS_COMBO_TYPE_LIST** - Not editable.

:param format: Can be one of the following values:

Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/reference-scenes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ Scene Item Functions

.. function:: void obs_sceneitem_get_box_transform(const obs_sceneitem_t *item, struct matrix4 *transform)

Gets the transform matrix of the scene item used for the bouding box
Gets the transform matrix of the scene item used for the bounding box
or edges of the scene item.

---------------------
Expand Down
14 changes: 7 additions & 7 deletions docs/sphinx/reference-sources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Source Definition Structure (obs_source_info)
user.

When this is used, the source will receive interaction events if
theese callbacks are provided:
these callbacks are provided:
:c:member:`obs_source_info.mouse_click`,
:c:member:`obs_source_info.mouse_move`,
:c:member:`obs_source_info.mouse_wheel`,
Expand Down Expand Up @@ -286,7 +286,7 @@ Source Definition Structure (obs_source_info)

Called to enumerate all active sources being used within this
source. If the source has children that render audio/video it must
implement this callback. Only used with sources that have tha
implement this callback. Only used with sources that have the
OBS_SOURCE_COMPOSITE output capability flag.

:param enum_callback: Enumeration callback
Expand Down Expand Up @@ -391,14 +391,14 @@ Source Definition Structure (obs_source_info)
.. member:: bool (*obs_source_info.audio_render)(void *data, uint64_t *ts_out, struct obs_source_audio_mix *audio_output, uint32_t mixers, size_t channels, size_t sample_rate)

Called to render audio of composite sources. Only used with sources
that have tha OBS_SOURCE_COMPOSITE output capability flag.
that have the OBS_SOURCE_COMPOSITE output capability flag.

.. member:: void (*obs_source_info.enum_all_sources)(void *data, obs_source_enum_proc_t enum_callback, void *param)

Called to enumerate all active and inactive sources being used
within this source. If this callback isn't implemented,
enum_active_sources will be called instead. Only used with sources
that have tha OBS_SOURCE_COMPOSITE output capability flag.
that have the OBS_SOURCE_COMPOSITE output capability flag.

This is typically used if a source can have inactive child sources.

Expand Down Expand Up @@ -836,7 +836,7 @@ General Source Functions
.. function:: bool obs_source_active(const obs_source_t *source)

:return: *true* if active, *false* if not. A source is only
consdiered active if it's being shown on the final mix
considered active if it's being shown on the final mix

---------------------

Expand Down Expand Up @@ -1268,8 +1268,8 @@ Transitions
Sets/gets the scale type for sources within the transition.

:param type: | OBS_TRANSITION_SCALE_MAX_ONLY - Scale to aspect ratio, but only to the maximum size of each source
| OBS_TRANSITION_SCALE_ASPECT - Alwasy scale the sources, but keep aspect ratio
| OBS_TRANSITION_SCALE_STRETCH - Scale and stretch the sources to the size of the transision
| OBS_TRANSITION_SCALE_ASPECT - Always scale the sources, but keep aspect ratio
| OBS_TRANSITION_SCALE_STRETCH - Scale and stretch the sources to the size of the transition
---------------------

Expand Down
2 changes: 1 addition & 1 deletion libobs/audio-monitoring/pulse/pulseaudio-output.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static void pulseaudio_source_info(pa_context *c, const pa_source_info *i,
{
UNUSED_PARAMETER(c);
PULSE_DATA(userdata);
// An error occured
// An error occurred
if (eol < 0) {
data->format = PA_SAMPLE_INVALID;
goto skip;
Expand Down
2 changes: 1 addition & 1 deletion libobs/audio-monitoring/pulse/pulseaudio-wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void pulseaudio_wait();
/**
* Wait for accept signal from calling thread
*
* This function tells the pulseaudio mainloop wheter the data provided to
* This function tells the pulseaudio mainloop whether the data provided to
* the callback should be retained until the calling thread executes
* pulseaudio_accept()
*
Expand Down
Loading

0 comments on commit d124e64

Please sign in to comment.