Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .circleci/config.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on:
push:
branches: ["**"]
workflow_dispatch:

jobs:
build_test:
uses: membraneframework/membrane_actions/.github/workflows/build-test.yml@main

lint:
uses: membraneframework/membrane_actions/.github/workflows/lint.yml@main

test:
uses: membraneframework/membrane_actions/.github/workflows/test.yml@main
with:
runner: ubuntu-24.04-arm

25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
build_test:
uses: membraneframework/membrane_actions/.github/workflows/build-test.yml@main

lint:
uses: membraneframework/membrane_actions/.github/workflows/lint.yml@main

test:
uses: membraneframework/membrane_actions/.github/workflows/test.yml@main
with:
runner: ubuntu-24.04-arm

hex_publish:
needs: [build_test, lint, test]
uses: membraneframework/membrane_actions/.github/workflows/hex-publish.yml@main
secrets:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The package can be installed by adding `membrane_opus_plugin` to your list of de
```elixir
def deps do
[
{:membrane_opus_plugin, "~> 0.20.6"}
{:membrane_opus_plugin, "~> 0.20.7"}
]
end
```
Expand Down
4 changes: 2 additions & 2 deletions lib/membrane_opus/decoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Membrane.Opus.Decoder do
require Membrane.Logger

alias __MODULE__.Native
alias Membrane.{Buffer, Opus, RemoteStream}
alias Membrane.{Opus, RemoteStream}
alias Membrane.Opus.Util
alias Membrane.RawAudio

Expand Down Expand Up @@ -62,7 +62,7 @@ defmodule Membrane.Opus.Decoder do
{stream_format, state} = maybe_make_native(channels, state)

decoded = Native.decode_packet(state.native, buffer.payload)
buffer = %Buffer{buffer | payload: decoded}
buffer = %{buffer | payload: decoded}
{stream_format ++ [buffer: {:output, buffer}], state}
end
end
Expand Down
5 changes: 3 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.Opus.Plugin.Mixfile do
use Mix.Project

@version "0.20.6"
@version "0.20.7"
@github_url "https://github.com/membraneframework/membrane_opus_plugin"

def project do
Expand Down Expand Up @@ -45,7 +45,7 @@ defmodule Membrane.Opus.Plugin.Mixfile do
{:bundlex, "~> 1.2"},
{:membrane_precompiled_dependency_provider, "~> 0.2.0"},
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:credo, ">= 0.0.0", only: :dev, runtime: false},
{:membrane_file_plugin, "~> 0.16.0", only: :test},
{:membrane_raw_audio_parser_plugin, "~> 0.4.0", only: :test}
Expand All @@ -59,6 +59,7 @@ defmodule Membrane.Opus.Plugin.Mixfile do

if System.get_env("CI") == "true" do
# Store PLTs in cacheable directory for CI
File.mkdir_p!(Path.join([__DIR__, "priv", "plts"]))
[plt_local_path: "priv/plts", plt_core_path: "priv/plts"] ++ opts
else
opts
Expand Down
28 changes: 14 additions & 14 deletions mix.lock

Large diffs are not rendered by default.

Binary file modified test/fixtures/encoder_output_reference
Binary file not shown.
2 changes: 1 addition & 1 deletion test/membrane_opus/parser_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ defmodule Membrane.Opus.Parser.ParserTest do
import Membrane.Testing.Assertions
import Membrane.ChildrenSpec

alias Membrane.{Buffer, Opus}
alias Membrane.Opus.Parser
alias Membrane.RemoteStream
alias Membrane.{Buffer, Opus}
alias Membrane.Testing.{Pipeline, Sink, Source}

@fixtures [
Expand Down
Loading