Skip to content

Commit 633ad6e

Browse files
committed
Sound Types Fix up issues with types in old deprecated functions
1 parent e4d3c40 commit 633ad6e

4 files changed

Lines changed: 3 additions & 68 deletions

File tree

addons/ofxAndroid/src/ofxAndroidSoundPlayer.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -482,19 +482,4 @@ void ofxAndroidSoundPlayer::audioOut(ofSoundBuffer &) const {
482482

483483
}
484484

485-
void ofxAndroidSoundPlayer::audioOut(float*, int, int) {
486-
487-
}
488-
489-
490-
void ofxAndroidSoundPlayer::audioIn(float*, int, int) {
491-
492-
}
493485

494-
void ofxAndroidSoundPlayer::audioIn(float*, int, int, int, unsigned long long) {
495-
496-
}
497-
498-
void ofxAndroidSoundPlayer::audioOut(float*, int, int, int, unsigned long long) {
499-
500-
}

addons/ofxAndroid/src/ofxAndroidSoundPlayer.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include "ofSoundBaseTypes.h"
44
#include <jni.h>
55

6+
class ofSoundBuffer;
7+
68
class ofxAndroidSoundPlayer: public ofBaseSoundPlayer{
79
public:
810
ofxAndroidSoundPlayer();
@@ -34,16 +36,6 @@ class ofxAndroidSoundPlayer: public ofBaseSoundPlayer{
3436
void audioIn(ofSoundBuffer&) const;
3537
void audioOut(ofSoundBuffer&) const;
3638

37-
38-
void audioIn(float*, int, int, int, unsigned long long);
39-
40-
void audioIn(float*, int, int);
41-
42-
void audioOut(float*, int, int);
43-
44-
void audioOut(float*, int, int, int, unsigned long long);
45-
46-
4739
private:
4840
jobject javaSoundPlayer;
4941
jclass javaClass;

libs/openFrameworks/sound/ofSoundBaseTypes.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,14 @@ std::ostream& operator << (std::ostream& os, const std::vector<ofSoundDevice>& d
3838
return os;
3939
}
4040

41-
#else
41+
#endif
4242

4343
void ofBaseSoundInput::audioIn(ofSoundBuffer &buffer) {
4444

4545
}
4646

47-
void ofBaseSoundInput::audioIn(float *input, int bufferSize, int nChannels, int deviceID,
48-
unsigned long long int tickCount) {
49-
50-
}
51-
52-
void ofBaseSoundInput::audioIn(float *input, int bufferSize, int nChannels) {
53-
54-
}
55-
5647
void ofBaseSoundOutput::audioOut(ofSoundBuffer &buffer) {
5748

5849
}
5950

60-
void ofBaseSoundOutput::audioOut(float *output, int bufferSize, int nChannels) {
61-
62-
}
63-
64-
void ofBaseSoundOutput::audioOut(float *output, int bufferSize, int nChannels, int deviceID,
65-
unsigned long long int tickCount) {
6651

67-
}
68-
69-
#endif

libs/openFrameworks/sound/ofSoundBaseTypes.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ class ofBaseSoundInput{
1414
/// \brief Receive an audio buffer.
1515
/// \param buffer An audio buffer.
1616
virtual void audioIn( ofSoundBuffer& buffer );
17-
18-
/// \deprecated This legacy method is deprecated and will be removed.
19-
/// Use void audioIn(ofSoundBuffer& buffer) instead.
20-
virtual void audioIn( float * input, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount );
21-
22-
/// \deprecated This legacy method is deprecated and will be removed.
23-
/// Use void audioIn(ofSoundBuffer& buffer) instead.
24-
virtual void audioIn( float * input, int bufferSize, int nChannels );
25-
26-
/// \deprecated This legacy method is deprecated and will be removed.
27-
/// Use void audioIn(ofSoundBuffer& buffer) instead.
28-
virtual void audioReceived( float * input, int bufferSize, int nChannels ){}
2917
};
3018

3119

@@ -38,18 +26,6 @@ class ofBaseSoundOutput{
3826
/// \brief Output an audio buffer.
3927
/// \param buffer An audio buffer.
4028
virtual void audioOut( ofSoundBuffer& buffer );
41-
42-
/// \deprecated This legacy method is deprecated and will be removed.
43-
/// Use void audioOut(ofSoundBuffer& buffer) instead.
44-
virtual void audioOut( float * output, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount );
45-
46-
/// \deprecated This legacy method is deprecated and will be removed.
47-
/// Use void audioOut(ofSoundBuffer& buffer) instead.
48-
virtual void audioOut( float * output, int bufferSize, int nChannels );
49-
50-
/// \deprecated This legacy method is deprecated and will be removed.
51-
/// Use void audioOut(ofSoundBuffer& buffer) instead.
52-
virtual void audioRequested( float * output, int bufferSize, int nChannels ){}
5329
};
5430

5531
/// \class ofSoundDevice

0 commit comments

Comments
 (0)