diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-09 00:02:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-09 00:02:09 +0200 |
| commit | 45525875fef67ec1885968c0c5692307b16a279b (patch) | |
| tree | 6bd741331b33020bf40982e9cb82f7faa5b48669 /src/sound_asset.h | |
| parent | 3a328b69a4770687fa16a113f33882217a59a142 (diff) | |
Make sound asset language optional.
Diffstat (limited to 'src/sound_asset.h')
| -rw-r--r-- | src/sound_asset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound_asset.h b/src/sound_asset.h index e58773e4..79edea96 100644 --- a/src/sound_asset.h +++ b/src/sound_asset.h @@ -102,7 +102,7 @@ public: return _intrinsic_duration; } - std::string language () const { + boost::optional<std::string> language () const { return _language; } @@ -126,7 +126,7 @@ private: int64_t _intrinsic_duration = 0; int _channels = 0; ///< number of channels int _sampling_rate = 0; ///< sampling rate in Hz - std::string _language; + boost::optional<std::string> _language; }; |
