mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
parent
ffb8851835
commit
a11341f448
7 changed files with 73 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "videodecoder.h"
|
||||
|
||||
#include <QSettings>
|
||||
#include <QAudioDeviceInfo>
|
||||
|
||||
enum class ControllerButtonExt
|
||||
{
|
||||
|
@ -93,6 +94,9 @@ class Settings : public QObject
|
|||
*/
|
||||
unsigned int GetAudioBufferSize() const;
|
||||
void SetAudioBufferSize(unsigned int size);
|
||||
|
||||
QString GetAudioOutDevice() const;
|
||||
void SetAudioOutDevice(QString device_name);
|
||||
|
||||
ChiakiConnectVideoProfile GetVideoProfile();
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ class SettingsDialog : public QDialog
|
|||
QComboBox *fps_combo_box;
|
||||
QLineEdit *bitrate_edit;
|
||||
QLineEdit *audio_buffer_size_edit;
|
||||
QComboBox *audio_device_combo_box;
|
||||
QCheckBox *pi_decoder_check_box;
|
||||
QComboBox *hardware_decode_combo_box;
|
||||
|
||||
|
@ -41,6 +42,7 @@ class SettingsDialog : public QDialog
|
|||
void FPSSelected();
|
||||
void BitrateEdited();
|
||||
void AudioBufferSizeEdited();
|
||||
void AudioOutputSelected();
|
||||
void HardwareDecodeEngineSelected();
|
||||
void UpdateHardwareDecodeEngineComboBox();
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ struct StreamSessionConnectInfo
|
|||
QMap<Qt::Key, int> key_map;
|
||||
Decoder decoder;
|
||||
HardwareDecodeEngine hw_decode_engine;
|
||||
QString audio_out_device;
|
||||
uint32_t log_level_mask;
|
||||
QString log_file;
|
||||
QString host;
|
||||
|
@ -81,6 +82,7 @@ class StreamSession : public QObject
|
|||
ChiakiPiDecoder *pi_decoder;
|
||||
#endif
|
||||
|
||||
QAudioDeviceInfo audio_out_device_info;
|
||||
unsigned int audio_buffer_size;
|
||||
QAudioOutput *audio_output;
|
||||
QIODevice *audio_io;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue