Skip to content

Commit faa169f

Browse files
author
Hannes Barfuss
committedJan 19, 2022
Forgot header in last commit
1 parent 1dc05a9 commit faa169f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//
2+
// CompressedRingBuffer.hpp
3+
// SoundStageNative
4+
//
5+
// Created by hb on 19.01.22.
6+
//
7+
8+
#ifndef CompressedRingBuffer_hpp
9+
#define CompressedRingBuffer_hpp
10+
11+
#include "main.h"
12+
13+
typedef struct _CompressedRingBuffer
14+
{
15+
float* data;
16+
float* weights;
17+
int ptr;
18+
int n;
19+
} CompressedRingBuffer;
20+
21+
void CompressedRingBuffer_Read(float *dest, int n, int offset, float stride, CompressedRingBuffer *x);
22+
void CompressedRingBuffer_Write(float *src, int n, float stride, CompressedRingBuffer *x);
23+
CompressedRingBuffer *CompressedRingBuffer_New(int n);
24+
void CompressedRingBuffer_Free(CompressedRingBuffer *x);
25+
void CompressedRingBuffer_Print(CompressedRingBuffer *x);
26+
27+
#endif /* CompressedRingBuffer_hpp */

0 commit comments

Comments
 (0)
Please sign in to comment.