Skip to content

Commit

Permalink
Windows support: Remove unistd.h from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Nov 12, 2023
1 parent 486caaf commit 1706e26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/cpp/buffer-save-example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
* to a buffer, and saving the output to disk as a .wav file.
*-----------------------------------------------------------------------*/

#include <chrono>
#include <iostream>
#include <signalflow/signalflow.h>
#include <thread>

using namespace signalflow;

Expand Down Expand Up @@ -44,7 +46,7 @@ int main()
* thread), then save to disk.
*-----------------------------------------------------------------------*/
std::cout << "Starting recording..." << std::endl;
usleep(5e6);
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
std::cout << "Finished recording." << std::endl;

buffer->save("out.wav");
Expand Down

0 comments on commit 1706e26

Please sign in to comment.