Added FifoStream and WaveRecorder

This commit is contained in:
Daniel Brunner
2018-12-16 22:17:41 +01:00
parent e31dffb94f
commit 030005da70
7 changed files with 157 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <QDataStream>
#include <array>
template<typename T, std::size_t L>
inline QDataStream &operator>>(QDataStream &s, std::array<T, L> &l)
{
for(auto iter = std::begin(l); iter != std::end(l); iter++)
s >> *iter;
return s;
}
template<typename T, std::size_t L>
inline QDataStream &operator<<(QDataStream &s, const std::array<T, L> &l)
{
for(auto iter = std::begin(l); iter != std::end(l); iter++)
s << *iter;
return s;
}