summaryrefslogtreecommitdiff
path: root/AudioDevice.cpp
blob: a557aa66e58ff4942053cf92b14b1079d46e2334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "AudioDevice.hpp"

#include <QMetaType>

namespace
{
  struct init
  {
    init ()
    {
      qRegisterMetaType<AudioDevice::Channel> ("AudioDevice::Channel");
    }
  } static_initializer;
}

bool AudioDevice::initialize (OpenMode mode, Channel channel)
{
  m_channel = channel;

  // open and ensure we are unbuffered if possible
  return QIODevice::open (mode | QIODevice::Unbuffered);
}