Skip to content

Commit c0fbb37

Browse files
committed
add header for SoundBuffer
1 parent 3b23688 commit c0fbb37

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

source/Libs Tracker/SoundBuffer.cpp

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
namespace SoundBuffer {
1+
#include "SoundBuffer.h"
22

3-
class trkSoundBuffer {
4-
public:
5-
int GetSizeInBytes(int param_1);
6-
int GetFrequency(int param_1);
7-
int GetData(int param_1);
8-
};
3+
namespace SoundBuffer {
94

105
int trkSoundBuffer::GetSizeInBytes(int param_1) {
116
return *(int *)(param_1 + 0x10);

source/Libs Tracker/SoundBuffer.h

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#ifndef SOUNDBUFFER_H
2+
#define SOUNDBUFFER_H
3+
4+
namespace SoundBuffer {
5+
6+
class trkSoundBuffer {
7+
public:
8+
// Returns the size of the sound buffer in bytes
9+
int GetSizeInBytes(int param_1);
10+
11+
// Returns the frequency of the sound buffer
12+
int GetFrequency(int param_1);
13+
14+
// Returns the data associated with the sound buffer
15+
int GetData(int param_1);
16+
};
17+
18+
} // namespace SoundBuffer
19+
20+
#endif // SOUNDBUFFER_H

0 commit comments

Comments
 (0)