1
/***************************************************************************
2
playeralsa.h - description
4
begin : Wed Feb 20 2002
5
copyright : (C) 2002 by Tue and Ken Haste Andersen
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
23
#include <sys/asoundlib.h>
24
//#include <pthread.h>
26
#include "enginebuffer.h"
29
*@author Tue and Ken Haste Andersen
32
class PlayerALSA : public Player, public QThread {
36
void start(EngineBuffer *);
39
/** Main loop of player. Executed in a separate thread by QT */
43
snd_pcm_t *handle; // ALSA handle
44
snd_pcm_channel_params_t *params;
45
snd_pcm_channel_setup_t *setup;