mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-09-24 15:54:12 +00:00
21 lines
571 B
C
21 lines
571 B
C
|
#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;
|
||
|
};
|