mirror of
https://github.com/halleysfifthinc/AVCLAN-Mockingboard.git
synced 2026-08-07 01:13:18 +00:00
fixup dev refs
This commit is contained in:
@@ -143,7 +143,7 @@ private:
|
|||||||
dev.resolvepending();
|
dev.resolvepending();
|
||||||
}
|
}
|
||||||
template <Device Dev>
|
template <Device Dev>
|
||||||
void device_preroute(Dev dev, const Frame *in, Frame *out) {
|
void device_preroute(Dev &dev, const Frame *in, Frame *out) {
|
||||||
out->owning_device = Dev::id;
|
out->owning_device = Dev::id;
|
||||||
dev.handle(in, out);
|
dev.handle(in, out);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ int main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
peripheral.poll_devices([&](auto dev) {
|
peripheral.poll_devices([&](auto &dev) {
|
||||||
if (auto status = cache.pop()) {
|
if (auto status = cache.pop()) {
|
||||||
dev.emit(status.get());
|
dev.emit(status.get());
|
||||||
outgoing.push(std::move(status));
|
outgoing.push(std::move(status));
|
||||||
|
|||||||
Reference in New Issue
Block a user