mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Add Audio Buffer Size Setting
This commit is contained in:
parent
88db8c8840
commit
69f7c385c7
6 changed files with 54 additions and 1 deletions
|
@ -63,6 +63,19 @@ class Settings : public QObject
|
|||
unsigned int GetBitrate() const;
|
||||
void SetBitrate(unsigned int bitrate);
|
||||
|
||||
unsigned int GetAudioBufferSizeDefault() const;
|
||||
|
||||
/**
|
||||
* @return 0 if set to "automatic"
|
||||
*/
|
||||
unsigned int GetAudioBufferSizeRaw() const;
|
||||
|
||||
/**
|
||||
* @return actual size to be used, default value if GetAudioBufferSizeRaw() would return 0
|
||||
*/
|
||||
unsigned int GetAudioBufferSize() const;
|
||||
void SetAudioBufferSize(unsigned int size);
|
||||
|
||||
ChiakiConnectVideoProfile GetVideoProfile();
|
||||
|
||||
QList<RegisteredHost> GetRegisteredHosts() const { return registered_hosts.values(); }
|
||||
|
|
|
@ -38,6 +38,7 @@ class SettingsDialog : public QDialog
|
|||
QComboBox *resolution_combo_box;
|
||||
QComboBox *fps_combo_box;
|
||||
QLineEdit *bitrate_edit;
|
||||
QLineEdit *audio_buffer_size_edit;
|
||||
|
||||
QListWidget *registered_hosts_list_widget;
|
||||
QPushButton *delete_registered_host_button;
|
||||
|
@ -50,6 +51,7 @@ class SettingsDialog : public QDialog
|
|||
void ResolutionSelected();
|
||||
void FPSSelected();
|
||||
void BitrateEdited();
|
||||
void AudioBufferSizeEdited();
|
||||
|
||||
void UpdateRegisteredHosts();
|
||||
void UpdateRegisteredHostsButtons();
|
||||
|
|
|
@ -52,6 +52,7 @@ struct StreamSessionConnectInfo
|
|||
QByteArray regist_key;
|
||||
QByteArray morning;
|
||||
ChiakiConnectVideoProfile video_profile;
|
||||
unsigned int audio_buffer_size;
|
||||
|
||||
StreamSessionConnectInfo();
|
||||
StreamSessionConnectInfo(Settings *settings, QString host, QByteArray regist_key, QByteArray morning);
|
||||
|
@ -77,6 +78,7 @@ class StreamSession : public QObject
|
|||
|
||||
VideoDecoder video_decoder;
|
||||
|
||||
unsigned int audio_buffer_size;
|
||||
QAudioOutput *audio_output;
|
||||
QIODevice *audio_io;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue