From a674792721dfa5a699514b8f7132b8bdccaab067 Mon Sep 17 00:00:00 2001 From: Mateusz Front Date: Thu, 11 Jul 2024 12:05:49 +0200 Subject: [PATCH] make credo happy, update deps --- .circleci/config.yml | 1 + lib/membrane_portaudio.ex | 10 +++------- lib/membrane_portaudio_plugin/sink.ex | 2 +- mix.exs | 2 +- mix.lock | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c077fb4..64eb675 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,7 @@ workflows: - elixir/lint: filters: <<: *filters + cache-version: 2 - elixir/hex_publish: requires: - elixir/build_test diff --git a/lib/membrane_portaudio.ex b/lib/membrane_portaudio.ex index 4f2407c..d933836 100644 --- a/lib/membrane_portaudio.ex +++ b/lib/membrane_portaudio.ex @@ -19,13 +19,9 @@ defmodule Membrane.PortAudio do """ @spec print_devices() :: :ok def print_devices() do - IO.inspect(list_devices(), - pretty: true, - limit: :infinity, - syntax_colors: IO.ANSI.syntax_colors() - ) - - :ok + list_devices() + |> inspect(pretty: true, limit: :infinity, syntax_colors: IO.ANSI.syntax_colors()) + |> IO.puts() end @doc """ diff --git a/lib/membrane_portaudio_plugin/sink.ex b/lib/membrane_portaudio_plugin/sink.ex index 177594e..7379a12 100644 --- a/lib/membrane_portaudio_plugin/sink.ex +++ b/lib/membrane_portaudio_plugin/sink.ex @@ -129,7 +129,7 @@ defmodule Membrane.PortAudio.Sink do @impl true def handle_buffer(:input, %Buffer{payload: payload}, _ctx, %{native: native} = state) do - mockable(Native).write_data(payload, native) + apply(mockable(Native), :write_data, [payload, native]) {[], state} end end diff --git a/mix.exs b/mix.exs index e0d1950..21be166 100644 --- a/mix.exs +++ b/mix.exs @@ -40,7 +40,7 @@ defmodule Membrane.PortAudio.Mixfile do {:membrane_common_c, "~> 0.16.0"}, {:bunch, "~> 1.5"}, {:membrane_raw_audio_format, "~> 0.12.0"}, - {:bundlex, "~> 1.5"}, + {:unifex, "~> 1.2"}, {:membrane_precompiled_dependency_provider, "~> 0.1.0"}, # Testing {:mockery, "~> 2.1", runtime: false}, diff --git a/mix.lock b/mix.lock index 9c05a58..fca02f8 100644 --- a/mix.lock +++ b/mix.lock @@ -2,7 +2,7 @@ "bimap": {:hex, :bimap, "1.3.0", "3ea4832e58dc83a9b5b407c6731e7bae87458aa618e6d11d8e12114a17afa4b3", [:mix], [], "hexpm", "bf5a2b078528465aa705f405a5c638becd63e41d280ada41e0f77e6d255a10b4"}, "bunch": {:hex, :bunch, "1.6.1", "5393d827a64d5f846092703441ea50e65bc09f37fd8e320878f13e63d410aec7", [:mix], [], "hexpm", "286cc3add551628b30605efbe2fca4e38cc1bea89bcd0a1a7226920b3364fe4a"}, "bunch_native": {:hex, :bunch_native, "0.5.0", "8ac1536789a597599c10b652e0b526d8833348c19e4739a0759a2bedfd924e63", [:mix], [{:bundlex, "~> 1.0", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm", "24190c760e32b23b36edeb2dc4852515c7c5b3b8675b1a864e0715bdd1c8f80d"}, - "bundlex": {:hex, :bundlex, "1.5.2", "056ea30a2efb1005940d965e92b9d012c6f6f8f718c7c8272d317ad5db62b966", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:elixir_uuid, "~> 1.2", [hex: :elixir_uuid, repo: "hexpm", optional: false]}, {:qex, "~> 0.5", [hex: :qex, repo: "hexpm", optional: false]}, {:req, ">= 0.4.0", [hex: :req, repo: "hexpm", optional: false]}, {:zarex, "~> 1.0", [hex: :zarex, repo: "hexpm", optional: false]}], "hexpm", "b8e3dcb61f29957e7dc2c6b9f7de255e258df95f90bd3c32838ede9718d2db0a"}, + "bundlex": {:hex, :bundlex, "1.5.3", "35d01e5bc0679510dd9a327936ffb518f63f47175c26a35e708cc29eaec0890b", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:elixir_uuid, "~> 1.2", [hex: :elixir_uuid, repo: "hexpm", optional: false]}, {:qex, "~> 0.5", [hex: :qex, repo: "hexpm", optional: false]}, {:req, ">= 0.4.0", [hex: :req, repo: "hexpm", optional: false]}, {:zarex, "~> 1.0", [hex: :zarex, repo: "hexpm", optional: false]}], "hexpm", "debd0eac151b404f6216fc60222761dff049bf26f7d24d066c365317650cd118"}, "bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"}, "castore": {:hex, :castore, "1.0.8", "dedcf20ea746694647f883590b82d9e96014057aff1d44d03ec90f36a5c0dc6e", [:mix], [], "hexpm", "0b2b66d2ee742cb1d9cb8c8be3b43c3a70ee8651f37b75a8b982e036752983f1"}, "coerce": {:hex, :coerce, "1.0.1", "211c27386315dc2894ac11bc1f413a0e38505d808153367bd5c6e75a4003d096", [:mix], [], "hexpm", "b44a691700f7a1a15b4b7e2ff1fa30bebd669929ac8aa43cffe9e2f8bf051cf1"},