diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-28 17:07:56 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-28 17:07:56 +0200 |
commit | 3cb7227c3c9678141ff74915331b706265c380cb (patch) | |
tree | d47d662b4d26908b3d3d83f4a4df32a0cc489b72 /src/crepe/api/Resource.h | |
parent | 506090032a07f2f3a74a44d8c8774cbdd252c947 (diff) |
more WIP audio facade
Diffstat (limited to 'src/crepe/api/Resource.h')
-rw-r--r-- | src/crepe/api/Resource.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/crepe/api/Resource.h b/src/crepe/api/Resource.h index 620a10e..2260b1a 100644 --- a/src/crepe/api/Resource.h +++ b/src/crepe/api/Resource.h @@ -1,16 +1,21 @@ #pragma once #include <string> +#include <fstream> +#include <iostream> namespace crepe::api { class Resource { public: - Resource(const std::string & source); - virtual ~Resource(); + Resource(const std::string & src); + +public: + const std::istream & read(); private: - std::string _source; + std::string src; + std::ifstream file; }; } |