mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 13:50:06 +00:00 
			
		
		
		
	Add ignore missing codecs to settings
This commit is contained in:
		
							parent
							
								
									e2c8b3c7db
								
							
						
					
					
						commit
						d760641770
					
				
					 3 changed files with 11 additions and 2 deletions
				
			
		|  | @ -37,6 +37,7 @@ public: | ||||||
|       alertLocationMethod_.SetDefault(defaultAlertLocationMethodValue); |       alertLocationMethod_.SetDefault(defaultAlertLocationMethodValue); | ||||||
|       alertLatitude_.SetDefault(0.0); |       alertLatitude_.SetDefault(0.0); | ||||||
|       alertLongitude_.SetDefault(0.0); |       alertLongitude_.SetDefault(0.0); | ||||||
|  |       ignoreMissingCodecs_.SetDefault(false); | ||||||
| 
 | 
 | ||||||
|       alertLatitude_.SetMinimum(-90.0); |       alertLatitude_.SetMinimum(-90.0); | ||||||
|       alertLatitude_.SetMaximum(90.0); |       alertLatitude_.SetMaximum(90.0); | ||||||
|  | @ -83,6 +84,7 @@ public: | ||||||
|    SettingsVariable<double>      alertLatitude_ {"alert_latitude"}; |    SettingsVariable<double>      alertLatitude_ {"alert_latitude"}; | ||||||
|    SettingsVariable<double>      alertLongitude_ {"alert_longitude"}; |    SettingsVariable<double>      alertLongitude_ {"alert_longitude"}; | ||||||
|    SettingsVariable<std::string> alertCounty_ {"alert_county"}; |    SettingsVariable<std::string> alertCounty_ {"alert_county"}; | ||||||
|  |    SettingsVariable<bool>        ignoreMissingCodecs_ {"ignore_missing_codecs"}; | ||||||
| 
 | 
 | ||||||
|    std::unordered_map<awips::Phenomenon, SettingsVariable<bool>> |    std::unordered_map<awips::Phenomenon, SettingsVariable<bool>> | ||||||
|                                       alertEnabled_ {}; |                                       alertEnabled_ {}; | ||||||
|  | @ -96,7 +98,8 @@ AudioSettings::AudioSettings() : | ||||||
|                       &p->alertLocationMethod_, |                       &p->alertLocationMethod_, | ||||||
|                       &p->alertLatitude_, |                       &p->alertLatitude_, | ||||||
|                       &p->alertLongitude_, |                       &p->alertLongitude_, | ||||||
|                       &p->alertCounty_}); |                       &p->alertCounty_, | ||||||
|  |                       &p->ignoreMissingCodecs_}); | ||||||
|    RegisterVariables(p->variables_); |    RegisterVariables(p->variables_); | ||||||
|    SetDefaults(); |    SetDefaults(); | ||||||
| 
 | 
 | ||||||
|  | @ -143,6 +146,11 @@ AudioSettings::alert_enabled(awips::Phenomenon phenomenon) const | ||||||
|    return alert->second; |    return alert->second; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | SettingsVariable<bool>& AudioSettings::ignore_missing_codecs() const | ||||||
|  | { | ||||||
|  |    return p->ignoreMissingCodecs_; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| AudioSettings& AudioSettings::Instance() | AudioSettings& AudioSettings::Instance() | ||||||
| { | { | ||||||
|    static AudioSettings audioSettings_; |    static AudioSettings audioSettings_; | ||||||
|  |  | ||||||
|  | @ -32,6 +32,7 @@ public: | ||||||
|    SettingsVariable<double>&      alert_longitude() const; |    SettingsVariable<double>&      alert_longitude() const; | ||||||
|    SettingsVariable<std::string>& alert_county() const; |    SettingsVariable<std::string>& alert_county() const; | ||||||
|    SettingsVariable<bool>& alert_enabled(awips::Phenomenon phenomenon) const; |    SettingsVariable<bool>& alert_enabled(awips::Phenomenon phenomenon) const; | ||||||
|  |    SettingsVariable<bool>& ignore_missing_codecs() const; | ||||||
| 
 | 
 | ||||||
|    static AudioSettings& Instance(); |    static AudioSettings& Instance(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1 +1 @@ | ||||||
| Subproject commit 71d18bc659d5e2b68b57dfaeb20f87cb1f0675f2 | Subproject commit 65bdc55e4afa29c24010a398238f2036060bbd0c | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat