audioencoder: Add function to set in-stream headers