~waver-developers/waver/trunk

« back to all changes in this revision

Viewing changes to decodergeneric.h

  • Committer: Peter Papp
  • Date: 2021-11-02 02:39:42 UTC
  • Revision ID: peter.papp.p@gmail.com-20211102023942-n4bjs5exc5ey0v9m
Ampache5 error msg compat, Radio stations in Win, UI bugfix and minor impr

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <QWaitCondition>
25
25
 
26
26
#include "decodergenericnetworksource.h"
 
27
#include "radiotitlecallback.h"
27
28
 
28
29
#ifdef QT_DEBUG
29
30
    #include <QDebug>
36
37
 
37
38
    public:
38
39
 
39
 
        explicit DecoderGeneric(QObject *parent = nullptr);
 
40
        explicit DecoderGeneric(RadioTitleCallback::RadioTitleCallbackInfo radioTitleCallbackInfo, QObject *parent = nullptr);
40
41
        ~DecoderGeneric();
41
42
 
42
43
        void   setParameters(QUrl url, QAudioFormat decodedFormat, qint64 waitUnderBytes);
64
65
        unsigned long decodeDelay;
65
66
        qint64        decodedMicroseconds;
66
67
 
 
68
        RadioTitleCallback::RadioTitleCallbackInfo radioTitleCallbackInfo;
 
69
 
67
70
 
68
71
    private slots:
69
72
 
70
73
        void networkReady();
 
74
        void networkChanged();
71
75
        void networkError(QString errorString);
72
76
        void networkInfo(QString infoString);
73
77
        void networkSessionExpired();
74
 
        void networkRadioTitle(QString title);
75
78
 
76
79
        void decoderBufferReady();
77
80
        void decoderFinished();
88
91
    signals:
89
92
 
90
93
        void bufferAvailable(QAudioBuffer *buffer);
91
 
        void radioTitle(QString title);
 
94
        void networkBufferChanged();
92
95
        void finished();
93
96
        void errorMessage(QString info, QString error);
94
97
        void infoMessage(QString info);