Current section

Files

Jump to
exray lib Exray Structs Sound.ex
Raw

lib/Exray/Structs/Sound.ex

defmodule Exray.Structs.Sound do
@moduledoc """
Sound TypedStruct
"""
use TypedStruct
# typedef struct Sound {
# AudioStream stream; // Audio stream
# unsigned int frameCount; // Total number of frames (considering channels)
# } Sound;
typedstruct enforce: true do
field :stream, AudioStream.t()
field :frame_count, non_neg_integer, default: 0
end
end