mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-19 10:32:02 -05:00
24 lines
398 B
C++
24 lines
398 B
C++
|
#include "AudioDevice.hpp"
|
||
|
|
||
|
#include <QMetaType>
|
||
|
|
||
|
namespace
|
||
|
{
|
||
|
struct init
|
||
|
{
|
||
|
init ()
|
||
|
{
|
||
|
qRegisterMetaType<AudioDevice::Channel> ("AudioDevice::Channel");
|
||
|
}
|
||
|
} static_initializer;
|
||
|
}
|
||
|
|
||
|
bool AudioDevice::open (OpenMode mode, Channel channel)
|
||
|
{
|
||
|
m_channel = channel;
|
||
|
|
||
|
// ensure we are unbuffered
|
||
|
return QIODevice::open (mode | QIODevice::Unbuffered);
|
||
|
}
|
||
|
|