// Copyright © 2020 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using CefSharp.Enums; namespace CefSharp.Structs { /// /// Structure representing the audio parameters for setting up the audio handler. /// public struct AudioParameters { /// /// Layout of the audio channels /// public ChannelLayout ChannelLayout { get; set; } /// /// Sample rate /// public int SampleRate { get; set; } /// /// Number of frames per buffer /// public int FramesPerBuffer { get; set; } /// /// Init with default values /// /// channel layout /// sample rate /// frames per buffer public AudioParameters(ChannelLayout channelLayout, int sampleRate, int framesPerBuffer) { ChannelLayout = channelLayout; SampleRate = sampleRate; FramesPerBuffer = framesPerBuffer; } } }