libdrmconf
0.15.1
A library to program DMR radios.
Toggle main menu visibility
Loading...
Searching...
No Matches
melody_stream.hh
1
#ifndef MELODY_STREAM_HH
2
#define MELODY_STREAM_HH
3
4
#include <QAudioFormat>
5
#include <QBuffer>
6
#include <QPointer>
7
class
Melody
;
8
10
class
MelodyStream
:
public
QBuffer
11
{
12
Q_OBJECT
13
14
public
:
16
explicit
MelodyStream
(QObject *parent =
nullptr
);
18
const
QAudioFormat &
audioFormat
()
const
;
20
void
setMelody
(
Melody
*melody);
21
22
protected
slots:
23
void
reload();
24
25
protected
:
26
QPointer<Melody> _melody;
27
QAudioFormat _format;
28
QByteArray _raw;
29
};
30
31
32
33
#endif
//QDMR_MELODY_STREAM_HH
MelodyStream::setMelody
void setMelody(Melody *melody)
Sets the melody.
Definition
melody_stream.cc:22
MelodyStream::audioFormat
const QAudioFormat & audioFormat() const
Returns the audio format of the stream.
Definition
melody_stream.cc:17
MelodyStream::MelodyStream
MelodyStream(QObject *parent=nullptr)
Default constructor.
Definition
melody_stream.cc:7
Melody
A config item that encodes a melody.
Definition
melody.hh:20
lib
melody_stream.hh
Generated by
1.17.0