Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set init time to nil in handle_init #57

Merged
merged 2 commits into from
Mar 26, 2024
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions lib/membrane_portaudio_plugin/source.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ defmodule Membrane.PortAudio.Source do
options
|> Map.from_struct()
|> Map.merge(%{
native: nil
native: nil,
init_time: nil
})}
end

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
[
Expand Down