Sign in

王通 / jtt1078-video-server · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • jtt1078-video-server
  • ..
  • codec
  • SilenceCodec.java
  • Init
      11a60adb
    王通 authored
    2024-10-21 09:59:02 +0800  
    Browse Code »
SilenceCodec.java 378 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package cn.org.hentai.jtt1078.codec;

import java.util.Arrays;

/**
 * Created by houcheng on 2019-12-11.
 */
public class SilenceCodec extends AudioCodec
{
    static final byte[] BLANK = new byte[0];

    @Override
    public byte[] toPCM(byte[] data)
    {
        return BLANK;
    }

    @Override
    public byte[] fromPCM(byte[] data)
    {
        return BLANK;
    }
}