Home > other >  AAC (adts) turn PCM
AAC (adts) turn PCM

Time:12-02

Development 1078 the following problems at present, terminal collection up for AAC audio format (with ADTS head), however the internal unity need to PCM format
Now need to convert AAC to PCM,
Currently used jaad - 0.8.4. Jar, third-party packages for transcoding, enrichment code is as follows:
 
Final byte [] decoderSpecificInfo=new byte [] {(byte) (0 x15 & amp; 0 XFF), (byte) (0 x88 & amp; 0 XFF)};
Final Decoder dec=new Decoder (decoderSpecificInfo);
byte[] frame=HexStringUtil.HexString2Bytes( "012434204c24315904c280b0dcdddc4bcd52a045402010b0673863abf7ec4b4d4d49c419d5fa3002d55b3c4b7209fb9b4762dd1116a41516108ca26f554885b0dd271ad08e7350052f0ac3023ba2519d0f746f2ea90c7824458800e9f1ef950a544106f9e63204c1002484efcf9e7bfd0ad7391c9e641ba9f0032e31b10407409ab5441839c9f3a62bb7852ae72b2dc0df1d7ec6b844026515c277ca8167bea6aa72bc7bd2cb1e788b688cc84f3cc6ea3b1654efda0e4ce19d310208499b71c76391f7208840f22cca7984e5ced060927a7497a27582d837dbb490a73b5bb30f59c51765cfbb47423bb2d8282f198a813122b9aa95d40211d7cf4ddded2c58a070113942aadd38130918c018000970");
SampleBuffer buf=new SampleBuffer ();
Dec. DecodeFrame (frame, buf);
Byte [] PCM=buf. GetData ();
System. The out. Println (" len="+ PCM. Length +", PCM code="+ HexStringUtil. BytesToHexString (PCM, false));

  • Related