Class: AudioGlue::BaseAdapter
- Inherits:
-
Object
- Object
- AudioGlue::BaseAdapter
- Defined in:
- lib/audio_glue/base_adapter.rb
Overview
Base adapter that specifies interface for all adapters. The responsibility of an adapter is to build an output audio file from a snippet packet, which provides a collection of input audio sources and some parameters for the output file (rate, number of channels).
An adapter can rely on different tools and libraries to process audio files. Also an adapter is responsible for correctly processing remote files (e.g. downloading them as temporary files if necessary).
Instance Method Summary collapse
-
#build(snippet_packet) ⇒ String
Build audio file from a snippet packet and return result as binary string.
Instance Method Details
#build(snippet_packet) ⇒ String
Build audio file from a snippet packet and return result as binary string.
17 18 19 |
# File 'lib/audio_glue/base_adapter.rb', line 17 def build(snippet_packet) raise AbstractMethodCallError, __method__ end |