File: Push2-Display.cpp

package info (click to toggle)
bespokesynth 1.3.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 44,592 kB
  • sloc: cpp: 117,136; ansic: 18,752; python: 593; xml: 74; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "Push2-Display.h"

namespace ableton {

Push2Display *Push2Display::create()
{
#if BESPOKE_PUSH2_SUPPORT
  return new Push2Display;
#else
  return nullptr;
#endif
}

NBase::Result Push2Display::Init()
{
#if BESPOKE_PUSH2_SUPPORT
  return communicator_.Init(dataSource_);
#else
  return {""}; // unreachable unless this is nullptr
#endif
}

} // namespace ableton