NetMD.Simulator.Disc (NetMD v0.1.0)

Copy Markdown View Source

The virtual disc a NetMD.Simulator presents.

Summary

Types

t()

A track on the virtual disc.

Functions

A small demo disc with two tracks.

Types

t()

@type t() :: %NetMD.Simulator.Disc{
  left: term(),
  present: term(),
  raw_full_title: term(),
  raw_title: term(),
  total: term(),
  tracks: term(),
  used: term(),
  writable: term(),
  write_protected: term()
}

track()

@type track() :: %{
  title: String.t(),
  full_title: String.t(),
  codec: byte(),
  channel: byte(),
  protected: byte(),
  length: {byte(), byte(), byte(), byte()}
}

A track on the virtual disc.

Functions

demo()

@spec demo() :: t()

A small demo disc with two tracks.

track(title, codec, channel, length)

@spec track(String.t(), byte(), byte(), {byte(), byte(), byte(), byte()}) :: track()

Build a track map.