diff options
author | Werner Schweer <ws.seh.de> | 2006-06-20 12:18:13 +0000 |
---|---|---|
committer | Werner Schweer <ws.seh.de> | 2006-06-20 12:18:13 +0000 |
commit | f8e0a9c3555c5f513c2ca3c580f54a2b96af6993 (patch) | |
tree | 6a2196d6ba77deb16d44df9be43dae10d46e22a2 | |
parent | a4ae041737298822deae965846d6298b4f06d9b5 (diff) |
moved "gen" one dir level up
-rwxr-xr-x | gen (renamed from muse/gen) | 11 | ||||
-rw-r--r-- | muse/muse/audiotrack.cpp | 4 | ||||
-rw-r--r-- | muse/muse/wavetrack.cpp | 3 | ||||
-rw-r--r-- | muse/muse/widgets/CMakeLists.txt | 2 |
4 files changed, 12 insertions, 8 deletions
@@ -11,18 +11,17 @@ if test ! -d build; mkdir build echo "+entering build directory" cd build + + # HACK: + cp ../muse/all.h . + echo "+calling cmake" - cmake .. + cmake ../muse else echo "+entering build directory" cd build fi echo "+start top level make..." - -# -# HACK: -cp ../all.h . - make diff --git a/muse/muse/audiotrack.cpp b/muse/muse/audiotrack.cpp index fdeffafc..0d99a746 100644 --- a/muse/muse/audiotrack.cpp +++ b/muse/muse/audiotrack.cpp @@ -375,6 +375,10 @@ void AudioTrack::record() void AudioTrack::setChannels(int n) { + if (n > MAX_CHANNELS) { + fprintf(stderr, "too many channels!\n"); + abort(); + } Track::setChannels(n); if (_efxPipe) _efxPipe->setChannels(n); diff --git a/muse/muse/wavetrack.cpp b/muse/muse/wavetrack.cpp index b7a688d3..c3dce3f3 100644 --- a/muse/muse/wavetrack.cpp +++ b/muse/muse/wavetrack.cpp @@ -42,7 +42,7 @@ WaveTrack::WaveTrack() // // allocate prefetch buffer // - float* p = new float[FIFO_BUFFER * segmentSize * MAX_CHANNELS]; + float* p = new float[FIFO_BUFFER * segmentSize * MAX_CHANNELS]; float** pp = new float*[FIFO_BUFFER * MAX_CHANNELS]; for (int i = 0; i < FIFO_BUFFER; ++i) { @@ -381,6 +381,7 @@ void WaveTrack::process() void WaveTrack::clone(WaveTrack* t) { +printf("cline WaveTrack\n"); QString name; for (int i = 1; ; ++i) { name.sprintf("%s-%d", t->name().toLatin1().data(), i); diff --git a/muse/muse/widgets/CMakeLists.txt b/muse/muse/widgets/CMakeLists.txt index c7854cc8..5bdaacdf 100644 --- a/muse/muse/widgets/CMakeLists.txt +++ b/muse/muse/widgets/CMakeLists.txt @@ -57,7 +57,7 @@ QT4_WRAP_UI (widget_ui_headers # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/midisync.ui # ) -ADD_FILE_DEPENDENCIES(moc_midisync.cxx ${CMAKE_CURRENT_BINARY_DIR}/ui_midisync.h) +# ADD_FILE_DEPENDENCIES(moc_midisync.cxx ${CMAKE_CURRENT_BINARY_DIR}/ui_midisync.h) add_library ( widgets STATIC ${widget_ui_headers} |