bodge-sndfile

API Reference

bodge-sndfile

Wrapper over libsndfile for cl-bodge system

%SNDFILE

  • Variable +FORMAT-WAV+
    65536
  • Variable +FORMAT-AIFF+
    131072
  • Variable +FORMAT-AU+
    196608
  • Variable +FORMAT-RAW+
    262144
  • Variable +FORMAT-PAF+
    327680
  • Variable +FORMAT-SVX+
    393216
  • Variable +FORMAT-NIST+
    458752
  • Variable +FORMAT-VOC+
    524288
  • Variable +FORMAT-IRCAM+
    655360
  • Variable +FORMAT-W64+
    720896
  • Variable +FORMAT-MAT4+
    786432
  • Variable +FORMAT-MAT5+
    851968
  • Variable +FORMAT-PVF+
    917504
  • Variable +FORMAT-XI+
    983040
  • Variable +FORMAT-HTK+
    1048576
  • Variable +FORMAT-SDS+
    1114112
  • Variable +FORMAT-AVR+
    1179648
  • Variable +FORMAT-WAVEX+
    1245184
  • Variable +FORMAT-SD2+
    1441792
  • Variable +FORMAT-FLAC+
    1507328
  • Variable +FORMAT-CAF+
    1572864
  • Variable +FORMAT-WVE+
    1638400
  • Variable +FORMAT-OGG+
    2097152
  • Variable +FORMAT-MPC2K+
    2162688
  • Variable +FORMAT-RF64+
    2228224
  • Variable +FORMAT-PCM-S8+
    1
  • Variable +FORMAT-PCM-16+
    2
  • Variable +FORMAT-PCM-24+
    3
  • Variable +FORMAT-PCM-32+
    4
  • Variable +FORMAT-PCM-U8+
    5
  • Variable +FORMAT-FLOAT+
    6
  • Variable +FORMAT-DOUBLE+
    7
  • Variable +FORMAT-ULAW+
    16
  • Variable +FORMAT-ALAW+
    17
  • Variable +FORMAT-IMA-ADPCM+
    18
  • Variable +FORMAT-MS-ADPCM+
    19
  • Variable +FORMAT-GSM610+
    32
  • Variable +FORMAT-VOX-ADPCM+
    33
  • Variable +FORMAT-G721-32+
    48
  • Variable +FORMAT-G723-24+
    49
  • Variable +FORMAT-G723-40+
    50
  • Variable +FORMAT-DWVW-12+
    64
  • Variable +FORMAT-DWVW-16+
    65
  • Variable +FORMAT-DWVW-24+
    66
  • Variable +FORMAT-DWVW-N+
    67
  • Variable +FORMAT-DPCM-8+
    80
  • Variable +FORMAT-DPCM-16+
    81
  • Variable +FORMAT-VORBIS+
    96
  • Variable +FORMAT-ALAC-16+
    112
  • Variable +FORMAT-ALAC-20+
    113
  • Variable +FORMAT-ALAC-24+
    114
  • Variable +FORMAT-ALAC-32+
    115
  • Variable +ENDIAN-FILE+
    0
  • Variable +ENDIAN-LITTLE+
    268435456
  • Variable +ENDIAN-BIG+
    536870912
  • Variable +ENDIAN-CPU+
    805306368
  • Variable +FORMAT-SUBMASK+
    65535
  • Variable +FORMAT-TYPEMASK+
    268369920
  • Variable +FORMAT-ENDMASK+
    805306368
  • Variable +C-GET-LIB-VERSION+
    4096
  • Variable +C-GET-LOG-INFO+
    4097
  • Variable +C-GET-CURRENT-SF-INFO+
    4098
  • Variable +C-GET-NORM-DOUBLE+
    4112
  • Variable +C-GET-NORM-FLOAT+
    4113
  • Variable +C-SET-NORM-DOUBLE+
    4114
  • Variable +C-SET-NORM-FLOAT+
    4115
  • Variable +C-SET-SCALE-FLOAT-INT-READ+
    4116
  • Variable +C-SET-SCALE-INT-FLOAT-WRITE+
    4117
  • Variable +C-GET-SIMPLE-FORMAT-COUNT+
    4128
  • Variable +C-GET-SIMPLE-FORMAT+
    4129
  • Variable +C-GET-FORMAT-INFO+
    4136
  • Variable +C-GET-FORMAT-MAJOR-COUNT+
    4144
  • Variable +C-GET-FORMAT-MAJOR+
    4145
  • Variable +C-GET-FORMAT-SUBTYPE-COUNT+
    4146
  • Variable +C-GET-FORMAT-SUBTYPE+
    4147
  • Variable +C-CALC-SIGNAL-MAX+
    4160
  • Variable +C-CALC-NORM-SIGNAL-MAX+
    4161
  • Variable +C-CALC-MAX-ALL-CHANNELS+
    4162
  • Variable +C-CALC-NORM-MAX-ALL-CHANNELS+
    4163
  • Variable +C-GET-SIGNAL-MAX+
    4164
  • Variable +C-GET-MAX-ALL-CHANNELS+
    4165
  • Variable +C-SET-ADD-PEAK-CHUNK+
    4176
  • Variable +C-SET-ADD-HEADER-PAD-CHUNK+
    4177
  • Variable +C-UPDATE-HEADER-NOW+
    4192
  • Variable +C-SET-UPDATE-HEADER-AUTO+
    4193
  • Variable +C-FILE-TRUNCATE+
    4224
  • Variable +C-SET-RAW-START-OFFSET+
    4240
  • Variable +C-SET-DITHER-ON-WRITE+
    4256
  • Variable +C-SET-DITHER-ON-READ+
    4257
  • Variable +C-GET-DITHER-INFO-COUNT+
    4258
  • Variable +C-GET-DITHER-INFO+
    4259
  • Variable +C-GET-EMBED-FILE-INFO+
    4272
  • Variable +C-SET-CLIPPING+
    4288
  • Variable +C-GET-CLIPPING+
    4289
  • Variable +C-GET-CUE-COUNT+
    4301
  • Variable +C-GET-CUE+
    4302
  • Variable +C-SET-CUE+
    4303
  • Variable +C-GET-INSTRUMENT+
    4304
  • Variable +C-SET-INSTRUMENT+
    4305
  • Variable +C-GET-LOOP-INFO+
    4320
  • Variable +C-GET-BROADCAST-INFO+
    4336
  • Variable +C-SET-BROADCAST-INFO+
    4337
  • Variable +C-GET-CHANNEL-MAP-INFO+
    4352
  • Variable +C-SET-CHANNEL-MAP-INFO+
    4353
  • Variable +C-RAW-DATA-NEEDS-ENDSWAP+
    4368
  • Variable +C-WAVEX-SET-AMBISONIC+
    4608
  • Variable +C-WAVEX-GET-AMBISONIC+
    4609
  • Variable +C-RF64-AUTO-DOWNGRADE+
    4624
  • Variable +C-SET-VBR-ENCODING-QUALITY+
    4864
  • Variable +C-SET-COMPRESSION-LEVEL+
    4865
  • Variable +C-SET-CART-INFO+
    5120
  • Variable +C-GET-CART-INFO+
    5121
  • Variable +C-TEST-IEEE-FLOAT-REPLACE+
    24577
  • Variable +C-SET-ADD-DITHER-ON-WRITE+
    4208
  • Variable +C-SET-ADD-DITHER-ON-READ+
    4209
  • Variable +STR-TITLE+
    1
  • Variable +STR-COPYRIGHT+
    2
  • Variable +STR-SOFTWARE+
    3
  • Variable +STR-ARTIST+
    4
  • Variable +STR-COMMENT+
    5
  • Variable +STR-DATE+
    6
  • Variable +STR-ALBUM+
    7
  • Variable +STR-LICENSE+
    8
  • Variable +STR-TRACKNUMBER+
    9
  • Variable +STR-GENRE+
    16
  • Variable +FALSE+
    0
  • Variable +TRUE+
    1
  • Variable +M-READ+
    16
  • Variable +M-WRITE+
    32
  • Variable +M-RDWR+
    48
  • Variable +AMBISONIC-NONE+
    64
  • Variable +AMBISONIC-B-FORMAT+
    65
  • Variable +ERR-NO-ERROR+
    0
  • Variable +ERR-UNRECOGNISED-FORMAT+
    1
  • Variable +ERR-SYSTEM+
    2
  • Variable +ERR-MALFORMED-FILE+
    3
  • Variable +ERR-UNSUPPORTED-ENCODING+
    4
  • Variable +CHANNEL-MAP-INVALID+
    0
  • Variable +CHANNEL-MAP-MONO+
    1
  • Variable +CHANNEL-MAP-LEFT+
    2
  • Variable +CHANNEL-MAP-RIGHT+
    3
  • Variable +CHANNEL-MAP-CENTER+
    4
  • Variable +CHANNEL-MAP-FRONT-LEFT+
    5
  • Variable +CHANNEL-MAP-FRONT-RIGHT+
    6
  • Variable +CHANNEL-MAP-FRONT-CENTER+
    7
  • Variable +CHANNEL-MAP-REAR-CENTER+
    8
  • Variable +CHANNEL-MAP-REAR-LEFT+
    9
  • Variable +CHANNEL-MAP-REAR-RIGHT+
    10
  • Variable +CHANNEL-MAP-LFE+
    11
  • Variable +CHANNEL-MAP-FRONT-LEFT-OF-CENTER+
    12
  • Variable +CHANNEL-MAP-FRONT-RIGHT-OF-CENTER+
    13
  • Variable +CHANNEL-MAP-SIDE-LEFT+
    14
  • Variable +CHANNEL-MAP-SIDE-RIGHT+
    15
  • Variable +CHANNEL-MAP-TOP-CENTER+
    16
  • Variable +CHANNEL-MAP-TOP-FRONT-LEFT+
    17
  • Variable +CHANNEL-MAP-TOP-FRONT-RIGHT+
    18
  • Variable +CHANNEL-MAP-TOP-FRONT-CENTER+
    19
  • Variable +CHANNEL-MAP-TOP-REAR-LEFT+
    20
  • Variable +CHANNEL-MAP-TOP-REAR-RIGHT+
    21
  • Variable +CHANNEL-MAP-TOP-REAR-CENTER+
    22
  • Variable +CHANNEL-MAP-AMBISONIC-B-W+
    23
  • Variable +CHANNEL-MAP-AMBISONIC-B-X+
    24
  • Variable +CHANNEL-MAP-AMBISONIC-B-Y+
    25
  • Variable +CHANNEL-MAP-AMBISONIC-B-Z+
    26
  • Variable +CHANNEL-MAP-MAX+
    27
  • Variable +D-DEFAULT-LEVEL+
    0
  • Variable +D-CUSTOM-LEVEL+
    1073741824
  • Variable +D-NO-DITHER+
    500
  • Variable +D-WHITE+
    501
  • Variable +D-TRIANGULAR-PDF+
    502
  • Variable +LOOP-NONE+
    800
  • Variable +LOOP-FORWARD+
    801
  • Variable +LOOP-BACKWARD+
    802
  • Variable +LOOP-ALTERNATING+
    803
  • Variable +SEEK-SET+
    0
  • Variable +SEEK-CUR+
    1
  • Variable +SEEK-END+
    2
  • Variable +SNDFILE-H+
    nil
  • Variable +STR-FIRST+
    1
  • Variable +SNDFILE-1+
    nil
  • Variable +STR-LAST+
    16
  • Variable +COUNT-MAX+
    9223372036854775807
  • Function OPEN (path mode sfinfo)
  • Function OPEN-FD (fd mode sfinfo close-desc)
  • Function OPEN-VIRTUAL (sfvirtual mode sfinfo user-data)
  • Function ERROR (sndfile)
  • Function STRERROR (sndfile)
  • Function ERROR-NUMBER (errnum)
  • Function PERROR (sndfile)
  • Function ERROR-STR (sndfile str len)
  • Function COMMAND (sndfile command data datasize)
  • Function FORMAT-CHECK (info)
  • Function SEEK (sndfile frames whence)
  • Function SET-STRING (sndfile str-type str)
  • Function GET-STRING (sndfile str-type)
  • Function VERSION-STRING
  • Function CURRENT-BYTERATE (sndfile)
  • Function READ-RAW (sndfile ptr bytes)
  • Function WRITE-RAW (sndfile ptr bytes)
  • Function READF-SHORT (sndfile ptr frames)
  • Function WRITEF-SHORT (sndfile ptr frames)
  • Function READF-INT (sndfile ptr frames)
  • Function WRITEF-INT (sndfile ptr frames)
  • Function READF-FLOAT (sndfile ptr frames)
  • Function WRITEF-FLOAT (sndfile ptr frames)
  • Function READF-DOUBLE (sndfile ptr frames)
  • Function WRITEF-DOUBLE (sndfile ptr frames)
  • Function READ-SHORT (sndfile ptr items)
  • Function WRITE-SHORT (sndfile ptr items)
  • Function READ-INT (sndfile ptr items)
  • Function WRITE-INT (sndfile ptr items)
  • Function READ-FLOAT (sndfile ptr items)
  • Function WRITE-FLOAT (sndfile ptr items)
  • Function READ-DOUBLE (sndfile ptr items)
  • Function WRITE-DOUBLE (sndfile ptr items)
  • Function CLOSE (sndfile)
  • Function WRITE-SYNC (sndfile)
  • Function SET-CHUNK (sndfile chunk-info)
  • Function GET-CHUNK-ITERATOR (sndfile chunk-info)
  • Function NEXT-CHUNK-ITERATOR (iterator)
  • Function GET-CHUNK-SIZE (it chunk-info)
  • Function GET-CHUNK-DATA (it chunk-info)
  • Function DUMP-CLAW-C-WRAPPER (library-path)

SNDFILE

  • Function SOUND-SAMPLE-RATE (instance)
  • Function SOUND-CHANNELS (instance)
  • Macro WITH-OPEN-SOUND-FILE ((file path) &body body)
  • Function READ-SHORT-SAMPLES-INTO-ARRAY (file)
  • Macro WITH-SOUND-FILE-FROM-STREAM ((file stream) &body body)
  • Function WRITE-SHORT-SAMPLES-INTO-STREAM (stream samples &key (format :flac) (channels 2) (sample-rate 48000))