funcionando en dos dispositivos mediante ring buffer, pero no puedo
mandar a dos dispositivos, si lo pongo con ma_splitter reproduce más rápido y con glitches mandar diferentes
This commit is contained in:
parent
7aced09a02
commit
fc274179ad
8 changed files with 390 additions and 90 deletions
|
|
@ -1,15 +1,18 @@
|
|||
#ifndef DEFINES_H
|
||||
#define DEFINES_H
|
||||
|
||||
#define VERSION "LibreMediaServerAudio v0.2.0 Antigona"
|
||||
#define COPYRIGHT "(C) 2014-2024 Santi Noreña <lms@criptomart.net>"
|
||||
#define LICENSE "GPL 3 Licensed. See LICENSE.txt."
|
||||
#define DEFAULT_FILE "lms-audio.xlm"
|
||||
#define MAX_LAYERS 4
|
||||
#define MAX_AUDIODEVICES 8
|
||||
#define UI_REFRESH_TIME 100
|
||||
#define FADE_TIME 25 // DMX Frame time, 40 fps, avoid clicks
|
||||
#define FILTER_CHANNELS 13 // number of dmx channels dedicated to filters by layer
|
||||
#define VERSION "LibreMediaServerAudio v0.2.0 Antigona"
|
||||
#define COPYRIGHT "(C) 2014-2024 Santi Noreña <lms@criptomart.net>"
|
||||
#define LICENSE "GPL3 Licensed. See LICENSE.txt."
|
||||
#define DEFAULT_FILE "lms-audio.xlm"
|
||||
#define MAX_LAYERS 4
|
||||
#define MAX_AUDIODEVICES 8
|
||||
#define FORMAT ma_format_f32 /* Must always be f32. */
|
||||
#define CHANNELS 2
|
||||
#define SAMPLE_RATE 48000
|
||||
#define UI_REFRESH_TIME 100
|
||||
#define FADE_TIME 25 // DMX Frame time, 40 fps, avoid clicks
|
||||
#define FILTER_CHANNELS 13 // number of dmx channels dedicated to filters by layer
|
||||
|
||||
struct dmxSetting {
|
||||
int address;
|
||||
|
|
@ -18,7 +21,7 @@ struct dmxSetting {
|
|||
int audioDevice;
|
||||
};
|
||||
|
||||
enum class Status
|
||||
enum Status
|
||||
{
|
||||
Stopped,
|
||||
Paused,
|
||||
|
|
@ -30,6 +33,15 @@ enum class Status
|
|||
PlayingFolderRandom
|
||||
};
|
||||
|
||||
enum Slider
|
||||
{
|
||||
Volume,
|
||||
Pan,
|
||||
Pitch,
|
||||
Bypass
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
constexpr const char* statusToString(Status e) noexcept
|
||||
{
|
||||
switch (e)
|
||||
|
|
@ -45,27 +57,6 @@ constexpr const char* statusToString(Status e) noexcept
|
|||
default: return "--++--";
|
||||
}
|
||||
}
|
||||
/*
|
||||
static const char* StatusStr[] =
|
||||
{
|
||||
"Stop",
|
||||
"Pause",
|
||||
"Play One",
|
||||
"Play One Loop",
|
||||
"Iddle",
|
||||
"Play Folder",
|
||||
"Play Folder Loop",
|
||||
"Play Folder Rand",
|
||||
0x0
|
||||
};*/
|
||||
|
||||
enum Slider
|
||||
{
|
||||
Volume,
|
||||
Pan,
|
||||
Pitch,
|
||||
Bypass
|
||||
};
|
||||
|
||||
#include <QString>
|
||||
struct layerData {
|
||||
|
|
@ -81,4 +72,5 @@ struct layerData {
|
|||
unsigned int universe;
|
||||
int device;
|
||||
};
|
||||
#endif // __cplusplus
|
||||
#endif // DEFINES_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue