Skip to content

Commit 14346df

Browse files
authored
Bump mpegaudio_format to 0.3.0 (#51)
* Bump mpegaudio_format to 0.3.0 * Remove espec dependency * Update deps * Remove unused deps
1 parent 3e5a761 commit 14346df

File tree

4 files changed

+36
-41
lines changed

4 files changed

+36
-41
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It is a part of [Membrane Multimedia Framework](https://membraneframework.org).
1414
Add the following line to your `deps` in `mix.exs`. Then, run `mix deps.get`.
1515

1616
```elixir
17-
{:membrane_mp3_lame_plugin, "~> 0.18.2"}
17+
{:membrane_mp3_lame_plugin, "~> 0.18.3"}
1818
```
1919

2020
This package depends on the [Lame encoder library](http://lame.sourceforge.net) library. The precompiled builds will be pulled and linked automatically. However, should there be any problems, consider installing it manually.

lib/membrane_mp3_lame/encoder.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ defmodule Membrane.MP3.Lame.Encoder do
88

99
alias __MODULE__.Native
1010
alias Membrane.Buffer
11-
alias Membrane.Caps.Audio.MPEG
11+
alias Membrane.MPEGAudio
1212
alias Membrane.RawAudio
1313

1414
@samples_per_frame 1152
1515
@channels 2
1616
@sample_size 4
1717

1818
def_output_pad :output,
19-
accepted_format: %MPEG{channels: 2, sample_rate: 44_100, layer: :layer3, version: :v1}
19+
accepted_format: %MPEGAudio{channels: 2, sample_rate: 44_100, layer: :layer3, version: :v1}
2020

2121
def_input_pad :input,
2222
accepted_format:
@@ -62,7 +62,7 @@ defmodule Membrane.MP3.Lame.Encoder do
6262
native: nil,
6363
queue: <<>>,
6464
options: options,
65-
raw_frame_size: MPEG.samples_per_frame(:v1, :layer3) * @sample_size * @channels,
65+
raw_frame_size: MPEGAudio.samples_per_frame(:v1, :layer3) * @sample_size * @channels,
6666
next_frame_pts: nil
6767
}}
6868
end
@@ -86,7 +86,7 @@ defmodule Membrane.MP3.Lame.Encoder do
8686

8787
@impl true
8888
def handle_playing(_ctx, state) do
89-
stream_format = %MPEG{
89+
stream_format = %MPEGAudio{
9090
channels: 2,
9191
sample_rate: 44_100,
9292
version: :v1,

mix.exs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Membrane.MP3.Lame.Mixfile do
22
use Mix.Project
33

4-
@version "0.18.2"
4+
@version "0.18.3"
55
@github_url "https://github.com/membraneframework/membrane_mp3_lame_plugin"
66

77
def project do
@@ -18,8 +18,7 @@ defmodule Membrane.MP3.Lame.Mixfile do
1818
name: "Membrane MP3 Lame Plugin",
1919
source_url: @github_url,
2020
homepage_url: "https://membraneframework.org",
21-
docs: docs(),
22-
preferred_cli_env: [espec: :test, format: :test]
21+
docs: docs()
2322
]
2423
end
2524

@@ -71,12 +70,11 @@ defmodule Membrane.MP3.Lame.Mixfile do
7170
[
7271
{:membrane_core, "~> 1.0"},
7372
{:membrane_raw_audio_format, "~> 0.12.0"},
74-
{:membrane_caps_audio_mpeg, "~> 0.2.0"},
73+
{:membrane_mpegaudio_format, "~> 0.3.0"},
7574
{:membrane_common_c, "~> 0.16.0"},
7675
{:bunch, "~> 1.0"},
7776
{:bundlex, "~> 1.2"},
7877
{:membrane_precompiled_dependency_provider, "~> 0.1.0"},
79-
{:espec, "~> 1.7", only: [:dev, :test]},
8078
{:membrane_file_plugin, "~> 0.16.0", only: :test},
8179
{:membrane_raw_audio_parser_plugin, "~> 0.4.0", only: :test},
8280
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},

0 commit comments

Comments
 (0)