Wavfile class

This commit is contained in:
furrtek 2016-12-07 20:49:42 +01:00
parent e56fa0f479
commit 1db138c27a
20 changed files with 640 additions and 312 deletions

View file

@ -29,8 +29,9 @@
#include "baseband_api.hpp"
#include "ui_navigation.hpp"
#include "ui_receiver.hpp"
#include "utility.hpp"
#include "message.hpp"
#include "file.hpp"
#include "wavfile.hpp"
namespace ui {
@ -63,15 +64,15 @@ private:
uint32_t ms_duration = 0;
};
uint32_t cnt;
uint32_t sample_counter;
uint32_t sample_duration;
uint8_t page = 0;
File file;
uint16_t lfsr_v = 0x1337;
sound sounds[100];
std::unique_ptr<WAVFileReader> reader;
sound sounds[105];
uint8_t max_sound;
uint8_t max_page;
@ -112,8 +113,6 @@ private:
void play_sound(uint16_t id);
void prepare_audio();
void on_ctcss_changed(uint32_t v);
uint16_t fb_to_uint16(const std::string& fb);
uint32_t fb_to_uint32(const std::string& fb);
Text text_duration {
{ 16, 236, 5 * 8, 16 }