Is it possible to output Core Audio data in wav format?

I used AudioService

Created by Atsushi Jike

Changing the underline of the picture to the format "kAudioFileWAVEType" causes the queue to throw a fatal error: (refer to photo 2)

  1. For this, the setting values ​​in the photo must be changed.
  2. There is a setting other than the above value.

Or any other opinion would be great. Please suggest a way to solve this problem or any reference material.