summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4fe06f4)
This is needed on OSX/x86_64 where one is a typedef to unsigned long and the
other to unsigned long long. Both are the same size, but they are still
considered different types for the purposes of template instantiation, so the
specialisations which are defined for Glib::Variant<guint64> are not found if
Glib::Variant<uint64_t> is used.
try {
auto gvar = device->config_get(ConfigKey::SAMPLERATE);
uint64_t samplerate =
try {
auto gvar = device->config_get(ConfigKey::SAMPLERATE);
uint64_t samplerate =
- Glib::VariantBase::cast_dynamic<Glib::Variant<uint64_t>>(gvar).get();
+ Glib::VariantBase::cast_dynamic<Glib::Variant<guint64>>(gvar).get();
assert(!_updating_sample_rate);
_updating_sample_rate = true;
_sample_rate.set_value(samplerate);
assert(!_updating_sample_rate);
_updating_sample_rate = true;
_sample_rate.set_value(samplerate);
if (capabilities.count(Capability::SET))
{
device->config_set(ConfigKey::LIMIT_FRAMES,
if (capabilities.count(Capability::SET))
{
device->config_set(ConfigKey::LIMIT_FRAMES,
- Glib::Variant<uint64_t>::create(1));
+ Glib::Variant<guint64>::create(1));
on_config_changed();
}
break;
on_config_changed();
}
break;
{
try {
device->config_set(ConfigKey::LIMIT_SAMPLES,
{
try {
device->config_set(ConfigKey::LIMIT_SAMPLES,
- Glib::Variant<uint64_t>::create(sample_count));
+ Glib::Variant<guint64>::create(sample_count));
on_config_changed();
} catch (Error error) {
qDebug() << "Failed to configure sample count.";
on_config_changed();
} catch (Error error) {
qDebug() << "Failed to configure sample count.";
_updating_sample_rate = true;
try {
device->config_set(ConfigKey::SAMPLERATE,
_updating_sample_rate = true;
try {
device->config_set(ConfigKey::SAMPLERATE,
- Glib::Variant<uint64_t>::create(sample_rate));
+ Glib::Variant<guint64>::create(sample_rate));
on_config_changed();
} catch (Error error) {
qDebug() << "Failed to configure samplerate.";
on_config_changed();
} catch (Error error) {
qDebug() << "Failed to configure samplerate.";