src/sndfile/chunks

Search:
Group by:
Source   Edit  

Iterate over all chunks in the audio file, whose chunk ID starts with chunk_id. The loop variable is assigned a seq[byte] with the data of each matching chunk.

Types

SmplChunk = object
  manufacturer*: array[4, byte]
  product*: int32
  samplePeriod*: int32
  midiUnityNote*: int32
  midiPitchFraction*: int32
  smpteFormat*: int32
  smpteOffset*: int32
  loopCount*: int32
  samplerDataLen*: int32
  loops*: UncheckedArray[SmplLoop]
Source   Edit  
SmplLoop = object
  id*: int32
  loopType*: int32
  startPos*: int32
  endPos*: int32
  fraction*: int32
  playCount*: int32
Source   Edit  

Iterators

iterator chunks(sndfile: ptr SndFile; chunk_id: string): seq[byte] {.
    ...raises: [ValueError, IOError], tags: [], forbids: [].}
Source   Edit