Skip to content

Commit 6af2bd1

Browse files
committed
adds PCM20Sample type alias
1 parent 5ce80a8 commit 6af2bd1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/SampledSignals.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export samplerate, samplerate!, nchannels, nframes, domain, channelptr, blocksiz
1414
export mix!, mix, mono!, mono
1515
# re-export the useful units
1616
export ns, ms, µs, s, Hz, kHz, MHz, GHz, THz
17-
export PCM8Sample, PCM16Sample, PCM24Sample, PCM32Sample, PCM64Sample
17+
export PCM8Sample, PCM16Sample, PCM20Sample, PCM24Sample, PCM32Sample, PCM64Sample
1818

1919
using SIUnits
2020
using SIUnits.ShortUnits: ns, ms, µs, s, Hz, kHz, MHz, GHz, THz
@@ -29,7 +29,8 @@ const SecondsQuantity{T} = SIUnits.SIQuantity{T,0,0,1,0,0,0,0,0,0}
2929

3030
const PCM8Sample = Fixed{Int8, 7}
3131
const PCM16Sample = Fixed{Int16, 15}
32-
const PCM24Sample = Fixed{Int32, 23} # assume right-aligned data
32+
const PCM20Sample = Fixed{Int32, 19}
33+
const PCM24Sample = Fixed{Int32, 23}
3334
const PCM32Sample = Fixed{Int32, 31}
3435
const PCM64Sample = Fixed{Int64, 63}
3536

0 commit comments

Comments
 (0)