bestSampleEncodingForExtension

bestSampleEncodingForExtension#

csoundengine.csoundlib.bestSampleEncodingForExtension(ext)[source]#

Given an extension, return the best sample encoding.

Note

float64 is not considered necessary for holding sound information

Parameters:

ext (str) – the extension of the file will determine the format

Return type:

str

Returns:

a sample format of the form “pcmXX” or “floatXX”, where XX determines the bit rate (“pcm16”, “float32”, etc)

Extension

Sample Format

wav

float32

aif

float32

flac

pcm24