class AudioGlue::SnippetPacket

SnippetPacket is a collection of {AudioGlue::Snippet snippets} with some additional info about the output file (format, rate, number of channels).

It’s supposed to be built by {AudioGlue::Template}. And then it’s passed to an adapter which builds the audio output.

Attributes

channels[RW]
format[RW]
rate[RW]
snippets[R]

Public Class Methods

new(format, rate, channels) click to toggle source

@param format [Symbol, String] @param rate [Numeric, String] @param channels [Numeric, String]

# File lib/audio_glue/snippet_packet.rb, line 18
def initialize(format, rate, channels)
  @format   = format
  @rate     = rate
  @channels = channels
  @snippets = []
end