From 43b8a9cc277d2bfe2a72cf672a97ca1fd2aa8cfe Mon Sep 17 00:00:00 2001 From: noarkhh Date: Fri, 22 Mar 2024 15:12:41 +0100 Subject: [PATCH 1/2] Set init time to nil in handle_init --- lib/membrane_portaudio_plugin/source.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/membrane_portaudio_plugin/source.ex b/lib/membrane_portaudio_plugin/source.ex index d999502..c456659 100644 --- a/lib/membrane_portaudio_plugin/source.ex +++ b/lib/membrane_portaudio_plugin/source.ex @@ -91,7 +91,8 @@ defmodule Membrane.PortAudio.Source do options |> Map.from_struct() |> Map.merge(%{ - native: nil + native: nil, + init_time: nil })} end @@ -103,8 +104,7 @@ defmodule Membrane.PortAudio.Source do latency: latency, sample_format: sample_format, channels: channels, - sample_rate: sample_rate, - init_time: nil + sample_rate: sample_rate } = state device_id = if device_id == :default, do: @pa_no_device, else: device_id From 06bd81cfc2cb802aad7630a15ed3e5b9c35a8316 Mon Sep 17 00:00:00 2001 From: noarkhh Date: Fri, 22 Mar 2024 15:15:23 +0100 Subject: [PATCH 2/2] Bump version --- README.md | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index edc2666..471e903 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The plugin that captures and plays sound using the multiplatform PortAudio libra Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`. ```elixir - {:membrane_portaudio_plugin, "~> 0.19.1"} + {:membrane_portaudio_plugin, "~> 0.19.2"} ``` This package depends on the [PortAudio](http://portaudio.com/) library. The precompiled build will be pulled and linked automatically. However, should there be any problems, consider installing it manually. diff --git a/mix.exs b/mix.exs index 58da17d..8548d2c 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule Membrane.PortAudio.Mixfile do use Mix.Project @github_url "https://github.com/membraneframework/membrane_portaudio_plugin" - @version "0.19.1" + @version "0.19.2" def project do [