mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
20
Src/vlb/vlbout.h
Normal file
20
Src/vlb/vlbout.h
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user