1 unstable release

0.0.1 Mar 14, 2021

#29 in #pcm

BSL-1.0 license

40KB
812 lines

raw_audio

Crate for encoding / decoding raw audio into fon data structures.


lib.rs:

Crate for loading various RAW audio formats into fon types (*.pcm file extension should be preferred to *.raw, as *.raw can be used for video as well). RAW audio formats are always interleaved.

Channel order is assumed to follow the FLAC channel order (following SMPTE/ITU-R recommendations):

  • 1 Channel: Mono (Mono)
  • 2 Channels: Stereo (Left, Right)
  • 3 Channels: Surround 3.0 (Left, Right, Center)
  • 4 Channels: Surround 4.0 (F.Left, F.Right, B.Left, B.Right)
  • 5 Channels: Surround 5.0 (F.Left, F.Right, F.Center, B.Left, B.Right)
  • 6 Channels: Surround 5.1 (F.Left, F.Right, F.Center, LFE, B.Left, B.Right)
  • 7 Channels: Surround 6.1 (F.Left, F.Right, F.Center, LFE, B.Center, S.Left, S.Right)
  • 8 Channels: Surround 7.1 (F.Left, F.Right, F.Center, LFE, B.Left, B.Right, S.Left, S.Right)

For supported RAW Sample Formats see the pcm module.

Dependencies

~120KB