Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit f2d940131e
16886 changed files with 4659320 additions and 2 deletions

20
Src/vlb/vlbout.h Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#define BUFSIZE 16384
#define OBUFSIZE 65536
#include "audio_io.h"
class VLBOut : public AudioIOControl {
public:
VLBOut() { size = pos = 0; }
virtual ~VLBOut() { }
virtual int IO( float **, int );
virtual int SetFormatInfo( AUDIO_FORMATINFO *info ) { format = *info; return AUDIO_ERROR_NONE; }
AUDIO_FORMATINFO GetFormatInfo() { return format; }
int BytesAvail() { return size; }
virtual void PullBytes( unsigned char *buf, int nbytes );
void Empty(){ size = 0; }
private:
unsigned char data[OBUFSIZE];
int size,pos;
AUDIO_FORMATINFO format;
};