MCPcopy Create free account
hub / github.com/audacity/audacity / GetSampleFormatStr

Function GetSampleFormatStr

libraries/lib-math/SampleFormat.cpp:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58TranslatableString GetSampleFormatStr(sampleFormat format)
59{
60 switch(format) {
61 case int16Sample:
62 /* i18n-hint: Audio data bit depth (precision): 16-bit integers */
63 return XO("16-bit PCM");
64 case int24Sample:
65 /* i18n-hint: Audio data bit depth (precision): 24-bit integers */
66 return XO("24-bit PCM");
67 case floatSample:
68 /* i18n-hint: Audio data bit depth (precision): 32-bit floating point */
69 return XO("32-bit float");
70 }
71 return XO("Unknown format"); // compiler food
72}
73
74// TODO: Risky? Assumes 0.0f is represented by 0x00000000;
75void ClearSamples(samplePtr dst, sampleFormat format,

Callers 3

PasteMethod · 0.85
OnFormatChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected