1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Correções em Audio

This commit is contained in:
Danilo 2024-06-04 17:08:04 -03:00
parent 6151e60755
commit cc0e73a2e6
5 changed files with 14 additions and 11 deletions

View File

@ -9,14 +9,17 @@ if (POLICY CMP0141)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()
# CMAKE_TOOLCHAIN_FILE
# VCPKG source directory
set(PROJECT_VCPKG_DIRECTORY "C:/vcpkg")
set(PROJECT_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/inc")
# Includes directory
set(PROJECT_INCLUDES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/inc")
# CMAKE_TOOLCHAIN_FILE
include("${PROJECT_VCPKG_DIRECTORY}/scripts/buildsystems/vcpkg.cmake")
project ("xna")
# Include sub-projects.
include_directories(${PROJECT_INCLUDE_DIR})
include_directories(${PROJECT_INCLUDES_DIR})
add_subdirectory ("framework")
add_subdirectory ("samples")

View File

@ -53,5 +53,5 @@ find_package(directxtk CONFIG REQUIRED)
target_link_libraries(
Xn65 D3d11.lib dxgi.lib dxguid.lib d3dcompiler.lib Microsoft::DirectXTK
"${PROJECT_INCLUDE_DIR}/libmspack/mspack.lib"
"${PROJECT_INCLUDES_DIR}/libmspack/mspack.lib"
)

View File

@ -10,11 +10,7 @@ namespace xna {
SoundEffectInstance::~SoundEffectInstance() {
impl = nullptr;
}
//Remover posteriormente
SoundEffect::SoundEffect() {
}
}
SoundEffect::SoundEffect(String const& fileName) {
if (!AudioEngine::impl || !AudioEngine::impl->_dxAudioEngine)

View File

@ -25,8 +25,6 @@ namespace xna {
class SoundEffect {
public:
//Remover posteriormente ou implementar funções de carregamento dos dados
SoundEffect();
SoundEffect(String const& fileName);
SoundEffect(
std::vector<Byte> const& format,

View File

@ -2,6 +2,12 @@
#define XNA_ENUMS_HPP
namespace xna {
enum class AudioChannels
{
Mono = 1,
Stereo = 2,
};
enum class AudioReverb {
Off,
Default,