Skip to content

Mulaw #9

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Mulaw #9

wants to merge 3 commits into from

Conversation

mat-hek
Copy link
Member

@mat-hek mat-hek commented Apr 30, 2025

No description provided.

@mat-hek mat-hek requested a review from varsill April 30, 2025 08:22
@mat-hek mat-hek added this to Smackore Apr 30, 2025
@mat-hek mat-hek moved this to In Review in Smackore Apr 30, 2025
Copy link

@varsill varsill left a comment

Choose a reason for hiding this comment

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

How about adding some tests for u-law encoding/decoding?

Comment on lines 59 to 62
case stream_format do
%G711{encoding: encoding} -> encoding
%RemoteStream{} -> state.encoding
end
Copy link

Choose a reason for hiding this comment

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

I am not sure if we should accept setting encoding: :PCMU and then override it within handle_stream format.
Perhaps we should also allow for nil :encoding?

@@ -14,9 +14,16 @@ defmodule Membrane.G711.FFmpeg.Decoder do
alias Membrane.G711.FFmpeg.Common
alias Membrane.{G711, RawAudio, RemoteStream}

def_options encoding: [
Copy link

Choose a reason for hiding this comment

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

[NIT] I think the name used to describe PCMA and PCMU is companding algorithm, but I am fine with encoding as well :D

Copy link
Member Author

Choose a reason for hiding this comment

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

We already have 'encoding' in the g711 format, so let's leave it as is

@mat-hek mat-hek requested a review from varsill May 20, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

3 participants