I woud like to programatically create and save to disk a dummy audio file to use in unit tests involving AVAudioPlayer.
What’s the simplest way to do this in iOS?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A colleague suggested an alternative solution: create the smallest audio file possible with Audacitiy, get its bytes, and copy them into the code.
This is the result: