Skip to content

Commit ee16aac

Browse files
author
litongmacos
committed
change directory
1 parent b8bb74f commit ee16aac

26 files changed

+41
-37
lines changed

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
3838
endif ()
3939

4040

41-
add_executable(sdl_version sdl_version.cpp)
41+
add_executable(sdl_version examples/sdl_version.cpp)
4242
target_link_libraries(sdl_version ${SDL2_LIBRARIES})
4343

44-
add_executable(simplest simplest.cpp common.cpp)
44+
add_executable(simplest examples/simplest.cpp common/common.cpp)
4545
target_link_libraries(simplest whisper)
4646

47-
add_executable(stream_local stream_local.cpp common.cpp common-sdl.cpp
48-
stream_components_service.cpp stream_components_audio.cpp
49-
stream_components_output.cpp
47+
add_executable(stream_local examples/stream_local.cpp common/common.cpp common/common-sdl.cpp
48+
stream/stream_components_service.cpp stream/stream_components_audio.cpp
49+
stream/stream_components_output.cpp
5050
)
5151
target_link_libraries(stream_local whisper ${SDL2_LIBRARIES})
5252

53-
add_executable(whisper_http_server_base_httplib whisper_http_server_base_httplib.cpp common.cpp httplib.h nlohmann/json.hpp inference_handler.cpp whisper_params.cpp)
53+
add_executable(whisper_http_server_base_httplib whisper_http_server_base_httplib.cpp common/common.cpp httplib/httplib.h nlohmann/json.hpp handler/inference_handler.cpp params/whisper_params.cpp)
5454
target_link_libraries(whisper_http_server_base_httplib whisper)
5555

56-
add_executable(whisper_server_base_on_uwebsockets whisper_server_base_on_uwebsockets.cpp stream_components_service.cpp)
56+
add_executable(whisper_server_base_on_uwebsockets whisper_server_base_on_uwebsockets.cpp stream/stream_components_service.cpp)
5757
#添加头文件
5858
target_include_directories(whisper_server_base_on_uwebsockets PRIVATE ${UWEBSOCKETS_INCLUDE_DIRS})
5959
# 链接 uWebSockets、zlib、libuv 和 uSockets 库
File renamed without changes.
File renamed without changes.
File renamed without changes.

common-sdl.h renamed to common/common-sdl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3-
#include <SDL.h>
4-
#include <SDL_audio.h>
3+
#include "SDL2/SDL.h"
4+
#include "SDL2/SDL_audio.h"
55

66
#include <atomic>
77
#include <cstdint>

common.cpp renamed to common/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// use your favorite implementations
77
#define DR_WAV_IMPLEMENTATION
88

9-
#include "dr_wav.h"
9+
#include "../dr_libs/dr_wav.h"
1010

1111
#include <cmath>
1212
#include <cstring>
File renamed without changes.
File renamed without changes.

sdl_version.cpp renamed to examples/sdl_version.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ int main(int argc, char *argv[]) {
55
SDL_version compiled;
66
SDL_version linked;
77

8-
SDL_VERSION(&compiled); // 获取编译时的SDL版本
9-
SDL_GetVersion(&linked); // 获取链接时的SDL版本
8+
SDL_VERSION(&compiled); // get compiled SDL version
9+
SDL_GetVersion(&linked); // get linked SDL version
1010

1111
std::cout << "We compiled against SDL version "
1212
<< static_cast<int>(compiled.major) << "."
1313
<< static_cast<int>(compiled.minor) << "."
1414
<< static_cast<int>(compiled.patch) << std::endl;
1515

16-
std::cout << "But we are linking against SDL version "
16+
std::cout << "We are linking against SDL version "
1717
<< static_cast<int>(linked.major) << "."
1818
<< static_cast<int>(linked.minor) << "."
1919
<< static_cast<int>(linked.patch) << std::endl;

simplest.cpp renamed to examples/simplest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "common.h"
1+
#include "../common/common.h"
22

33
#include "whisper.h"
44

0 commit comments

Comments
 (0)