Skip to content

Commit

Permalink
Add some missing juce:: prefixing
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed May 19, 2020
1 parent 130829a commit affd4b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions include/Qt/AudioPlaybackThread.h
Expand Up @@ -75,7 +75,7 @@ namespace openshot
static AudioDeviceManagerSingleton * Instance();

/// Public device manager property
AudioDeviceManager audioDeviceManager;
juce::AudioDeviceManager audioDeviceManager;

/// Close audio device
void CloseAudioDevice();
Expand All @@ -86,9 +86,9 @@ namespace openshot
*/
class AudioPlaybackThread : juce::Thread
{
AudioSourcePlayer player;
AudioTransportSource transport;
MixerAudioSource mixer;
juce::AudioSourcePlayer player;
juce::AudioTransportSource transport;
juce::MixerAudioSource mixer;
AudioReaderSource *source;
double sampleRate;
int numChannels;
Expand Down
7 changes: 4 additions & 3 deletions src/Frame.cpp
Expand Up @@ -829,7 +829,7 @@ void Frame::AddImage(std::shared_ptr<QImage> new_image, bool only_odd_lines)
if (ret) {
return;
}

// Get the frame's image
const GenericScopedLock<juce::CriticalSection> lock(addingImageSection);
#pragma omp critical (AddImage)
Expand Down Expand Up @@ -979,7 +979,8 @@ void Frame::Play()
return;

juce::AudioDeviceManager deviceManager;
String error = deviceManager.initialise (0, /* number of input channels */
juce::String error = deviceManager.initialise (
0, /* number of input channels */
2, /* number of output channels */
0, /* no XML settings.. */
true /* select default device on failure */);
Expand All @@ -1001,7 +1002,7 @@ void Frame::Play()
// Start thread
my_thread.startThread();

AudioTransportSource transport1;
juce::AudioTransportSource transport1;
transport1.setSource (my_source.get(),
5000, // tells it to buffer this many samples ahead
&my_thread,
Expand Down

0 comments on commit affd4b2

Please sign in to comment.