OutputStream (file M0 -> M4 radio) now works

Disabled numbers station for now (too buggy, low priority)
This commit is contained in:
furrtek 2017-06-23 08:40:22 +01:00
parent c922a56b6d
commit 33a2df9d2a
15 changed files with 48 additions and 30 deletions

View file

@ -114,7 +114,15 @@ void ReplayView::toggle() {
void ReplayView::start() {
stop();
auto reader = std::make_unique<FileReader>();
std::unique_ptr<stream::Reader> reader;
auto p = std::make_unique<FileReader>();
auto create_error = p->open(file_options[options_files.selected_index()].first + ".C16");
if( create_error.is_valid() ) {
handle_error(create_error.value());
} else {
reader = std::move(p);
}
if( reader ) {
button_play.set_bitmap(&bitmap_stop);
@ -135,7 +143,7 @@ void ReplayView::start() {
update_status_display();
radio::enable({
434000000, //target_frequency(),
receiver_model.tuning_frequency(),
sampling_rate,
2500000, //baseband_bandwidth,
rf::Direction::Transmit,