Skip to content

Commit 38dbef0

Browse files
committed
fixes
1 parent c646c66 commit 38dbef0

17 files changed

+28
-24
lines changed

libs/openFrameworks/app/ofAppEGLWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "ofAppEGLWindow.h"
22

3+
#include "ofFileUtils.h"
34
#include "ofGraphics.h" // used in runAppViaInfiniteLoop()
45
#include "ofAppRunner.h"
56
#include "ofUtils.h"
6-
#include "ofFileUtils.h"
77
#include "ofGLProgrammableRenderer.h"
88
#include "ofGLRenderer.h"
99
#include "ofVectorMath.h"

libs/openFrameworks/gl/ofShader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "ofFileUtils.h"
12
#include "ofBufferObject.h"
23
#include "ofCubeMap.h"
34
// #include "ofFileUtils.h"

libs/openFrameworks/sound/ofAVEngineSoundPlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
namespace of { namespace filesystem { class path; } }
10+
//namespace of { namespace filesystem { class path; } }
1111

1212
#ifdef OF_SOUND_PLAYER_AV_ENGINE
1313

libs/openFrameworks/sound/ofFmodSoundPlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ void ofFmodSoundPlayer::closeFmod(){
177177
}
178178

179179
//------------------------------------------------------------
180-
bool ofFmodSoundPlayer::load(const of::filesystem::path& _fileName, bool stream){
180+
bool ofFmodSoundPlayer::load(const of::filesystem::path & _fileName, bool stream){
181181

182182
auto fileName = ofToDataPath(_fileName);
183183

libs/openFrameworks/sound/ofFmodSoundPlayer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#pragma once
22

3+
#include "ofSoundBaseTypes.h"
34
// MARK: this is to define the constant OF_SOUND_PLAYER_FMOD
45
#include "ofConstants.h"
56

67
#ifdef OF_SOUND_PLAYER_FMOD
78

8-
#include "ofSoundBaseTypes.h"
99

1010

1111
extern "C" {
@@ -42,7 +42,7 @@ class ofFmodSoundPlayer : public ofBaseSoundPlayer {
4242
ofFmodSoundPlayer();
4343
virtual ~ofFmodSoundPlayer();
4444

45-
bool load(const of::filesystem::path& fileName, bool stream = false);
45+
bool load(const of::filesystem::path & fileName, bool stream = false);
4646
void unload();
4747
void play();
4848
void stop();

libs/openFrameworks/sound/ofMediaFoundationSoundPlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class ofMediaFoundationSoundPlayer : public ofBaseSoundPlayer, public of::MFSour
116116
ofMediaFoundationSoundPlayer();
117117
~ofMediaFoundationSoundPlayer();
118118

119-
bool load(const of::filesystem::path& fileName, bool stream = false) override;
119+
bool load(const of::filesystem::path & fileName, bool stream = false) override;
120120
void unload() override;
121121

122122
void play() override;

libs/openFrameworks/sound/ofOpenALSoundPlayer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
// MARK: Review later
4-
#include "ofConstants.h"
4+
//#include "ofConstants.h"
55

66
#ifdef OF_SOUND_PLAYER_OPENAL
77
#include "ofSoundBaseTypes.h"
@@ -47,7 +47,7 @@ class ofOpenALSoundPlayer : public ofBaseSoundPlayer, public ofThread {
4747
ofOpenALSoundPlayer();
4848
virtual ~ofOpenALSoundPlayer();
4949

50-
bool load(const of::filesystem::path& fileName, bool stream = false);
50+
bool load(const of::filesystem::path & fileName, bool stream = false);
5151
void unload();
5252
void play();
5353
void stop();

libs/openFrameworks/sound/ofSoundBaseTypes.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//namespace of { namespace filesystem { class path; } }
66

77
#include <functional>
8+
#include <string>
89

910
class ofSoundBuffer;
1011

@@ -88,7 +89,7 @@ class ofSoundDevice {
8889

8990
/// \brief Descriptive name for the device
9091
/// This is the same string that ofSoundStream::getMatchingDevices() will be looking for
91-
std::string name{"Unknown"};
92+
std::string name { "Unknown" };
9293

9394
/// \brief The device's unique ID (to be used in ofSoundStream::setDeviceID() )
9495
int deviceID = -1;
@@ -178,8 +179,8 @@ class ofBaseSoundPlayer {
178179
ofBaseSoundPlayer(){};
179180
virtual ~ofBaseSoundPlayer(){};
180181

181-
virtual bool load(const of::filesystem::path & fileName, bool stream = false)=0;
182-
virtual void unload()=0;
182+
virtual bool load(const of::filesystem::path & fileName, bool stream = false) = 0;
183+
virtual void unload() = 0;
183184
virtual void play() = 0;
184185
virtual void stop() = 0;
185186

libs/openFrameworks/sound/ofSoundPlayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ std::shared_ptr<ofBaseSoundPlayer> ofSoundPlayer::getPlayer(){
121121
}
122122

123123
//--------------------------------------------------------------------
124-
bool ofSoundPlayer::load(const of::filesystem::path& fileName, bool stream){
124+
bool ofSoundPlayer::load(const of::filesystem::path & fileName, bool stream){
125125
if( player ){
126126
return player->load(fileName, stream);
127127
}
128128
return false;
129129
}
130130

131131
//--------------------------------------------------------------------
132-
bool ofSoundPlayer::loadSound(std::string fileName, bool stream){
132+
bool ofSoundPlayer::loadSound(const of::filesystem::path & fileName, bool stream){
133133
return load(fileName,stream);
134134
}
135135

libs/openFrameworks/sound/ofSoundPlayer.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "ofSoundBaseTypes.h"
44
// MARK: ofConstants FS
55
//#include "ofConstants.h"
6-
namespace of { namespace filesystem { class path; } }
6+
//namespace of { namespace filesystem { class path; } }
77

88

99
/// \brief Stops all active sound players on FMOD-based systems (windows, osx).
@@ -49,12 +49,14 @@ class ofSoundPlayer : public ofBaseSoundPlayer {
4949
///
5050
/// \param fileName Path to the sound file, relative to your app's data folder.
5151
/// \param stream set "true" to enable streaming from disk (for large files).
52-
bool load(const of::filesystem::path& fileName, bool stream = false);
52+
bool load(const of::filesystem::path & fileName, bool stream = false);
53+
5354
[[deprecated("Use load")]]
54-
bool loadSound(std::string fileName, bool stream = false);
55+
bool loadSound(const of::filesystem::path & fileName, bool stream = false);
5556

5657
/// \brief Stops and unloads the current sound.
5758
void unload();
59+
5860
[[deprecated("Use unload")]]
5961
void unloadSound();
6062

@@ -107,6 +109,7 @@ class ofSoundPlayer : public ofBaseSoundPlayer {
107109
/// \brief Gets current playback state.
108110
/// \return true if the player is currently playing a file.
109111
bool isPlaying() const;
112+
110113
[[deprecated("Use isPlaying")]]
111114
bool getIsPlaying() const;
112115

0 commit comments

Comments
 (0)