-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrwstream.h
More file actions
40 lines (30 loc) · 723 Bytes
/
rwstream.h
File metadata and controls
40 lines (30 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _rwstream_h
#define _rwstream_h
#include "rwchunk.h"
#include "rwtrack.h"
#include <memory>
#include <string>
#include <vector>
namespace rws
{
using track_ptr = std::shared_ptr<track>;
using track_list = std::vector<track_ptr>;
//---------------------------------------------------------------------------
class stream : public chunk
{
public:
stream(std::string const& filename);
~stream();
inline track_list tracks() const { return m_tracks; }
protected:
chunk m_header;
chunk m_data;
uint32_t m_track_count;
track_list m_tracks;
uint32_t m_cluster_size;
uint32_t m_cluster_used_bytes;
uint32_t m_sample_rate;
uint8_t m_channels;
};
}
#endif