Clementine-audio-player-Mac.../src/engines/directsounddevicefinder.h

42 lines
1.3 KiB
C
Raw Normal View History

2014-03-29 13:47:48 +01:00
/* This file is part of Clementine.
Copyright 2014, David Sansome <me@davidsansome.com>
2020-09-18 16:15:19 +02:00
2014-03-29 13:47:48 +01:00
Clementine is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
2020-09-18 16:15:19 +02:00
2014-03-29 13:47:48 +01:00
Clementine 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 General Public License for more details.
2020-09-18 16:15:19 +02:00
2014-03-29 13:47:48 +01:00
You should have received a copy of the GNU General Public License
along with Clementine. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DIRECTSOUNDDEVICEFINDER_H
#define DIRECTSOUNDDEVICEFINDER_H
#include <rpc.h>
#include "engines/devicefinder.h"
class DirectSoundDeviceFinder : public DeviceFinder {
public:
DirectSoundDeviceFinder();
virtual bool Initialise() { return true; }
virtual QList<Device> ListDevices();
private:
struct State {
QList<Device> devices;
};
2020-09-18 16:15:19 +02:00
static BOOL EnumerateCallback(LPGUID guid, LPCSTR description, LPCSTR module,
2014-03-29 13:47:48 +01:00
LPVOID state_voidptr) __attribute__((stdcall));
};
2020-09-18 16:15:19 +02:00
#endif // DIRECTSOUNDDEVICEFINDER_H