UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

30 lines (29 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PcmAudioConfiguration = void 0; const Mapper_1 = require("../common/Mapper"); const AudioConfiguration_1 = require("./AudioConfiguration"); const CodecConfigType_1 = require("./CodecConfigType"); /** * @export * @class PcmAudioConfiguration */ class PcmAudioConfiguration extends AudioConfiguration_1.default { constructor(obj) { super(obj); /** * Discriminator property for CodecConfiguration * @type {string} * @memberof PcmAudioConfiguration */ this.type = CodecConfigType_1.default.PCM; if (!obj) { return; } this.presetConfiguration = (0, Mapper_1.map)(obj.presetConfiguration); this.channelLayout = (0, Mapper_1.map)(obj.channelLayout); this.sampleFormat = (0, Mapper_1.map)(obj.sampleFormat); } } exports.PcmAudioConfiguration = PcmAudioConfiguration; exports.default = PcmAudioConfiguration;