-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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?
lib/membrane_g711_ffmpeg/decoder.ex
Outdated
case stream_format do | ||
%G711{encoding: encoding} -> encoding | ||
%RemoteStream{} -> state.encoding | ||
end |
There was a problem hiding this comment.
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: [ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
No description provided.