Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions Examples/Tutorial10Fluidlite/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#-------------------------------------------------------------------
# This file is part of the CMake build system for CAUDIO
#-------------------------------------------------------------------

############################################################
# Tutorial1_3DSound Player
############################################################

PROJECT(Tutorial1_3DSound)

set (SOURCE_FILES
src/main.cpp
)

if(CAUDIO_IOS_BUILD)
# TODO add ios appdelegate
endif()


include_directories (include ${CAUDIO_INCLUDE_DIR} )
add_executable(Tutorial1_3DSound ${SOURCE_FILES})

target_link_libraries(Tutorial1_3DSound cAudio)
add_dependencies(Tutorial1_3DSound cAudio)

if(CAUDIO_IOS_BUILD)
set_source_files_properties(src/main.cpp PROPERTIES COMPILE_FLAGS "-x objective-c++")
endif()

if(${CAUDIO_STATIC})
ADD_DEFINITIONS(-DCAUDIO_STATIC_LIB=1)
endif()

if (WIN32)
# append _d for debug builds
set_property(TARGET Tutorial1_3DSound APPEND PROPERTY DEBUG_POSTFIX "_d")
endif()

if (APPLE)
# On OS X, create .app bundle
set_property(TARGET Tutorial1_3DSound PROPERTY MACOSX_BUNDLE TRUE)
set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.YOUR_COMPANY.\${PRODUCT_NAME:rfc1034identifier}")
set_property(TARGET Tutorial1_3DSound PROPERTY MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist)

if(CAUDIO_IOS_BUILD)
set_target_properties(Tutorial1_3DSound PROPERTIES XCODE_ATTRIBUTE_GCC_THUMB_SUPPORT "NO")
set_target_properties(Tutorial1_3DSound PROPERTIES XCODE_ATTRIBUTE_GCC_UNROLL_LOOPS "YES")
set_target_properties(Tutorial1_3DSound PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer")
endif()

endif ()

install_all_targets(Tutorial1_3DSound)

107 changes: 107 additions & 0 deletions Examples/Tutorial10Fluidlite/cAudioEngineLog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cAudio Log</title>
<style type="text/css">
body, html {
background: #000000;
width: 1000px;
font-family: Arial;
font-size: 16px;
color: #C0C0C0;
}
h1 {
color : #FFFFFF;
border-bottom : 1px dotted #888888;
}
pre {
font-family : arial;
margin : 0;
}
.box {
border : 1px dotted #818286;
padding : 5px;
margin: 5px;
width: 950px;
background-color : #292929;
}
.err {
color: #EE1100;
font-weight: bold
}
.warn {
color: #FFCC00;
font-weight: bold
}
.crit {
color: #BB0077;
font-weight: bold
}
.info {
color: #C0C0C0;
}
.debug {
color: #CCA0A0;
}
</style>
</head>

<body>
<h1>cAudio Log</h1>
<h3>2.2.0</h3>
<div class="box">
<table>
<tr>
<td width="100">0.000293</td>
<td class="info"><pre>
Audio Decoder for extension .wav registered.
</pre></td>
</tr>
<tr>
<td width="100">0.000364</td>
<td class="info"><pre>
Audio Decoder for extension .raw registered.
</pre></td>
</tr>
<tr>
<td width="100">0.000409</td>
<td class="info"><pre>
Data Source named FileSystem registered (Priority 0).
</pre></td>
</tr>
<tr>
<td width="100">0.013912</td>
<td class="info"><pre>
OpenAL Version: 1.1 ALSOFT 1.15.1
</pre></td>
</tr>
<tr>
<td width="100">0.01417</td>
<td class="info"><pre>
Vendor: OpenAL Community
</pre></td>
</tr>
<tr>
<td width="100">0.014328</td>
<td class="info"><pre>
Renderer: OpenAL Soft
</pre></td>
</tr>
<tr>
<td width="100">0.01443</td>
<td class="info"><pre>
Supported Extensions: AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_source_latency
</pre></td>
</tr>
<tr>
<td width="100">0.015375</td>
<td class="info"><pre>
Audio Source (bling) created from Data Source FileSystem.
</pre></td>
</tr>
<tr>
<td width="100">1.48142</td>
<td class="info"><pre>
Manager successfully shutdown.
</pre></td>
</tr>
52 changes: 52 additions & 0 deletions Examples/Tutorial10Fluidlite/cmake_install.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Install script for directory: /home/Dev/libs/Media/cAudio/cAudio-master2.3/Examples/Tutorial2_3DSound

# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
if(BUILD_TYPE)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "RelWithDebInfo")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()

# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
if(COMPONENT)
message(STATUS "Install component: \"${COMPONENT}\"")
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
else()
set(CMAKE_INSTALL_COMPONENT)
endif()
endif()

# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "0")
endif()

if(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/Tutorial1_3DSound" AND
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/Tutorial1_3DSound")
file(RPATH_CHECK
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/Tutorial1_3DSound"
RPATH "")
endif()
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE EXECUTABLE FILES "/home/Dev/libs/Media/cAudio/cAudio-master2.3/Examples/Tutorial2_3DSound/Tutorial1_3DSound")
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/Tutorial1_3DSound" AND
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/Tutorial1_3DSound")
file(RPATH_REMOVE
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/Tutorial1_3DSound")
if(CMAKE_INSTALL_DO_STRIP)
execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/Tutorial1_3DSound")
endif()
endif()
endif()

183 changes: 183 additions & 0 deletions Examples/Tutorial10Fluidlite/src/Tutorial10fluidlite.cbp
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Tutorial10:fluidlite" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="../../bin/win32-gcc/Tutorial1_2DSound_d" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add library="cAudio_d" />
</Linker>
</Target>
<Target title="Release">
<Option output="../../bin/win32-gcc/Tutorial1_2DSound" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
<Add library="cAudio" />
</Linker>
</Target>
<Target title="Debug Visual">
<Option output="../../bin/win32-visual/Tutorial1_2DSound_d" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/visual" />
<Option type="1" />
<Option compiler="msvc8" />
<Option use_console_runner="0" />
<Compiler>
<Add option="/Zi /D_DEBUG" />
</Compiler>
<Linker>
<Add option="/DEBUG" />
<Add library="cAudio_d.lib" />
<Add directory="../../bin/win32-visual" />
</Linker>
</Target>
<Target title="Release Visual">
<Option output="../../bin/win32-visual/Tutorial1_2DSound" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/visual" />
<Option type="1" />
<Option compiler="msvc8" />
<Option use_console_runner="0" />
<Linker>
<Add library="cAudio.lib" />
<Add directory="../../bin/win32-visual" />
</Linker>
</Target>
<Target title="Linux">
<Option output="../../bin/gcc/Tutorial1_2DSound" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
<Add library="cAudio" />
<Add library="ogg" />
<Add library="vorbisenc" />
<Add library="vorbisfile" />
<Add library="vorbis" />
<Add library="openal" />
<Add library="pthread" />
<Add library="dl" />
<Add directory="../../bin/gcc" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add directory="../../../cAudio/include" />
<Add directory="standalone/include" />
</Compiler>
<Linker>
<Add directory="../../bin/win32-gcc" />
<Add directory="../../../cAudio/bin/gcc" />
<Add directory="FluidLite-netpipe/src" />
<Add directory="FluidLite-netpipe" />
<Add directory="../../../cAudio" />
</Linker>
<Unit filename="cAudioDemo.cpp" />
<Unit filename="standalone/fluid_chan.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_chan.h" />
<Unit filename="standalone/fluid_chorus.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_chorus.h" />
<Unit filename="standalone/fluid_config.h" />
<Unit filename="standalone/fluid_conv.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_conv.h" />
<Unit filename="standalone/fluid_defsfont.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_defsfont.h" />
<Unit filename="standalone/fluid_dsp_float.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_gen.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_gen.h" />
<Unit filename="standalone/fluid_hash.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_hash.h" />
<Unit filename="standalone/fluid_init.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_list.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_list.h" />
<Unit filename="standalone/fluid_midi.h" />
<Unit filename="standalone/fluid_mod.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_mod.h" />
<Unit filename="standalone/fluid_phase.h" />
<Unit filename="standalone/fluid_ramsfont.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_ramsfont.h" />
<Unit filename="standalone/fluid_rev.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_rev.h" />
<Unit filename="standalone/fluid_settings.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_settings.h" />
<Unit filename="standalone/fluid_sfont.h" />
<Unit filename="standalone/fluid_synth.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_synth.h" />
<Unit filename="standalone/fluid_sys.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_sys.h" />
<Unit filename="standalone/fluid_tuning.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_tuning.h" />
<Unit filename="standalone/fluid_voice.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="standalone/fluid_voice.h" />
<Unit filename="standalone/fluidsynth_priv.h" />
<Unit filename="standalone/include/fluidlite.h" />
<Unit filename="standalone/include/fluidsynth/gen.h" />
<Unit filename="standalone/include/fluidsynth/log.h" />
<Unit filename="standalone/include/fluidsynth/misc.h" />
<Unit filename="standalone/include/fluidsynth/mod.h" />
<Unit filename="standalone/include/fluidsynth/ramsfont.h" />
<Unit filename="standalone/include/fluidsynth/settings.h" />
<Unit filename="standalone/include/fluidsynth/sfont.h" />
<Unit filename="standalone/include/fluidsynth/synth.h" />
<Unit filename="standalone/include/fluidsynth/types.h" />
<Unit filename="standalone/include/fluidsynth/version.h" />
<Unit filename="standalone/include/fluidsynth/voice.h" />
<Unit filename="standalone/stb/stb_vorbis.c">
<Option compilerVar="CC" />
</Unit>
<Extensions />
</Project>
</CodeBlocks_project_file>
Loading