Class: Groove::GroovePlaylistItem

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/groove/groove.rb

Overview

GroovePlaylist

Fields:

:file

(GrooveFile) all fields are read-only. modify with methods below.

:gain

(Float) A volume adjustment in float format to apply to the file when it plays. This is typically used for loudness compensation, for example ReplayGain. To convert from dB to float, use exp(log(10) * 0.05 * dB_value)

:peak

(Float) The sample peak of this playlist item is assumed to be 1.0 in float format. If you know for certain that the peak is less than 1.0, you may set this value which may allow the volume adjustment to use a pure amplifier rather than a compressor. This results in slightly better audio quality.

:prev

(FFI::Pointer(*GroovePlaylistItem)) A GroovePlaylist is a doubly linked list. Use these fields to traverse the list.

:next_

(FFI::Pointer(*GroovePlaylistItem))