• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mcallegari / qlcplus / 13875079501

15 Mar 2025 05:26PM UTC coverage: 31.887%. Remained the same
13875079501

push

github

mcallegari
engine: fix crash on audio end of stream

Reported: https://www.qlcplus.org/forum/viewtopic.php?t=17982

14701 of 46103 relevant lines covered (31.89%)

26418.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/engine/src/dmxdumpfactoryproperties.cpp
1
/*
2
  Q Light Controller Plus
3
  dmxdumpfactoryproperties.cpp
4

5
  Copyright (c) Massimo Callegari
6

7
  Licensed under the Apache License, Version 2.0 (the "License");
8
  you may not use this file except in compliance with the License.
9
  You may obtain a copy of the License at
10

11
      http://www.apache.org/licenses/LICENSE-2.0.txt
12

13
  Unless required by applicable law or agreed to in writing, software
14
  distributed under the License is distributed on an "AS IS" BASIS,
15
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
  See the License for the specific language governing permissions and
17
  limitations under the License.
18
*/
19

20
#include "dmxdumpfactoryproperties.h"
21

22
DmxDumpFactoryProperties::DmxDumpFactoryProperties(int universes)
×
23
    : m_dumpAllChannels(true)
×
24
    , m_dumpNonZeroValues(false)
×
25
    , m_selectedTarget(Chaser)
×
26
{
27
    m_channelsMask = QByteArray(universes * 512, 0);
×
28
}
×
29

30
bool DmxDumpFactoryProperties::dumpChannelsMode()
×
31
{
32
    return m_dumpAllChannels;
×
33
}
34

35
void DmxDumpFactoryProperties::setDumpChannelsMode(bool mode)
×
36
{
37
    m_dumpAllChannels = mode;
×
38
}
×
39

40
bool DmxDumpFactoryProperties::nonZeroValuesMode()
×
41
{
42
    return m_dumpNonZeroValues;
×
43
}
44

45
void DmxDumpFactoryProperties::setNonZeroValuesMode(bool mode)
×
46
{
47
    m_dumpNonZeroValues = mode;
×
48
}
×
49

50
QByteArray DmxDumpFactoryProperties::channelsMask()
×
51
{
52
    return m_channelsMask;
×
53
}
54

55
void DmxDumpFactoryProperties::setChannelsMask(QByteArray mask)
×
56
{
57
    if (mask.isEmpty() == false)
×
58
        m_channelsMask.replace(0, mask.length(), mask);
×
59
}
×
60

61
/************************************************************************
62
 * Dump target
63
 ***********************************************************************/
64

65
void DmxDumpFactoryProperties::addChaserID(quint32 id)
×
66
{
67
    if (m_selectedChaserIDs.contains(id) == false)
×
68
        m_selectedChaserIDs.append(id);
×
69
}
×
70

71
void DmxDumpFactoryProperties::removeChaserID(quint32 id)
×
72
{
73
    if (m_selectedChaserIDs.contains(id) == true)
×
74
        m_selectedChaserIDs.removeAll(id);
×
75
}
×
76

77
bool DmxDumpFactoryProperties::isChaserSelected(quint32 id)
×
78
{
79
    return m_selectedChaserIDs.contains(id);
×
80
}
81

82
void DmxDumpFactoryProperties::setSelectedTarget(DmxDumpFactoryProperties::TargetType type)
×
83
{
84
    m_selectedTarget = type;
×
85
}
×
86

87
DmxDumpFactoryProperties::TargetType DmxDumpFactoryProperties::selectedTarget()
×
88
{
89
    return m_selectedTarget;
×
90
}
91

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc