Skip to content

Commit

Permalink
Update README.md (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelonEkonom authored Apr 17, 2024
1 parent 04a3ff1 commit 99c2843
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The package can be installed by adding `membrane_aac_fdk_plugin` to your list of
```elixir
def deps do
[
{:membrane_aac_fdk_plugin, "~> 0.18.7"}
{:membrane_aac_fdk_plugin, "~> 0.18.7"}
]
end
```
Expand Down Expand Up @@ -59,17 +59,17 @@ defmodule AAC.Pipeline do

@impl true
def handle_init(_ctx, _opts) do
structure =
spec =
child(:source, %Membrane.File.Source{location: "input.wav"})
|> child(:parser, Membrane.WAV.Parser)
|> child(:aac_encoder, Membrane.AAC.FDK.Encoder)
|> child(:sink, %Membrane.File.Sink{location: "output.aac"})

{[spec: structure, playback: :playing], %{}}
{[spec: spec], %{}}
end
end

{:ok, _pipeline_supervisor, _pipeline} = AAC.Pipeline.start_link([])
{:ok, _pipeline_supervisor, _pipeline} = Membrane.Pipeline.start_link(AAC.Pipeline, [])
```

### Decoder
Expand All @@ -89,7 +89,7 @@ defmodule AAC.Pipeline do

@impl true
def handle_init(_ctx, _opts) do
structure =
spec =
child(:source, %Membrane.File.Source{location: "input.aac"})
|> child(:aac_decoder, Membrane.AAC.FDK.Decoder)
|> child(:converter, %Membrane.FFmpeg.SWResample.Converter{
Expand All @@ -101,7 +101,7 @@ defmodule AAC.Pipeline do
})
|> child(:sink, Membrane.PortAudio.Sink)

{[spec: structure], %{}}
{[spec: spec], %{}}
end
end

Expand Down

0 comments on commit 99c2843

Please sign in to comment.