AACencoder vs SBCencoder encoder.begin difference #740
-
i was gong through this old example of AACencoder , i notice one thing that you didnot feed sampling bits or sampling frequency to AACencoder , while to SBC encoder we must feed these data to encoder . why is this difference ? Also their is no information what is the sampling rate and bits of a2dp data ,below just read data stream and write to encoder file , // Get the audio data from A2DP to save it in a file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
All encoders need to get the AudioInfo as you can see in the documentation. This is usually done via the EncodedAudioStream by calling the begin(AudioInfo) method! This is also nicely explained in the Wiki |
Beta Was this translation helpful? Give feedback.
All encoders need to get the AudioInfo as you can see in the documentation. This is usually done via the EncodedAudioStream by calling the begin(AudioInfo) method!
This is also nicely explained in the Wiki