Home
last modified time | relevance | path

Searched refs:sampleWidth (Results 1 – 2 of 2) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sound/
DNRF52840_I2S.cs44 sampleWidth = 8; in Reset()
72 encoder = new PCMEncoder(sampleWidth, sampleFrequency, numberOfChannels, false); in Start()
84 … decoder = new PCMDecoder(sampleWidth, sampleFrequency, numberOfChannels, false, this); in Start()
142 var thisSample = sysbus.ReadDoubleWord(currentPointer + samples * sampleWidth / 8); in OutputFrames()
143 BitHelper.ClearBits(ref thisSample, (int)sampleWidth, (int)(32 - sampleWidth)); in OutputFrames()
161 … valueToStore |= decoder.GetSingleSample() << (int)(sampleWidth * (sampleOffset - 1)); in InputFrames()
266 sampleWidth = (uint)(8 * (1 << (int)value)); in SetSampleWidth()
267 samplesPerDoubleWord = 32 / sampleWidth; in SetSampleWidth()
273 if(sampleRatio < 2 * sampleWidth) in SetSampleFrequency()
278 … this.Log(LogLevel.Debug, "Set sample frequency to {0}Hz, {1}Bit", sampleFrequency, sampleWidth); in SetSampleFrequency()
[all …]
DLiteX_I2S.cs22 …protected LiteX_I2S(IMachine machine, DataFormat format, uint sampleWidth, uint samplingRate, uint… in LiteX_I2S() argument
37 this.sampleWidth = sampleWidth; in LiteX_I2S()
207 ….WithValueField(2, 6, FieldMode.Read, valueProviderCallback: _ => sampleWidth, name: "sample_width… in DefineRegisters()
218 private readonly uint sampleWidth; field in Antmicro.Renode.Peripherals.Sound.LiteX_I2S