Output file format for SignalGenerator sample app in WWDC2019 Session 510 "What's New in AVAudioEngine"

I'm experimenting with the output file feature from the sample app SignalGenerator. I was able to output a test.wav file, but there's no duration, and I couldn't play the file with Quicktime or afplay in command line. What is the proper file format that can be accept by SignalGenerator? Below is a screenshot of test.wav file info.

The command line command and arguments are:

signal -signal triangle -duration 1.5 -output "Desktop/test.wav" -amplitude 0.7

signal being the shortcut I created to the executable file.

Thank you,

Peter

Answered by Petey888 in 681227022

I found the ".caf" file format works. The output test.caf can be played in Quicktime or afplay in command line.

Accepted Answer

I found the ".caf" file format works. The output test.caf can be played in Quicktime or afplay in command line.