Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::M2Device Class Referenceabstract

#include <m2device.h>

Inheritance diagram for ArdourSurface::M2Device:
[legend]

Public Member Functions

 M2Device ()
 
virtual ~M2Device ()
 
virtual void clear (bool splash=false)
 
virtual void read (hid_device *, M2Contols *)=0
 
virtual void write (hid_device *, M2Contols *)=0
 
virtual Cairo::RefPtr< Cairo::ImageSurface > surface ()=0
 

Public Attributes

PBD::Signal< bool()> vblank
 

Protected Member Functions

void bump_blink ()
 

Protected Attributes

uint32_t _splashcnt
 
unsigned int _blink_counter
 
float _blink_shade
 

Static Protected Attributes

static const uint32_t _splashtime = 25 * 3
 

Detailed Description

Abstraction for various variants:

  • NI Maschine Mikro
  • NI Maschine
  • NI Maschine Studio

Definition at line 39 of file m2device.h.

Constructor & Destructor Documentation

◆ M2Device()

ArdourSurface::M2Device::M2Device ( )
inline

Definition at line 42 of file m2device.h.

◆ ~M2Device()

virtual ArdourSurface::M2Device::~M2Device ( )
inlinevirtual

Definition at line 47 of file m2device.h.

Member Function Documentation

◆ bump_blink()

void ArdourSurface::M2Device::bump_blink ( )
inlineprotected

Definition at line 66 of file m2device.h.

◆ clear()

virtual void ArdourSurface::M2Device::clear ( bool  splash = false)
inlinevirtual

Reimplemented in ArdourSurface::Maschine2Mk2, and ArdourSurface::Maschine2Mikro.

Definition at line 49 of file m2device.h.

◆ read()

virtual void ArdourSurface::M2Device::read ( hid_device *  ,
M2Contols  
)
pure virtual

◆ surface()

virtual Cairo::RefPtr<Cairo::ImageSurface> ArdourSurface::M2Device::surface ( )
pure virtual

◆ write()

virtual void ArdourSurface::M2Device::write ( hid_device *  ,
M2Contols  
)
pure virtual

Member Data Documentation

◆ _blink_counter

unsigned int ArdourSurface::M2Device::_blink_counter
protected

Definition at line 73 of file m2device.h.

◆ _blink_shade

float ArdourSurface::M2Device::_blink_shade
protected

Definition at line 74 of file m2device.h.

◆ _splashcnt

uint32_t ArdourSurface::M2Device::_splashcnt
protected

Definition at line 71 of file m2device.h.

◆ _splashtime

const uint32_t ArdourSurface::M2Device::_splashtime = 25 * 3
staticprotected

Definition at line 72 of file m2device.h.

◆ vblank

PBD::Signal<bool()> ArdourSurface::M2Device::vblank

Definition at line 63 of file m2device.h.


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