mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 06:27:12 +03:00
new cspot/bell
This commit is contained in:
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.18)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../ ${CMAKE_CURRENT_BINARY_DIR}/bell)
|
||||
|
||||
file(GLOB SOURCES "*.cpp")
|
||||
|
||||
@@ -1,26 +1,14 @@
|
||||
#include <memory.h>
|
||||
#include <atomic>
|
||||
#include <cmath>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include "AudioCodecs.h"
|
||||
#include "AudioContainers.h"
|
||||
#include "BellHTTPServer.h"
|
||||
#include "BellTar.h"
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
#include "BellTask.h"
|
||||
#include "CentralAudioBuffer.h"
|
||||
#include "Compressor.h"
|
||||
#include "DecoderGlobals.h"
|
||||
#include "EncodedAudioStream.h"
|
||||
#include "HTTPClient.h"
|
||||
#include "PortAudioSink.h"
|
||||
#define DEBUG_LEVEL 4
|
||||
#include "X509Bundle.h"
|
||||
#include "mbedtls/debug.h"
|
||||
#include "StreamInfo.h"
|
||||
|
||||
#define DEBUG_LEVEL 4
|
||||
#include <BellDSP.h>
|
||||
#include <BellLogger.h>
|
||||
|
||||
@@ -58,13 +46,8 @@ class AudioPlayer : bell::Task {
|
||||
int main() {
|
||||
bell::setDefaultLogger();
|
||||
|
||||
std::fstream file("system.tar", std::ios::in | std::ios::binary);
|
||||
if (!file.is_open()) {
|
||||
std::cout << "file not open" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
BellTar::reader reader(file);
|
||||
reader.extract_all_files("./dupa2");
|
||||
BELL_LOG(info, "cock", "Published?");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user