Skip to content

Commit 3f85572

Browse files
authored
Merge pull request #8171 from artificiel/stdaudioex
std:: for audioBufferExample
2 parents 4da8b9a + 943df1e commit 3f85572

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • examples/sound/soundBufferExample/src

examples/sound/soundBufferExample/src/ofApp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void ofApp::update(){
2424
// "lastBuffer" is shared between update() and audioOut(), which are called
2525
// on two different threads. This lock makes sure we don't use lastBuffer
2626
// from both threads simultaneously (see the corresponding lock in audioOut())
27-
unique_lock<mutex> lock(audioMutex);
27+
std::unique_lock<std::mutex> lock(audioMutex);
2828

2929
// this loop is building up a polyline representing the audio contained in
3030
// the left channel of the buffer
@@ -92,7 +92,7 @@ void ofApp::audioOut(ofSoundBuffer &outBuffer) {
9292
pulsePhase += pulsePhaseStep;
9393
}
9494

95-
unique_lock<mutex> lock(audioMutex);
95+
std::unique_lock<std::mutex> lock(audioMutex);
9696
lastBuffer = outBuffer;
9797
}
9898

0 commit comments

Comments
 (0)