LMMS
Loading...
Searching...
No Matches
Audio_Scope Class Reference

#include <Audio_Scope.h>

Public Types

typedef const char * error_t

Public Member Functions

error_t init (int width, int height)
error_t draw (const short *in, long count, double step=1.0)
 Audio_Scope ()
 ~Audio_Scope ()

Private Types

typedef unsigned char byte

Private Member Functions

void render (short const *in, long count, long step)

Private Attributes

SDL_Surface * screen
SDL_Surface * surface
bytebuf
int buf_size
int sample_shift
int low_y
int high_y
int v_offset

Member Typedef Documentation

◆ byte

typedef unsigned char Audio_Scope::byte
private

◆ error_t

typedef const char* Audio_Scope::error_t

Constructor & Destructor Documentation

◆ Audio_Scope()

Audio_Scope::Audio_Scope ( )

◆ ~Audio_Scope()

Audio_Scope::~Audio_Scope ( )

Member Function Documentation

◆ draw()

const char * Audio_Scope::draw ( const short * in,
long count,
double step = 1.0 )

◆ init()

const char * Audio_Scope::init ( int width,
int height )

◆ render()

void Audio_Scope::render ( short const * in,
long count,
long step )
private

Member Data Documentation

◆ buf

byte* Audio_Scope::buf
private

◆ buf_size

int Audio_Scope::buf_size
private

◆ high_y

int Audio_Scope::high_y
private

◆ low_y

int Audio_Scope::low_y
private

◆ sample_shift

int Audio_Scope::sample_shift
private

◆ screen

SDL_Surface* Audio_Scope::screen
private

◆ surface

SDL_Surface* Audio_Scope::surface
private

◆ v_offset

int Audio_Scope::v_offset
private

The documentation for this class was generated from the following files: