2008-09-07 14:34:14 -07:00
|
|
|
/**
|
|
|
|
* OpenAL cross platform audio library
|
|
|
|
* Copyright (C) 1999-2007 by authors.
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2014-08-18 14:11:03 +02:00
|
|
|
* Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2008-09-07 14:34:14 -07:00
|
|
|
* Or go to http://www.gnu.org/copyleft/lgpl.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2018-11-15 22:23:29 -08:00
|
|
|
#include "backends/solaris.h"
|
|
|
|
|
2008-09-07 14:34:14 -07:00
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/types.h>
|
2015-12-11 09:24:40 -08:00
|
|
|
#include <sys/time.h>
|
2008-09-07 14:34:14 -07:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <memory.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <errno.h>
|
2018-12-24 09:58:48 -08:00
|
|
|
#include <poll.h>
|
2008-09-07 14:34:14 -07:00
|
|
|
#include <math.h>
|
2012-09-14 02:14:29 -07:00
|
|
|
|
2018-11-26 21:19:20 -08:00
|
|
|
#include <thread>
|
|
|
|
|
2008-09-07 14:34:14 -07:00
|
|
|
#include "alMain.h"
|
2012-09-14 02:14:29 -07:00
|
|
|
#include "alu.h"
|
2018-01-11 07:56:54 -08:00
|
|
|
#include "alconfig.h"
|
2013-10-27 08:14:13 -07:00
|
|
|
#include "threads.h"
|
2013-10-28 12:05:33 -07:00
|
|
|
#include "compat.h"
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2015-05-17 03:12:34 -07:00
|
|
|
#include <sys/audioio.h>
|
2008-09-07 14:34:14 -07:00
|
|
|
|
|
|
|
|
2018-11-12 23:06:31 -08:00
|
|
|
struct ALCsolarisBackend final : public ALCbackend {
|
2018-12-27 17:48:02 -08:00
|
|
|
int mFd{-1};
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2018-12-27 17:48:02 -08:00
|
|
|
ALubyte *mMixData{nullptr};
|
|
|
|
int mDataSize{0};
|
2013-10-27 08:14:13 -07:00
|
|
|
|
2018-11-26 17:31:04 -08:00
|
|
|
std::atomic<ALenum> mKillNow{AL_TRUE};
|
2018-11-26 21:19:20 -08:00
|
|
|
std::thread mThread;
|
2018-12-27 13:40:43 -08:00
|
|
|
|
|
|
|
ALCsolarisBackend(ALCdevice *device) noexcept : ALCbackend{device} { }
|
2018-11-12 23:06:31 -08:00
|
|
|
};
|
2015-05-17 03:12:34 -07:00
|
|
|
|
2018-11-26 21:19:20 -08:00
|
|
|
static int ALCsolarisBackend_mixerProc(ALCsolarisBackend *self);
|
2015-05-17 03:12:34 -07:00
|
|
|
|
|
|
|
static void ALCsolarisBackend_Construct(ALCsolarisBackend *self, ALCdevice *device);
|
|
|
|
static void ALCsolarisBackend_Destruct(ALCsolarisBackend *self);
|
|
|
|
static ALCenum ALCsolarisBackend_open(ALCsolarisBackend *self, const ALCchar *name);
|
|
|
|
static ALCboolean ALCsolarisBackend_reset(ALCsolarisBackend *self);
|
|
|
|
static ALCboolean ALCsolarisBackend_start(ALCsolarisBackend *self);
|
|
|
|
static void ALCsolarisBackend_stop(ALCsolarisBackend *self);
|
|
|
|
static DECLARE_FORWARD2(ALCsolarisBackend, ALCbackend, ALCenum, captureSamples, void*, ALCuint)
|
|
|
|
static DECLARE_FORWARD(ALCsolarisBackend, ALCbackend, ALCuint, availableSamples)
|
2016-05-28 00:43:14 -07:00
|
|
|
static DECLARE_FORWARD(ALCsolarisBackend, ALCbackend, ClockLatency, getClockLatency)
|
2015-05-17 03:12:34 -07:00
|
|
|
static DECLARE_FORWARD(ALCsolarisBackend, ALCbackend, void, lock)
|
|
|
|
static DECLARE_FORWARD(ALCsolarisBackend, ALCbackend, void, unlock)
|
|
|
|
DECLARE_DEFAULT_ALLOCATORS(ALCsolarisBackend)
|
|
|
|
|
|
|
|
DEFINE_ALCBACKEND_VTABLE(ALCsolarisBackend);
|
|
|
|
|
|
|
|
|
|
|
|
static const ALCchar solaris_device[] = "Solaris Default";
|
|
|
|
|
|
|
|
static const char *solaris_driver = "/dev/audio";
|
2008-09-07 14:34:14 -07:00
|
|
|
|
|
|
|
|
2015-05-17 03:12:34 -07:00
|
|
|
static void ALCsolarisBackend_Construct(ALCsolarisBackend *self, ALCdevice *device)
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2018-12-27 13:40:43 -08:00
|
|
|
new (self) ALCsolarisBackend{device};
|
2015-05-17 03:12:34 -07:00
|
|
|
SET_VTABLE2(ALCsolarisBackend, ALCbackend, self);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void ALCsolarisBackend_Destruct(ALCsolarisBackend *self)
|
|
|
|
{
|
2018-12-27 17:48:02 -08:00
|
|
|
if(self->mFd != -1)
|
|
|
|
close(self->mFd);
|
|
|
|
self->mFd = -1;
|
2015-05-17 03:12:34 -07:00
|
|
|
|
2018-12-27 17:48:02 -08:00
|
|
|
free(self->mMixData);
|
|
|
|
self->mMixData = nullptr;
|
|
|
|
self->mDataSize = 0;
|
2015-05-17 03:12:34 -07:00
|
|
|
|
2018-11-12 23:06:31 -08:00
|
|
|
self->~ALCsolarisBackend();
|
2015-05-17 03:12:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-11-26 21:19:20 -08:00
|
|
|
static int ALCsolarisBackend_mixerProc(ALCsolarisBackend *self)
|
2015-05-17 03:12:34 -07:00
|
|
|
{
|
2018-12-27 14:27:35 -08:00
|
|
|
ALCdevice *device{self->mDevice};
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2010-05-12 07:27:12 -07:00
|
|
|
SetRTPriority();
|
2018-11-17 06:07:04 -08:00
|
|
|
althrd_setname(MIXER_THREAD_NAME);
|
2009-12-01 23:15:09 -08:00
|
|
|
|
2018-12-24 09:58:48 -08:00
|
|
|
const int frame_size{device->frameSizeFromFmt()};
|
2009-09-15 18:19:00 -07:00
|
|
|
|
2017-02-18 15:58:15 -08:00
|
|
|
ALCsolarisBackend_lock(self);
|
2018-11-26 17:31:04 -08:00
|
|
|
while(!self->mKillNow.load(std::memory_order_acquire) &&
|
2018-11-26 18:07:52 -08:00
|
|
|
device->Connected.load(std::memory_order_acquire))
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2018-12-24 09:58:48 -08:00
|
|
|
pollfd pollitem{};
|
2018-12-27 17:48:02 -08:00
|
|
|
pollitem.fd = self->mFd;
|
2018-12-24 09:58:48 -08:00
|
|
|
pollitem.events = POLLOUT;
|
2017-02-18 15:58:15 -08:00
|
|
|
|
|
|
|
ALCsolarisBackend_unlock(self);
|
2018-12-24 09:58:48 -08:00
|
|
|
int pret{poll(&pollitem, 1, 1000)};
|
2017-02-18 15:58:15 -08:00
|
|
|
ALCsolarisBackend_lock(self);
|
2018-12-24 09:58:48 -08:00
|
|
|
if(pret < 0)
|
2017-02-18 15:58:15 -08:00
|
|
|
{
|
2018-12-24 09:58:48 -08:00
|
|
|
if(errno == EINTR || errno == EAGAIN)
|
2017-02-18 15:58:15 -08:00
|
|
|
continue;
|
2018-12-24 09:58:48 -08:00
|
|
|
ERR("poll failed: %s\n", strerror(errno));
|
2018-02-03 13:54:42 -08:00
|
|
|
aluHandleDisconnect(device, "Failed to wait for playback buffer: %s", strerror(errno));
|
2017-02-18 15:58:15 -08:00
|
|
|
break;
|
|
|
|
}
|
2018-12-24 09:58:48 -08:00
|
|
|
else if(pret == 0)
|
2017-02-18 15:58:15 -08:00
|
|
|
{
|
2018-12-24 09:58:48 -08:00
|
|
|
WARN("poll timeout\n");
|
2017-02-18 15:58:15 -08:00
|
|
|
continue;
|
|
|
|
}
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2018-12-27 17:48:02 -08:00
|
|
|
ALubyte *write_ptr{self->mMixData};
|
|
|
|
int to_write{self->mDataSize};
|
2017-02-18 15:58:15 -08:00
|
|
|
aluMixData(device, write_ptr, to_write/frame_size);
|
2018-11-26 17:31:04 -08:00
|
|
|
while(to_write > 0 && !self->mKillNow.load())
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2018-12-27 17:48:02 -08:00
|
|
|
ssize_t wrote{write(self->mFd, write_ptr, to_write)};
|
2009-08-26 21:49:38 -07:00
|
|
|
if(wrote < 0)
|
|
|
|
{
|
2017-02-18 15:58:15 -08:00
|
|
|
if(errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR)
|
|
|
|
continue;
|
|
|
|
ERR("write failed: %s\n", strerror(errno));
|
2018-02-03 13:54:42 -08:00
|
|
|
aluHandleDisconnect(device, "Failed to write playback samples: %s",
|
|
|
|
strerror(errno));
|
2017-02-18 15:58:15 -08:00
|
|
|
break;
|
2009-08-26 21:49:38 -07:00
|
|
|
}
|
|
|
|
|
2017-02-18 15:58:15 -08:00
|
|
|
to_write -= wrote;
|
|
|
|
write_ptr += wrote;
|
2008-09-07 14:34:14 -07:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 15:58:15 -08:00
|
|
|
ALCsolarisBackend_unlock(self);
|
2008-09-07 14:34:14 -07:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-05-17 03:12:34 -07:00
|
|
|
static ALCenum ALCsolarisBackend_open(ALCsolarisBackend *self, const ALCchar *name)
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2015-05-17 03:12:34 -07:00
|
|
|
ALCdevice *device;
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2015-05-17 03:12:34 -07:00
|
|
|
if(!name)
|
|
|
|
name = solaris_device;
|
|
|
|
else if(strcmp(name, solaris_device) != 0)
|
2011-08-24 14:24:48 -07:00
|
|
|
return ALC_INVALID_VALUE;
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2018-12-27 17:48:02 -08:00
|
|
|
self->mFd = open(solaris_driver, O_WRONLY);
|
|
|
|
if(self->mFd == -1)
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2012-02-29 21:45:44 -08:00
|
|
|
ERR("Could not open %s: %s\n", solaris_driver, strerror(errno));
|
2011-08-24 14:24:48 -07:00
|
|
|
return ALC_INVALID_VALUE;
|
2008-09-07 14:34:14 -07:00
|
|
|
}
|
|
|
|
|
2018-12-27 14:27:35 -08:00
|
|
|
device = self->mDevice;
|
2018-11-18 18:45:45 -08:00
|
|
|
device->DeviceName = name;
|
2015-05-17 03:12:34 -07:00
|
|
|
|
2011-08-24 14:24:48 -07:00
|
|
|
return ALC_NO_ERROR;
|
2009-09-12 18:19:52 -07:00
|
|
|
}
|
|
|
|
|
2015-05-17 03:12:34 -07:00
|
|
|
static ALCboolean ALCsolarisBackend_reset(ALCsolarisBackend *self)
|
2009-09-12 18:19:52 -07:00
|
|
|
{
|
2018-12-27 14:27:35 -08:00
|
|
|
ALCdevice *device{self->mDevice};
|
2009-09-12 18:19:52 -07:00
|
|
|
audio_info_t info;
|
2017-01-18 07:13:23 -08:00
|
|
|
ALsizei frameSize;
|
|
|
|
ALsizei numChannels;
|
2009-09-12 18:19:52 -07:00
|
|
|
|
2008-09-07 14:34:14 -07:00
|
|
|
AUDIO_INITINFO(&info);
|
|
|
|
|
2010-12-09 23:53:32 -08:00
|
|
|
info.play.sample_rate = device->Frequency;
|
|
|
|
|
|
|
|
if(device->FmtChans != DevFmtMono)
|
|
|
|
device->FmtChans = DevFmtStereo;
|
2018-12-19 05:57:36 -08:00
|
|
|
numChannels = device->channelsFromFmt();
|
2010-12-09 23:53:32 -08:00
|
|
|
info.play.channels = numChannels;
|
|
|
|
|
2010-12-04 19:50:00 -08:00
|
|
|
switch(device->FmtType)
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2010-12-04 19:50:00 -08:00
|
|
|
case DevFmtByte:
|
2010-12-09 23:43:29 -08:00
|
|
|
info.play.precision = 8;
|
|
|
|
info.play.encoding = AUDIO_ENCODING_LINEAR;
|
|
|
|
break;
|
2010-12-04 19:50:00 -08:00
|
|
|
case DevFmtUByte:
|
2008-09-07 14:34:14 -07:00
|
|
|
info.play.precision = 8;
|
|
|
|
info.play.encoding = AUDIO_ENCODING_LINEAR8;
|
|
|
|
break;
|
2010-12-04 19:50:00 -08:00
|
|
|
case DevFmtUShort:
|
2012-02-14 11:44:57 -08:00
|
|
|
case DevFmtInt:
|
|
|
|
case DevFmtUInt:
|
2010-12-04 19:50:00 -08:00
|
|
|
case DevFmtFloat:
|
|
|
|
device->FmtType = DevFmtShort;
|
2009-08-16 13:16:41 -07:00
|
|
|
/* fall-through */
|
2010-12-04 19:50:00 -08:00
|
|
|
case DevFmtShort:
|
2008-09-07 14:34:14 -07:00
|
|
|
info.play.precision = 16;
|
|
|
|
info.play.encoding = AUDIO_ENCODING_LINEAR;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2018-12-19 05:57:36 -08:00
|
|
|
frameSize = numChannels * device->bytesFromFmt();
|
2009-09-16 22:58:54 -07:00
|
|
|
info.play.buffer_size = device->UpdateSize*device->NumUpdates * frameSize;
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2018-12-27 17:48:02 -08:00
|
|
|
if(ioctl(self->mFd, AUDIO_SETINFO, &info) < 0)
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2011-07-13 01:43:00 -07:00
|
|
|
ERR("ioctl failed: %s\n", strerror(errno));
|
2008-09-07 14:34:14 -07:00
|
|
|
return ALC_FALSE;
|
|
|
|
}
|
|
|
|
|
2018-12-19 05:57:36 -08:00
|
|
|
if(device->channelsFromFmt() != (ALsizei)info.play.channels)
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2018-12-19 05:57:36 -08:00
|
|
|
ERR("Failed to set %s, got %u channels instead\n", DevFmtChannelsString(device->FmtChans),
|
|
|
|
info.play.channels);
|
2008-09-07 14:34:14 -07:00
|
|
|
return ALC_FALSE;
|
|
|
|
}
|
|
|
|
|
2012-02-29 21:45:44 -08:00
|
|
|
if(!((info.play.precision == 8 && info.play.encoding == AUDIO_ENCODING_LINEAR8 && device->FmtType == DevFmtUByte) ||
|
|
|
|
(info.play.precision == 8 && info.play.encoding == AUDIO_ENCODING_LINEAR && device->FmtType == DevFmtByte) ||
|
|
|
|
(info.play.precision == 16 && info.play.encoding == AUDIO_ENCODING_LINEAR && device->FmtType == DevFmtShort) ||
|
|
|
|
(info.play.precision == 32 && info.play.encoding == AUDIO_ENCODING_LINEAR && device->FmtType == DevFmtInt)))
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2012-02-29 21:45:44 -08:00
|
|
|
ERR("Could not set %s samples, got %d (0x%x)\n", DevFmtTypeString(device->FmtType),
|
|
|
|
info.play.precision, info.play.encoding);
|
2008-09-07 14:34:14 -07:00
|
|
|
return ALC_FALSE;
|
|
|
|
}
|
|
|
|
|
2012-01-17 16:38:58 -08:00
|
|
|
device->Frequency = info.play.sample_rate;
|
2009-09-16 22:58:54 -07:00
|
|
|
device->UpdateSize = (info.play.buffer_size/device->NumUpdates) + 1;
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2009-12-02 04:03:51 -08:00
|
|
|
SetDefaultChannelOrder(device);
|
|
|
|
|
2018-12-27 17:48:02 -08:00
|
|
|
free(self->mMixData);
|
|
|
|
self->mDataSize = device->UpdateSize * device->frameSizeFromFmt();
|
|
|
|
self->mMixData = static_cast<ALubyte*>(calloc(1, self->mDataSize));
|
2015-05-17 03:12:34 -07:00
|
|
|
|
2012-03-05 07:11:09 -08:00
|
|
|
return ALC_TRUE;
|
|
|
|
}
|
|
|
|
|
2015-05-17 03:12:34 -07:00
|
|
|
static ALCboolean ALCsolarisBackend_start(ALCsolarisBackend *self)
|
2012-03-05 07:11:09 -08:00
|
|
|
{
|
2018-11-26 21:19:20 -08:00
|
|
|
try {
|
|
|
|
self->mKillNow.store(AL_FALSE);
|
|
|
|
self->mThread = std::thread(ALCsolarisBackend_mixerProc, self);
|
|
|
|
return ALC_TRUE;
|
|
|
|
}
|
|
|
|
catch(std::exception& e) {
|
|
|
|
ERR("Could not create playback thread: %s\n", e.what());
|
|
|
|
}
|
|
|
|
catch(...) {
|
|
|
|
}
|
|
|
|
return ALC_FALSE;
|
2008-09-07 14:34:14 -07:00
|
|
|
}
|
|
|
|
|
2015-05-17 03:12:34 -07:00
|
|
|
static void ALCsolarisBackend_stop(ALCsolarisBackend *self)
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2018-11-26 21:19:20 -08:00
|
|
|
if(self->mKillNow.exchange(AL_TRUE) || !self->mThread.joinable())
|
2009-09-12 18:19:52 -07:00
|
|
|
return;
|
|
|
|
|
2018-11-26 21:19:20 -08:00
|
|
|
self->mThread.join();
|
2008-09-07 14:34:14 -07:00
|
|
|
|
2018-12-27 17:48:02 -08:00
|
|
|
if(ioctl(self->mFd, AUDIO_DRAIN) < 0)
|
2011-07-13 01:43:00 -07:00
|
|
|
ERR("Error draining device: %s\n", strerror(errno));
|
2015-05-17 03:12:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-11-15 22:23:29 -08:00
|
|
|
BackendFactory &SolarisBackendFactory::getFactory()
|
2015-05-17 03:12:34 -07:00
|
|
|
{
|
2018-11-15 22:23:29 -08:00
|
|
|
static SolarisBackendFactory factory{};
|
|
|
|
return factory;
|
2009-08-16 13:16:41 -07:00
|
|
|
}
|
|
|
|
|
2018-11-15 22:23:29 -08:00
|
|
|
bool SolarisBackendFactory::init()
|
2008-09-07 14:34:14 -07:00
|
|
|
{
|
2018-11-12 23:06:31 -08:00
|
|
|
ConfigValueStr(nullptr, "solaris", "device", &solaris_driver);
|
2018-11-15 22:23:29 -08:00
|
|
|
return true;
|
2008-09-07 14:34:14 -07:00
|
|
|
}
|
2009-08-26 23:45:00 -07:00
|
|
|
|
2018-11-15 22:23:29 -08:00
|
|
|
bool SolarisBackendFactory::querySupport(ALCbackend_Type type)
|
|
|
|
{ return (type == ALCbackend_Playback); }
|
2009-08-27 06:09:33 -07:00
|
|
|
|
2018-12-24 19:29:01 -08:00
|
|
|
void SolarisBackendFactory::probe(DevProbe type, std::string *outnames)
|
2009-08-27 06:09:33 -07:00
|
|
|
{
|
2011-06-14 04:02:58 -07:00
|
|
|
switch(type)
|
|
|
|
{
|
|
|
|
case ALL_DEVICE_PROBE:
|
2012-02-29 21:45:44 -08:00
|
|
|
{
|
|
|
|
#ifdef HAVE_STAT
|
|
|
|
struct stat buf;
|
|
|
|
if(stat(solaris_driver, &buf) == 0)
|
|
|
|
#endif
|
2018-11-15 04:24:33 -08:00
|
|
|
outnames->append(solaris_device, sizeof(solaris_device));
|
2012-02-29 21:45:44 -08:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2011-06-14 04:02:58 -07:00
|
|
|
case CAPTURE_DEVICE_PROBE:
|
|
|
|
break;
|
|
|
|
}
|
2009-08-27 06:09:33 -07:00
|
|
|
}
|
2015-05-17 03:12:34 -07:00
|
|
|
|
2018-11-15 22:23:29 -08:00
|
|
|
ALCbackend *SolarisBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type)
|
2015-05-17 03:12:34 -07:00
|
|
|
{
|
|
|
|
if(type == ALCbackend_Playback)
|
|
|
|
{
|
|
|
|
ALCsolarisBackend *backend;
|
2015-05-18 16:39:44 -07:00
|
|
|
NEW_OBJ(backend, ALCsolarisBackend)(device);
|
2018-12-27 14:27:35 -08:00
|
|
|
return backend;
|
2015-05-17 03:12:34 -07:00
|
|
|
}
|
|
|
|
|
2018-11-12 23:06:31 -08:00
|
|
|
return nullptr;
|
2015-05-17 03:12:34 -07:00
|
|
|
}
|