go-fdkaac icon indicating copy to clipboard operation
go-fdkaac copied to clipboard

can't decode aac successfully

Open jackleibest opened this issue 5 years ago • 2 comments

hi, this is a nice repo, I just use the ExampleAacDecoder_RAW in the example_test.go, so I wanna print the PCM by 'fmt.Println(pcm)', however I got the following result, seems the PCM is full of zero, it is so weird, can you fix it? SampleRate: 44100 FrameSize: 1024 NumChannels: 2 AacSampleRate: 44100 Profile: 1 AudioObjectType: 2 ChannelConfig: 2 Bitrate: 31352 AacSamplesPerFrame: 1024 AacNumChannels: 2 ExtensionAudioObjectType: 0 ExtensionSamplingRate: 0 NumLostAccessUnits: 0 NumTotalBytes: 91 NumBadBytes: 0 NumTotalAccessUnits: 1 NumBadAccessUnits: 0 SampleBits: 16 PCM: 4096 PCM: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0......0000]

jackleibest avatar Aug 07 '20 03:08 jackleibest

I'm experiencing the same problem. Were you able to solve it?

mheers avatar Jan 18 '22 13:01 mheers

I tried use InitAdts.And the same problem image

CaptainNeil avatar Jun 15 '22 07:06 CaptainNeil