Skip to content

Commit

Permalink
updated documents
Browse files Browse the repository at this point in the history
  • Loading branch information
JvanKatwijk committed Apr 22, 2024
1 parent d26d314 commit 33daa11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 47 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,15 @@ So, correct functioning is NOT guaranteed.

![6.X](/journaline.png?raw=true)

While Qt-DAB-6.X is still "under development", its sources can be
found in the subdirectory "Qt-DAB-RC"
Qt-DAB-6.X seems reasonably stable, that is why - based on the latest sources -
the three installers for Windows and the AppImage for x64 Linux were
re-created. Furthermore, the documentation is upgraded to describe the
Qt-DAB-6.X version

The manual contains now a (more or less) up-to-date version of a "build"
description. Documentation (i.e. the "manual") can be found in the docs
section of this repository and a copy is available in the releases
section.

------------------------------------------------------------------------
About Qt-DAB-6.5
Expand Down
Binary file modified docs/manual-6.pdf
Binary file not shown.
50 changes: 5 additions & 45 deletions qt-dab-RC/radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,7 @@ QString realName;
objectName = "epg file";
objectName = epgPath + objectName;

{
QString temp = objectName;
{ QString temp = objectName;
temp = temp. left (temp. lastIndexOf (QChar ('/')));
if (!QDir (temp). exists ())
QDir (). mkpath (temp);
Expand Down Expand Up @@ -962,7 +961,7 @@ const char *type;
//
// sendDatagram is triggered by the ip handler,
void RadioInterface::sendDatagram (int length) {
uint8_t localBuffer [length];
uint8_t *localBuffer = dynVec (uint8_t, length);

if (dataBuffer. GetRingBufferReadAvailable() < length) {
fprintf (stderr, "Something went wrong\n");
Expand All @@ -983,7 +982,7 @@ uint8_t localBuffer [length];
// tdcData is triggered by the backend.
void RadioInterface::handle_tdcdata (int frametype, int length) {
#ifdef DATA_STREAMER
uint8_t localBuffer [length + 8];
uint8_t *localBuffer = dynVec (uint8_t, length + 8);
#endif
(void)frametype;
if (!running. load())
Expand Down Expand Up @@ -1271,26 +1270,6 @@ void RadioInterface::updateTimeDisplay() {
techWindow_p -> showMissed (xxx);
}
}

// if (error_report && (numberofSeconds % 10) == 0) {
// int totalFrames;
// int goodFrames;
// int badFrames;
// my_ofdmHandler -> get_frameQuality (&totalFrames,
// &goodFrames,
// &badFrames);
// fprintf (stderr, "total %d, good %d bad %d ficRatio %f\n",
// totalFrames, goodFrames, badFrames,
// total_ficError * 100.0 / total_fics);
// total_ficError = 0;
// total_fics = 0;
// if (configHandler_p -> currentStream () != "") {
// if (soundOut_p -> hasMissed ()) {
// int xxx = soundOut_p -> missed();
// fprintf (stderr, "missed %d\n", xxx);
// }
// }
// }
}
//
// precondition: everything is quiet
Expand Down Expand Up @@ -1559,9 +1538,6 @@ void RadioInterface::hideButtons () {

void RadioInterface::set_sync_lost () {
}

//
////////////////////////////////////////////////////////////////////////
//
// dump handling
//
Expand Down Expand Up @@ -1859,12 +1835,9 @@ void RadioInterface::stop_announcement (const QString &name, int subChId) {
}
}
}

////////////////////////////////////////////////////////////////////////
//
// selection, either direct, from presets, from scanlist or schedule
////////////////////////////////////////////////////////////////////////

//
// selecting from the preset list
void RadioInterface::handle_presetSelect (const QString &channel,
Expand Down Expand Up @@ -1969,8 +1942,6 @@ QString serviceName = service;
presetTimer. start (switchDelay);
startChannel (channelSelector -> currentText ());
}

////////////////////////////////////////////////////////////////////////////
//
///////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -2200,12 +2171,9 @@ void RadioInterface::handle_prevServiceButton () {
void RadioInterface::handle_nextServiceButton () {
the_ensembleHandler -> selectNextService ();
}

////////////////////////////////////////////////////////////////////////////
//
// The user(s)
///////////////////////////////////////////////////////////////////////////
//
// setPresetService () is called after a time out to
// actually start the service that we were waiting for
// Assumption is that the channel is set, and the servicename
Expand Down Expand Up @@ -2241,8 +2209,6 @@ void RadioInterface::setPresetService () {
nextService. valid = false;
startService (s);
}

///////////////////////////////////////////////////////////////////////////
//
// Channel basics
///////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -2338,7 +2304,6 @@ void RadioInterface::stopChannel () {
set_synced (false);
cleanScreen ();
}

//
// next- and previous channel buttons
/////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -2385,8 +2350,6 @@ void RadioInterface::set_channelButton (int currentChannel) {
}
//
// scanning
/////////////////////////////////////////////////////////////////////////
//
// The scan function covers three scan strategies. In order to make things
// manageable, we implement the streams in different functions and procedures
void RadioInterface::handle_scanButton () {
Expand Down Expand Up @@ -2951,11 +2914,9 @@ void RadioInterface::color_httpButton () {

void RadioInterface::set_buttonColors (QPushButton *b,
const QString &buttonName) {
QColor baseColor;
QColor textColor;
QColor color;
QColor baseColor, textColor;

color = QColorDialog::getColor (baseColor, nullptr, "baseColor");
QColor color = QColorDialog::getColor (baseColor, nullptr, "baseColor");
if (!color. isValid ())
return;
baseColor = color;
Expand Down Expand Up @@ -3136,7 +3097,6 @@ int epgWidth;

//----------------------------------------------------------------------
//

void RadioInterface::scheduled_dlTextDumping () {
if (dlTextFile != nullptr) {
fclose (dlTextFile);
Expand Down
3 changes: 3 additions & 0 deletions src/support/http-handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void httpHandler::start () {
nullptr, nullptr, SW_SHOWNORMAL);
#else
std::string x = "xdg-open " + browserAddress;
fprintf (stderr, "we gaan voor %s\n", x. c_str ());
(void)system (x. c_str ());
#endif
}
Expand All @@ -124,6 +125,7 @@ std::string ctype;
running. store (true);
socklen_t sin_len = sizeof (cli_addr);
ListenSocket = socket (AF_INET, SOCK_STREAM, 0);
fprintf (stderr, "Listensocket = %d\n", ListenSocket);
if (ListenSocket < 0) {
running. store (false);
terminating ();
Expand Down Expand Up @@ -156,6 +158,7 @@ std::string ctype;
usleep (2000000);
continue;
}
fprintf (stderr, "We are in business\n");
//
// someone needs us, let us see what (s)he wants
while (running. load ()) {
Expand Down

0 comments on commit 33daa11

Please sign in to comment.