Skip to content

Commit

Permalink
fix(AudioMixerInputCommand): sign in deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Jul 17, 2019
1 parent e5812d9 commit d9a3865
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/Audio/AudioMixerInputCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export class AudioMixerInputUpdateCommand extends AbstractCommand {
deserialize (rawCommand: Buffer) {
this.index = rawCommand.readUInt16BE(0)
this.properties = {
sourceType: rawCommand.readInt8(2),
portType: rawCommand.readInt8(7),
mixOption: rawCommand.readInt8(8),
sourceType: rawCommand.readUInt8(2),
portType: rawCommand.readUInt8(7),
mixOption: rawCommand.readUInt8(8),
gain: Util.UInt16BEToDecibel(rawCommand.readUInt16BE(10)),
balance: Util.IntToBalance(rawCommand.readInt16BE(12))
}
Expand Down

0 comments on commit d9a3865

Please sign in to comment.