---
src/formats.c | 2 ++
src/sox.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/formats.c b/src/formats.c
index f3efe76..4bd4ea5 100644
--- a/src/formats.c
+++ b/src/formats.c
@@ -145,6 +145,7 @@ static sox_encodings_info_t const s_sox_encodings_info[] = {
{sox_encodings_lossy2, "CVSD" , "CVSD"},
{sox_encodings_lossy2, "LPC10" , "LPC10"},
{sox_encodings_lossy2, "Opus" , "Opus"},
+ {sox_encodings_none , "DSD" , "Direct Stream Digital"},
};
assert_static(array_length(s_sox_encodings_info) == SOX_ENCODINGS,
@@ -169,6 +170,7 @@ unsigned sox_precision(sox_encoding_t encoding, unsigned
bits_per_sample)
case SOX_ENCODING_ALAW: return bits_per_sample == 8? 13: 0;
case SOX_ENCODING_ULAW: return bits_per_sample == 8? 14: 0;
+ case SOX_ENCODING_DSD: return bits_per_sample;
case SOX_ENCODING_CL_ADPCM: return bits_per_sample? 8: 0;
case SOX_ENCODING_CL_ADPCM16: return bits_per_sample == 4? 13: 0;
diff --git a/src/sox.h b/src/sox.h
index 155742e..20339ab 100644
--- a/src/sox.h
+++ b/src/sox.h
@@ -594,6 +594,7 @@ typedef enum sox_encoding_t {
SOX_ENCODING_CVSD , /**< Continuously Variable Slope Delta modulation */
SOX_ENCODING_LPC10 , /**< Linear Predictive Coding */
SOX_ENCODING_OPUS , /**< Opus compression */
+ SOX_ENCODING_DSD , /**< Direct Stream Digital */
SOX_ENCODINGS /**< End of list marker */
} sox_encoding_t;
--
2.5.2
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
SoX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-devel