Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i've been looking for months now to find out how to record a live audio stream using swift ?
please give me a hint a small code to start .
regards

What I have tried:

This code is in java i want the same in Swift please
while ((bufferLength = inputStream.read(buffer)) > 0
                                       && Recording) {

                                   fileOutputStream.write(buffer, 0,
                                           bufferLength);
                                   TotalDownloaded += bufferLength;

                               }
                               inputStream.close();
                               fileOutputStream.close();
Posted
Updated 19-Feb-18 5:31am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900