Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.18 #53

Merged
merged 10 commits into from
Jan 23, 2024
Merged

V0.18 #53

merged 10 commits into from
Jan 23, 2024

Conversation

bartkrak
Copy link
Contributor

No description provided.

Comment on lines 86 to 93
],
input_stream_format: [
spec: RawAudio.t(),
type: :stream_format,
default: nil,
description: """
Input type - used to set input sample rate and channels.
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def_options is used to define options passed in spec, eg. child(:source, %Source{option: value}). There is no need to put input_stream_format here, because it won't be passed in spec, it is just another field in state

Comment on lines 280 to 295
defp validate_pts_integrity(true = _check_pts_integrity?, encoded_buffers, input_pts) do
cond do
length(encoded_buffers) >= 2 and Enum.at(encoded_buffers, 1).pts > input_pts ->
Membrane.Logger.warning("PTS values are overlapping")

length(encoded_buffers) >= 2 and Enum.at(encoded_buffers, 1).pts < input_pts ->
Membrane.Logger.warning("PTS values are not continous")

true ->
:ok
end
end

defp validate_pts_integrity(_check_pts_integrity?, _packets, _input_pts) do
:ok
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor this function according to the suggestion from membraneframework/membrane_opus_plugin#59 (comment) (update conditions in cond and remove first argument)

@bartkrak bartkrak self-assigned this Jan 22, 2024
@FelonEkonom FelonEkonom self-requested a review January 22, 2024 13:29
Copy link
Member

@FelonEkonom FelonEkonom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump version to 18.5

@bartkrak bartkrak merged commit 7d272df into master Jan 23, 2024
3 checks passed
@bartkrak bartkrak deleted the v0.18 branch January 23, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants