Skip to content

Commit ccabc9f

Browse files
committed
fix actions
1 parent 71239ca commit ccabc9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
#define GLM_FORCE_CTOR_INIT
66
#include <glm/gtc/constants.hpp>
77
#include <glm/ext/scalar_common.hpp>
8+
89
#include "ofLog.h"
910
#include "ofEvents.h"
11+
#include "ofUtils.h"
1012

1113
#if defined (TARGET_OF_IOS) || defined (TARGET_OSX)
1214
#include <OpenAL/al.h>
@@ -455,7 +457,6 @@ bool ofOpenALSoundPlayer::stream(const fs::path & fileName, std::vector<short> &
455457
#ifdef OF_USING_MPG123
456458
auto ext { ofToLower(ofPathToString(fileName.extension())) };
457459
if (ext == ".mp3" || mp3streamf) {
458-
// if (fileName.extension() == fs::path{".mp3"} || fileName.extension() == fs::path{".MP3"} || mp3streamf) {
459460
if(!mpg123Stream(fileName,buffer,fftAuxBuffer)) return false;
460461
} else
461462
#endif
@@ -473,7 +474,7 @@ bool ofOpenALSoundPlayer::stream(const fs::path & fileName, std::vector<short> &
473474
return true;
474475
}
475476

476-
bool ofOpenALSoundPlayer::readFile(const fs::path& fileName, std::vector<short> & buffer){
477+
bool ofOpenALSoundPlayer::readFile(const fs::path & fileName, std::vector<short> & buffer){
477478
#ifdef OF_USING_MPG123
478479
auto ext { ofToLower(ofPathToString(fileName.extension())) };
479480
if (ext == ".mp3") {

0 commit comments

Comments
 (0)