Skip to content

Commit 2d5ac3f

Browse files
committed
Add debug logs
1 parent 4ece42a commit 2d5ac3f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/agora/agora_sink.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ defmodule Membrane.Agora.Sink do
117117
(Membrane.Time.as_milliseconds(frame_duration, :round) * sample_rate)
118118
|> div(1000)
119119

120+
IO.inspect({sample_rate, opus.channels, samples_per_frame},
121+
label: "HANDLE STREAM FORMAT"
122+
)
123+
120124
Native.update_audio_stream_format(
121125
sample_rate,
122126
opus.channels,
@@ -154,6 +158,8 @@ defmodule Membrane.Agora.Sink do
154158
%Membrane.AAC{} -> :aac
155159
end
156160

161+
{stream_format, buffer} |> IO.inspect(label: "HANDLE BUFFER")
162+
157163
:ok = Native.write_audio_data(buffer.payload, stream_format, state.native_state)
158164
{[], state}
159165
end

test/support/sender_pipeline.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ defmodule Membrane.Agora.Support.SenderPipeline do
2828
]}
2929
end
3030

31-
audio_parser_input_options =
32-
spec =
31+
spec =
3332
[
3433
child(%Membrane.File.Source{location: opts[:video]})
3534
|> child(%Membrane.H264.Parser{

0 commit comments

Comments
 (0)