You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
(58) |
Apr
(100) |
May
(92) |
Jun
(12) |
Jul
|
Aug
|
Sep
(5) |
Oct
(1) |
Nov
(26) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(31) |
Feb
(20) |
Mar
(1) |
Apr
|
May
(5) |
Jun
(10) |
Jul
|
Aug
(2) |
Sep
|
Oct
(2) |
Nov
|
Dec
(1) |
| 2010 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(36) |
May
(10) |
Jun
|
Jul
(38) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
(6) |
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
(14) |
Aug
(56) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(13) |
Dec
(2) |
| 2013 |
Jan
(30) |
Feb
|
Mar
(43) |
Apr
(28) |
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(10) |
Nov
(2) |
Dec
|
| 2014 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <pst...@us...> - 2008-04-05 05:19:55
|
Revision: 396
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=396&view=rev
Author: pstieber
Date: 2008-04-04 22:19:53 -0700 (Fri, 04 Apr 2008)
Log Message:
-----------
Commented some code that caused an unkillable process on Mandriva 2008.0 and removed some debug output.
Modified Paths:
--------------
trunk/jazz/src/AlsaDriver.cpp
trunk/jazz/src/AlsaPlayer.cpp
trunk/jazz/src/AlsaThru.cpp
trunk/jazz/src/JazzPlusPlusApplication.cpp
trunk/jazz/src/Player.cpp
trunk/jazz/src/Project.cpp
Modified: trunk/jazz/src/AlsaDriver.cpp
===================================================================
--- trunk/jazz/src/AlsaDriver.cpp 2008-04-05 01:37:46 UTC (rev 395)
+++ trunk/jazz/src/AlsaDriver.cpp 2008-04-05 05:19:53 UTC (rev 396)
@@ -135,7 +135,6 @@
tAlsaAudioPlayer::~tAlsaAudioPlayer()
{
- cout << "Deleting ALSA audio driver start..." << endl;
delete listener;
delete AudioBuffer;
if (pcm[PLAYBACK])
@@ -148,7 +147,6 @@
snd_pcm_close(pcm[CAPTURE]);
pcm[CAPTURE] = NULL;
}
- cout << "Done." << endl;
}
Modified: trunk/jazz/src/AlsaPlayer.cpp
===================================================================
--- trunk/jazz/src/AlsaPlayer.cpp 2008-04-05 01:37:46 UTC (rev 395)
+++ trunk/jazz/src/AlsaPlayer.cpp 2008-04-05 05:19:53 UTC (rev 396)
@@ -301,7 +301,8 @@
{
delete thru;
}
- snd_seq_close(handle);
+ // The following call caused an unkillable process on Mandriva 2008.0.
+// snd_seq_close(handle);
}
//-----------------------------------------------------------------------------
@@ -437,7 +438,6 @@
ev.source = self;
ev.dest = self;
snd_seq_ev_schedule_tick(&ev, queue, 0, clock);
- cout << "scheduling echo for " << clock << endl;
snd_seq_ev_set_fixed(&ev);
ev.type = SND_SEQ_EVENT_ECHO;
ev.data.raw32.d[0] = arg;
@@ -464,7 +464,6 @@
//-----------------------------------------------------------------------------
void tAlsaPlayer::StartPlay(long clock, long loopClock, int cont)
{
- cout << "tAlsaPlayer::StartPlay" << endl;
recd_clock = clock;
echo_clock = clock;
play_clock = clock;
Modified: trunk/jazz/src/AlsaThru.cpp
===================================================================
--- trunk/jazz/src/AlsaThru.cpp 2008-04-05 01:37:46 UTC (rev 395)
+++ trunk/jazz/src/AlsaThru.cpp 2008-04-05 05:19:53 UTC (rev 396)
@@ -62,8 +62,10 @@
tAlsaThru::~tAlsaThru()
{
- if (running)
- Stop();
+ // Calling Stop() caused the creation of an unkillable process on Mandriva
+ // 2008.0.
+// if (running)
+// Stop();
}
@@ -124,7 +126,8 @@
// disconnect midi-thru
void tAlsaThru::Stop()
{
- if (running) {
+ if (running)
+ {
initialize();
disconnect(source, destin);
running = 0;
Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp
===================================================================
--- trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-04-05 01:37:46 UTC (rev 395)
+++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-04-05 05:19:53 UTC (rev 396)
@@ -47,10 +47,6 @@
#endif
-#include <iostream>
-
-using namespace std;
-
//*****************************************************************************
// Description:
// This is the JazzPlusPlus application class definition.
@@ -108,7 +104,6 @@
//-----------------------------------------------------------------------------
JZJazzPlusPlusApplication::~JZJazzPlusPlusApplication()
{
- cout << "In the application desstructor" << endl;
}
//-----------------------------------------------------------------------------
@@ -172,7 +167,6 @@
// Prevent reported leaks from the configuration class.
delete wxConfigBase::Set(0);
- cout << "Done in OnExit" << endl;
return 0;
}
Modified: trunk/jazz/src/Player.cpp
===================================================================
--- trunk/jazz/src/Player.cpp 2008-04-05 01:37:46 UTC (rev 395)
+++ trunk/jazz/src/Player.cpp 2008-04-05 05:19:53 UTC (rev 396)
@@ -205,7 +205,9 @@
JZPlayer::~JZPlayer()
{
+ cout << "JZPlayer delete start..." << endl;
delete PlayLoop;
+ cout << "JZPlayer delete end..." << endl;
}
Modified: trunk/jazz/src/Project.cpp
===================================================================
--- trunk/jazz/src/Project.cpp 2008-04-05 01:37:46 UTC (rev 395)
+++ trunk/jazz/src/Project.cpp 2008-04-05 05:19:53 UTC (rev 396)
@@ -170,19 +170,24 @@
mpMidiPlayer = new tAudioPlayer(this);
if (!mpMidiPlayer->Installed())
{
+ cerr << "tAudioPlayer didn't install." << endl;
+
delete mpMidiPlayer;
mpMidiPlayer = new tSeq2Player(this);
}
if (!mpMidiPlayer->Installed())
{
+ cerr << "tSeq2Player didn't install." << endl;
+
perror("/dev/music");
- cerr
- << "(dev_sequencer2)Jazz will start with no play/record ability."
- << endl;
+
+ cerr << "Jazz will start with no play/record ability." << endl;
+ delete mpMidiPlayer;
mpMidiPlayer = new tNullPlayer(this);
}
#else
- cerr << "This programm lacks OSS driver support" << endl;
+ cerr << "This programm lacks OSS driver support." << endl;
+ cerr << "Jazz will start with no play/record ability." << endl;
mpMidiPlayer = new tNullPlayer(this);
#endif // DEV_SEQUENCER2
}
@@ -192,20 +197,25 @@
mpMidiPlayer = new tAlsaAudioPlayer(this);
if (!mpMidiPlayer->Installed())
{
+ cerr << "tAlsaAudioPlayer didn't install." << endl;
+
delete mpMidiPlayer;
- cout << "creating alsa player" << endl;
mpMidiPlayer = new tAlsaPlayer(this);
}
if (!mpMidiPlayer->Installed())
{
+ cerr << "tAlsaPlayer didn't install." << endl;
+
cerr
<< "Could not install alsa driver." << '\n'
<< "Jazz will start with no play/record ability."
<< endl;
+ delete mpMidiPlayer;
mpMidiPlayer = new tNullPlayer(this);
}
#else
cerr << "This programm lacks ALSA driver support" << endl;
+ cerr << "Jazz will start with no play/record ability." << endl;
mpMidiPlayer = new tNullPlayer(this);
#endif
}
@@ -215,15 +225,19 @@
mpMidiPlayer = new tMpuPlayer(this);
if (!mpMidiPlayer->Installed())
{
+ cerr << "tMpuPlayer didn't install." << endl;
+
cerr
<< "Could not connect to midinet server at host \""
<< %midinethost << "\"\n"
<< "Jazz will start with no play/record ability."
<< endl;
+ delete mpMidiPlayer;
mpMidiPlayer = new tNullPlayer(this);
}
#else
cerr << "This programm lacks JAZZ/MPU401 driver support" << endl;
+ cerr << "Jazz will start with no play/record ability." << endl;
mpMidiPlayer = new tNullPlayer(this);
#endif
}
@@ -325,7 +339,6 @@
delete mpSynth;
delete mpRecInfo;
delete mpConfig;
- cout << "Done Deleting the project." << endl;
}
//-----------------------------------------------------------------------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-05 01:37:48
|
Revision: 395
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=395&view=rev
Author: pstieber
Date: 2008-04-04 18:37:46 -0700 (Fri, 04 Apr 2008)
Log Message:
-----------
Reverting an accidental commit.
Modified Paths:
--------------
trunk/jazz/config/config.guess
trunk/jazz/config/config.sub
trunk/jazz/config/ltmain.sh
Modified: trunk/jazz/config/config.guess
===================================================================
--- trunk/jazz/config/config.guess 2008-04-05 01:35:12 UTC (rev 394)
+++ trunk/jazz/config/config.guess 2008-04-05 01:37:46 UTC (rev 395)
@@ -1,9 +1,10 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
+# Inc.
-timestamp='2005-12-13'
+timestamp='2006-07-02'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -106,7 +107,7 @@
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
@@ -206,8 +207,11 @@
*:ekkoBSD:*:*)
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
macppc:MirBSD:*:*)
- echo powerppc-unknown-mirbsd${UNAME_RELEASE}
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
exit ;;
*:MirBSD:*:*)
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
@@ -764,7 +768,14 @@
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ case ${UNAME_MACHINE} in
+ pc98)
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
@@ -779,9 +790,12 @@
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
- x86:Interix*:[345]*)
- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
+ x86:Interix*:[3456]*)
+ echo i586-pc-interix${UNAME_RELEASE}
exit ;;
+ EM64T:Interix*:[3456]*)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
exit ;;
@@ -817,6 +831,9 @@
arm*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
cris:Linux:*:*)
echo cris-axis-linux-gnu
exit ;;
@@ -851,7 +868,11 @@
#endif
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
;;
mips64:Linux:*:*)
@@ -870,7 +891,11 @@
#endif
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
;;
or32:Linux:*:*)
@@ -967,7 +992,7 @@
LIBC=gnulibc1
# endif
#else
- #if defined(__INTEL_COMPILER) || defined(__PGI)
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
LIBC=gnu
#else
LIBC=gnuaout
@@ -977,7 +1002,11 @@
LIBC=dietlibc
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^LIBC/{
+ s: ::g
+ p
+ }'`"
test x"${LIBC}" != x && {
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
exit
Modified: trunk/jazz/config/config.sub
===================================================================
--- trunk/jazz/config/config.sub 2008-04-05 01:35:12 UTC (rev 394)
+++ trunk/jazz/config/config.sub 2008-04-05 01:37:46 UTC (rev 395)
@@ -1,9 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
+# Inc.
-timestamp='2005-12-11'
+timestamp='2006-09-20'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -240,7 +241,7 @@
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
@@ -248,7 +249,8 @@
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
- | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | mcore \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
@@ -268,26 +270,25 @@
| mn10200 | mn10300 \
| mt \
| msp430 \
+ | nios | nios2 \
| ns16k | ns32k \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
- | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
- | sparcv8 | sparcv9 | sparcv9b \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
| spu | strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
| we32k \
- | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
| z8k)
basic_machine=$basic_machine-unknown
;;
- m32c)
- basic_machine=$basic_machine-unknown
- ;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
basic_machine=$basic_machine-unknown
@@ -317,7 +318,7 @@
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
- | avr-* \
+ | avr-* | avr32-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
| clipper-* | craynv-* | cydra-* \
@@ -328,7 +329,7 @@
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
- | m32r-* | m32rle-* \
+ | m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | maxq-* | mcore-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
@@ -350,29 +351,28 @@
| mmix-* \
| mt-* \
| msp430-* \
+ | nios-* | nios2-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| pyramid-* \
| romp-* | rs6000-* \
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
- | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tron-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
- | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
| xstormy16-* | xtensa-* \
| ymp-* \
| z8k-*)
;;
- m32c-*)
- ;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)
@@ -818,6 +818,12 @@
pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
@@ -904,6 +910,10 @@
sb1el)
basic_machine=mipsisa64sb1el-unknown
;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
sei)
basic_machine=mips-sei
os=-seiux
@@ -1120,7 +1130,7 @@
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
- sparc | sparcv8 | sparcv9 | sparcv9b)
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
basic_machine=sparc-sun
;;
cydra)
@@ -1193,7 +1203,8 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -openbsd* | -solidbsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
@@ -1208,7 +1219,7 @@
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos*)
+ | -skyos* | -haiku* | -rdos* | -toppers*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1360,9 +1371,12 @@
# system, and we'll never get to this point.
case $basic_machine in
- spu-*)
+ score-*)
os=-elf
;;
+ spu-*)
+ os=-elf
+ ;;
*-acorn)
os=-riscix1.2
;;
@@ -1372,9 +1386,9 @@
arm*-semi)
os=-aout
;;
- c4x-* | tic4x-*)
- os=-coff
- ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
# This must come before the *-dec entry.
pdp10-*)
os=-tops20
Modified: trunk/jazz/config/ltmain.sh
===================================================================
--- trunk/jazz/config/ltmain.sh 2008-04-05 01:35:12 UTC (rev 394)
+++ trunk/jazz/config/ltmain.sh 2008-04-05 01:37:46 UTC (rev 395)
@@ -1,8 +1,8 @@
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun configure.
#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
-# Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
+# 2007 Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <go...@gn...>, 1996
#
# This program is free software; you can redistribute it and/or modify
@@ -33,9 +33,6 @@
# function.
progpath="$0"
-# define SED for historic ltconfig's generated by Libtool 1.3
-test -z "$SED" && SED=sed
-
# The name of this program:
progname=`echo "$progpath" | $SED $basename`
modename="$progname"
@@ -46,8 +43,8 @@
PROGRAM=ltmain.sh
PACKAGE=libtool
-VERSION=1.5.22
-TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
+VERSION=1.5.24
+TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
@@ -60,6 +57,8 @@
else
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
# Check that we have a working $echo.
if test "X$1" = X--no-reexec; then
@@ -117,10 +116,10 @@
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
do
eval "if test \"\${$lt_var+set}\" = set; then
- save_$lt_var=\$$lt_var
- $lt_var=C
- export $lt_var
- fi"
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ fi"
done
# Make sure IFS has a sensible default
@@ -209,7 +208,13 @@
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
win32_nmres=`eval $NM -f posix -A $1 | \
- $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
+ $SED -n -e '1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
case $win32_nmres in
import*) win32_libid_type="x86 archive import";;
*) win32_libid_type="x86 archive static";;
@@ -343,11 +348,11 @@
my_xlib_u=$my_xlib
while :; do
case " $extracted_archives " in
- *" $my_xlib_u "*)
- extracted_serial=`expr $extracted_serial + 1`
- my_xlib_u=lt$extracted_serial-$my_xlib ;;
- *) break ;;
- esac
+ *" $my_xlib_u "*)
+ extracted_serial=`expr $extracted_serial + 1`
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
done
extracted_archives="$extracted_archives $my_xlib_u"
my_xdir="$my_gentop/$my_xlib_u"
@@ -411,19 +416,8 @@
#####################################
# Darwin sucks
-#eval std_shrext=\"$shrext_cmds\"
-
-# And fixing for Darwin sucks for everybody else
-if test -z "$shrext_cmds" && test -n "$shrext"; then
- eval shrext_cmds=\"$shrext\"
-fi
-
eval std_shrext=\"$shrext_cmds\"
-# This value is evaluated to 32768, so place it here as a compatilibity hack
-# because older libtool.m4 didn't define this variable
-test -z "$max_cmd_len" && max_cmd_len=32768
-
disable_libs=no
# Parse our command line options once, thoroughly.
@@ -488,11 +482,12 @@
;;
--version)
- $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
- $echo
- $echo "Copyright (C) 2005 Free Software Foundation, Inc."
- $echo "This is free software; see the source for copying conditions. There is NO"
- $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+ echo "\
+$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
+
+Copyright (C) 2007 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
exit $?
;;
@@ -789,7 +784,7 @@
*.class) xform=class ;;
*.cpp) xform=cpp ;;
*.cxx) xform=cxx ;;
- *.f90) xform=f90 ;;
+ *.[fF][09]?) xform=[fF][09]. ;;
*.for) xform=for ;;
*.java) xform=java ;;
*.obj) xform=obj ;;
@@ -1174,8 +1169,8 @@
do
case $arg in
-all-static | -static | -static-libtool-libs)
- case $arg in
- -all-static)
+ case $arg in
+ -all-static)
if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
$echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
fi
@@ -1184,19 +1179,19 @@
fi
prefer_static_libs=yes
;;
- -static)
+ -static)
if test -z "$pic_flag" && test -n "$link_static_flag"; then
dlopen_self=$dlopen_self_static
fi
prefer_static_libs=built
;;
- -static-libtool-libs)
- if test -z "$pic_flag" && test -n "$link_static_flag"; then
- dlopen_self=$dlopen_self_static
- fi
- prefer_static_libs=yes
- ;;
- esac
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
build_libtool_libs=no
build_old_libs=yes
break
@@ -1644,7 +1639,7 @@
continue
;;
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
compiler_flags="$compiler_flags $arg"
compile_command="$compile_command $arg"
finalize_command="$finalize_command $arg"
@@ -1664,10 +1659,11 @@
# -m* pass through architecture-specific compiler args for GCC
# -m*, -t[45]*, -txscale* pass through architecture-specific
# compiler args for GCC
- # -pg pass through profiling flag for GCC
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
# @file GCC response files
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
- -t[45]*|-txscale*|@*)
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
# Unknown arguments in both finalize_command and compile_command need
# to be aesthetically quoted because they are evaled later.
@@ -1695,9 +1691,9 @@
-no-install)
case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
# The PATH hackery in wrapper scripts is required on Windows
- # in order for the loader to find any dlls it needs.
+ # and Darwin in order for the loader to find any dlls it needs.
$echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
$echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
fast_install=no
@@ -2138,7 +2134,7 @@
lib=
found=no
case $deplib in
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
if test "$linkmode,$pass" = "prog,link"; then
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
@@ -2534,9 +2530,9 @@
if test "$linkmode,$pass" = "prog,link"; then
if test -n "$library_names" &&
- { { test "$prefer_static_libs" = no ||
- test "$prefer_static_libs,$installed" = "built,yes"; } ||
- test -z "$old_library"; }; then
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
# We need to hardcode the library path
if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
# Make sure the rpath contains only unique directories.
@@ -3243,9 +3239,10 @@
age="0"
;;
irix|nonstopux)
- current=`expr $number_major + $number_minor - 1`
+ current=`expr $number_major + $number_minor`
age="$number_minor"
revision="$number_minor"
+ lt_irix_increment=no
;;
esac
;;
@@ -3304,7 +3301,8 @@
versuffix="$major.$age.$revision"
# Darwin ld doesn't like 0 for these options...
minor_current=`expr $current + 1`
- verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
;;
freebsd-aout)
@@ -3318,8 +3316,11 @@
;;
irix | nonstopux)
- major=`expr $current - $age + 1`
-
+ if test "X$lt_irix_increment" = "Xno"; then
+ major=`expr $current - $age`
+ else
+ major=`expr $current - $age + 1`
+ fi
case $version_type in
nonstopux) verstring_prefix=nonstopux ;;
*) verstring_prefix=sgi ;;
@@ -3456,11 +3457,11 @@
fi
# Eliminate all temporary directories.
-# for path in $notinst_path; do
-# lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
-# deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
-# dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
-# done
+ #for path in $notinst_path; do
+ # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
+ # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
+ # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
+ #done
if test -n "$xrpath"; then
# If the user specified any rpath flags, then add them.
@@ -3561,7 +3562,7 @@
int main() { return 0; }
EOF
$rm conftest
- if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
ldd_output=`ldd conftest`
for i in $deplibs; do
name=`expr $i : '-l\(.*\)'`
@@ -3923,7 +3924,10 @@
test -n "$hardcode_libdirs"; then
libdir="$hardcode_libdirs"
if test -n "$hardcode_libdir_flag_spec_ld"; then
- eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+ case $archive_cmds in
+ *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
+ *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
+ esac
else
eval dep_rpath=\"$hardcode_libdir_flag_spec\"
fi
@@ -4011,23 +4015,15 @@
fi
tmp_deplibs=
- inst_prefix_arg=
for test_deplib in $deplibs; do
case " $convenience " in
*" $test_deplib "*) ;;
*)
- if test -n "$inst_prefix_dir" && (echo "$test_deplib" | grep -- "$inst_prefix_dir" >/dev/null); then
- inst_prefix_arg="$inst_prefix_arg $test_deplib"
- else
- tmp_deplibs="$tmp_deplibs $test_deplib"
- fi
+ tmp_deplibs="$tmp_deplibs $test_deplib"
;;
esac
done
deplibs="$tmp_deplibs"
- if test -n "$inst_prefix_arg"; then
- deplibs="$inst_prefix_arg $deplibs"
- fi
if test -n "$convenience"; then
if test -n "$whole_archive_flag_spec"; then
@@ -4297,7 +4293,7 @@
if test -n "$convenience"; then
if test -n "$whole_archive_flag_spec"; then
eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
- reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
else
gentop="$output_objdir/${obj}x"
generated="$generated $gentop"
@@ -5317,6 +5313,8 @@
else
case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
@@ -6413,8 +6411,10 @@
if test -f "$dir/$objdir/$dlname"; then
dir="$dir/$objdir"
else
- $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
- exit $EXIT_FAILURE
+ if test ! -f "$dir/$dlname"; then
+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+ exit $EXIT_FAILURE
+ fi
fi
;;
@@ -6480,14 +6480,11 @@
# Restore saved environment variables
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
do
- eval "if test \"\${save_$lt_var+set}\" = set; then
- $lt_var=\$save_$lt_var; export $lt_var
- else
- $lt_unset $lt_var
- fi"
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ fi"
done
-
# Now prepare to actually exec the command.
exec_cmd="\$cmd$args"
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-05 01:35:15
|
Revision: 394
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=394&view=rev
Author: pstieber
Date: 2008-04-04 18:35:12 -0700 (Fri, 04 Apr 2008)
Log Message:
-----------
Removed the force option from autoreconf.
Modified Paths:
--------------
trunk/jazz/bootstrap
trunk/jazz/config/config.guess
trunk/jazz/config/config.sub
trunk/jazz/config/ltmain.sh
trunk/jazz/src/AlsaDriver.cpp
trunk/jazz/src/JazzPlusPlusApplication.cpp
trunk/jazz/src/Project.cpp
Modified: trunk/jazz/bootstrap
===================================================================
--- trunk/jazz/bootstrap 2008-04-05 01:30:50 UTC (rev 393)
+++ trunk/jazz/bootstrap 2008-04-05 01:35:12 UTC (rev 394)
@@ -1,2 +1,2 @@
#! /bin/sh
-autoreconf --install --verbose --force
+autoreconf --install --verbose
Modified: trunk/jazz/config/config.guess
===================================================================
--- trunk/jazz/config/config.guess 2008-04-05 01:30:50 UTC (rev 393)
+++ trunk/jazz/config/config.guess 2008-04-05 01:35:12 UTC (rev 394)
@@ -1,10 +1,9 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
-timestamp='2006-07-02'
+timestamp='2005-12-13'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -107,7 +106,7 @@
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
@@ -207,11 +206,8 @@
*:ekkoBSD:*:*)
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
exit ;;
- *:SolidBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
- exit ;;
macppc:MirBSD:*:*)
- echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
exit ;;
*:MirBSD:*:*)
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
@@ -768,14 +764,7 @@
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
exit ;;
*:FreeBSD:*:*)
- case ${UNAME_MACHINE} in
- pc98)
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- amd64)
- echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- *)
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- esac
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
@@ -790,12 +779,9 @@
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
- x86:Interix*:[3456]*)
- echo i586-pc-interix${UNAME_RELEASE}
+ x86:Interix*:[345]*)
+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
exit ;;
- EM64T:Interix*:[3456]*)
- echo x86_64-unknown-interix${UNAME_RELEASE}
- exit ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
exit ;;
@@ -831,9 +817,6 @@
arm*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
- avr32*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit ;;
cris:Linux:*:*)
echo cris-axis-linux-gnu
exit ;;
@@ -868,11 +851,7 @@
#endif
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
;;
mips64:Linux:*:*)
@@ -891,11 +870,7 @@
#endif
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^CPU/{
- s: ::g
- p
- }'`"
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
;;
or32:Linux:*:*)
@@ -992,7 +967,7 @@
LIBC=gnulibc1
# endif
#else
- #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+ #if defined(__INTEL_COMPILER) || defined(__PGI)
LIBC=gnu
#else
LIBC=gnuaout
@@ -1002,11 +977,7 @@
LIBC=dietlibc
#endif
EOF
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
- /^LIBC/{
- s: ::g
- p
- }'`"
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
test x"${LIBC}" != x && {
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
exit
Modified: trunk/jazz/config/config.sub
===================================================================
--- trunk/jazz/config/config.sub 2008-04-05 01:30:50 UTC (rev 393)
+++ trunk/jazz/config/config.sub 2008-04-05 01:35:12 UTC (rev 394)
@@ -1,10 +1,9 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
-timestamp='2006-09-20'
+timestamp='2005-12-11'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -241,7 +240,7 @@
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
@@ -249,8 +248,7 @@
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
- | m32c | m32r | m32rle | m68000 | m68k | m88k \
- | maxq | mb | microblaze | mcore \
+ | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
@@ -270,25 +268,26 @@
| mn10200 | mn10300 \
| mt \
| msp430 \
- | nios | nios2 \
| ns16k | ns32k \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
- | score \
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
- | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
- | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b \
| spu | strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
| we32k \
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
| z8k)
basic_machine=$basic_machine-unknown
;;
+ m32c)
+ basic_machine=$basic_machine-unknown
+ ;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
basic_machine=$basic_machine-unknown
@@ -318,7 +317,7 @@
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
- | avr-* | avr32-* \
+ | avr-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
| clipper-* | craynv-* | cydra-* \
@@ -329,7 +328,7 @@
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
- | m32c-* | m32r-* | m32rle-* \
+ | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | maxq-* | mcore-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
@@ -351,28 +350,29 @@
| mmix-* \
| mt-* \
| msp430-* \
- | nios-* | nios2-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| pyramid-* \
| romp-* | rs6000-* \
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
- | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
| sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tron-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
- | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
| xstormy16-* | xtensa-* \
| ymp-* \
| z8k-*)
;;
+ m32c-*)
+ ;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)
@@ -818,12 +818,6 @@
pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
- pc98)
- basic_machine=i386-pc
- ;;
- pc98-*)
- basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
@@ -910,10 +904,6 @@
sb1el)
basic_machine=mipsisa64sb1el-unknown
;;
- sde)
- basic_machine=mipsisa32-sde
- os=-elf
- ;;
sei)
basic_machine=mips-sei
os=-seiux
@@ -1130,7 +1120,7 @@
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
- sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ sparc | sparcv8 | sparcv9 | sparcv9b)
basic_machine=sparc-sun
;;
cydra)
@@ -1203,8 +1193,7 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
- | -openbsd* | -solidbsd* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
@@ -1219,7 +1208,7 @@
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers*)
+ | -skyos* | -haiku* | -rdos*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1371,12 +1360,9 @@
# system, and we'll never get to this point.
case $basic_machine in
- score-*)
+ spu-*)
os=-elf
;;
- spu-*)
- os=-elf
- ;;
*-acorn)
os=-riscix1.2
;;
@@ -1386,9 +1372,9 @@
arm*-semi)
os=-aout
;;
- c4x-* | tic4x-*)
- os=-coff
- ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
# This must come before the *-dec entry.
pdp10-*)
os=-tops20
Modified: trunk/jazz/config/ltmain.sh
===================================================================
--- trunk/jazz/config/ltmain.sh 2008-04-05 01:30:50 UTC (rev 393)
+++ trunk/jazz/config/ltmain.sh 2008-04-05 01:35:12 UTC (rev 394)
@@ -1,8 +1,8 @@
# ltmain.sh - Provide generalized library-building support services.
# NOTE: Changing this file will not affect anything until you rerun configure.
#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
-# 2007 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
+# Free Software Foundation, Inc.
# Originally by Gordon Matzigkeit <go...@gn...>, 1996
#
# This program is free software; you can redistribute it and/or modify
@@ -33,6 +33,9 @@
# function.
progpath="$0"
+# define SED for historic ltconfig's generated by Libtool 1.3
+test -z "$SED" && SED=sed
+
# The name of this program:
progname=`echo "$progpath" | $SED $basename`
modename="$progname"
@@ -43,8 +46,8 @@
PROGRAM=ltmain.sh
PACKAGE=libtool
-VERSION=1.5.24
-TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
+VERSION=1.5.22
+TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
@@ -57,8 +60,6 @@
else
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
# Check that we have a working $echo.
if test "X$1" = X--no-reexec; then
@@ -116,10 +117,10 @@
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
do
eval "if test \"\${$lt_var+set}\" = set; then
- save_$lt_var=\$$lt_var
- $lt_var=C
- export $lt_var
- fi"
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ fi"
done
# Make sure IFS has a sensible default
@@ -208,13 +209,7 @@
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
win32_nmres=`eval $NM -f posix -A $1 | \
- $SED -n -e '1,100{
- / I /{
- s,.*,import,
- p
- q
- }
- }'`
+ $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
case $win32_nmres in
import*) win32_libid_type="x86 archive import";;
*) win32_libid_type="x86 archive static";;
@@ -348,11 +343,11 @@
my_xlib_u=$my_xlib
while :; do
case " $extracted_archives " in
- *" $my_xlib_u "*)
- extracted_serial=`expr $extracted_serial + 1`
- my_xlib_u=lt$extracted_serial-$my_xlib ;;
- *) break ;;
- esac
+ *" $my_xlib_u "*)
+ extracted_serial=`expr $extracted_serial + 1`
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
done
extracted_archives="$extracted_archives $my_xlib_u"
my_xdir="$my_gentop/$my_xlib_u"
@@ -416,8 +411,19 @@
#####################################
# Darwin sucks
+#eval std_shrext=\"$shrext_cmds\"
+
+# And fixing for Darwin sucks for everybody else
+if test -z "$shrext_cmds" && test -n "$shrext"; then
+ eval shrext_cmds=\"$shrext\"
+fi
+
eval std_shrext=\"$shrext_cmds\"
+# This value is evaluated to 32768, so place it here as a compatilibity hack
+# because older libtool.m4 didn't define this variable
+test -z "$max_cmd_len" && max_cmd_len=32768
+
disable_libs=no
# Parse our command line options once, thoroughly.
@@ -482,12 +488,11 @@
;;
--version)
- echo "\
-$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
-
-Copyright (C) 2007 Free Software Foundation, Inc.
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+ $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
+ $echo
+ $echo "Copyright (C) 2005 Free Software Foundation, Inc."
+ $echo "This is free software; see the source for copying conditions. There is NO"
+ $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
exit $?
;;
@@ -784,7 +789,7 @@
*.class) xform=class ;;
*.cpp) xform=cpp ;;
*.cxx) xform=cxx ;;
- *.[fF][09]?) xform=[fF][09]. ;;
+ *.f90) xform=f90 ;;
*.for) xform=for ;;
*.java) xform=java ;;
*.obj) xform=obj ;;
@@ -1169,8 +1174,8 @@
do
case $arg in
-all-static | -static | -static-libtool-libs)
- case $arg in
- -all-static)
+ case $arg in
+ -all-static)
if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
$echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
fi
@@ -1179,19 +1184,19 @@
fi
prefer_static_libs=yes
;;
- -static)
+ -static)
if test -z "$pic_flag" && test -n "$link_static_flag"; then
dlopen_self=$dlopen_self_static
fi
prefer_static_libs=built
;;
- -static-libtool-libs)
- if test -z "$pic_flag" && test -n "$link_static_flag"; then
- dlopen_self=$dlopen_self_static
- fi
- prefer_static_libs=yes
- ;;
- esac
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
build_libtool_libs=no
build_old_libs=yes
break
@@ -1639,7 +1644,7 @@
continue
;;
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
compiler_flags="$compiler_flags $arg"
compile_command="$compile_command $arg"
finalize_command="$finalize_command $arg"
@@ -1659,11 +1664,10 @@
# -m* pass through architecture-specific compiler args for GCC
# -m*, -t[45]*, -txscale* pass through architecture-specific
# compiler args for GCC
- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
- # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # -pg pass through profiling flag for GCC
# @file GCC response files
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
+ -t[45]*|-txscale*|@*)
# Unknown arguments in both finalize_command and compile_command need
# to be aesthetically quoted because they are evaled later.
@@ -1691,9 +1695,9 @@
-no-install)
case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
# The PATH hackery in wrapper scripts is required on Windows
- # and Darwin in order for the loader to find any dlls it needs.
+ # in order for the loader to find any dlls it needs.
$echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
$echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
fast_install=no
@@ -2134,7 +2138,7 @@
lib=
found=no
case $deplib in
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
if test "$linkmode,$pass" = "prog,link"; then
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
@@ -2530,9 +2534,9 @@
if test "$linkmode,$pass" = "prog,link"; then
if test -n "$library_names" &&
- { { test "$prefer_static_libs" = no ||
- test "$prefer_static_libs,$installed" = "built,yes"; } ||
- test -z "$old_library"; }; then
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
# We need to hardcode the library path
if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
# Make sure the rpath contains only unique directories.
@@ -3239,10 +3243,9 @@
age="0"
;;
irix|nonstopux)
- current=`expr $number_major + $number_minor`
+ current=`expr $number_major + $number_minor - 1`
age="$number_minor"
revision="$number_minor"
- lt_irix_increment=no
;;
esac
;;
@@ -3301,8 +3304,7 @@
versuffix="$major.$age.$revision"
# Darwin ld doesn't like 0 for these options...
minor_current=`expr $current + 1`
- xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
- verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
;;
freebsd-aout)
@@ -3316,11 +3318,8 @@
;;
irix | nonstopux)
- if test "X$lt_irix_increment" = "Xno"; then
- major=`expr $current - $age`
- else
- major=`expr $current - $age + 1`
- fi
+ major=`expr $current - $age + 1`
+
case $version_type in
nonstopux) verstring_prefix=nonstopux ;;
*) verstring_prefix=sgi ;;
@@ -3457,11 +3456,11 @@
fi
# Eliminate all temporary directories.
- #for path in $notinst_path; do
- # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
- # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
- # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
- #done
+# for path in $notinst_path; do
+# lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
+# deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
+# dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
+# done
if test -n "$xrpath"; then
# If the user specified any rpath flags, then add them.
@@ -3562,7 +3561,7 @@
int main() { return 0; }
EOF
$rm conftest
- if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
ldd_output=`ldd conftest`
for i in $deplibs; do
name=`expr $i : '-l\(.*\)'`
@@ -3924,10 +3923,7 @@
test -n "$hardcode_libdirs"; then
libdir="$hardcode_libdirs"
if test -n "$hardcode_libdir_flag_spec_ld"; then
- case $archive_cmds in
- *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
- *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
- esac
+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
else
eval dep_rpath=\"$hardcode_libdir_flag_spec\"
fi
@@ -4015,15 +4011,23 @@
fi
tmp_deplibs=
+ inst_prefix_arg=
for test_deplib in $deplibs; do
case " $convenience " in
*" $test_deplib "*) ;;
*)
- tmp_deplibs="$tmp_deplibs $test_deplib"
+ if test -n "$inst_prefix_dir" && (echo "$test_deplib" | grep -- "$inst_prefix_dir" >/dev/null); then
+ inst_prefix_arg="$inst_prefix_arg $test_deplib"
+ else
+ tmp_deplibs="$tmp_deplibs $test_deplib"
+ fi
;;
esac
done
deplibs="$tmp_deplibs"
+ if test -n "$inst_prefix_arg"; then
+ deplibs="$inst_prefix_arg $deplibs"
+ fi
if test -n "$convenience"; then
if test -n "$whole_archive_flag_spec"; then
@@ -4293,7 +4297,7 @@
if test -n "$convenience"; then
if test -n "$whole_archive_flag_spec"; then
eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
- reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
else
gentop="$output_objdir/${obj}x"
generated="$generated $gentop"
@@ -5313,8 +5317,6 @@
else
case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
fi
-BIN_SH=xpg4; export BIN_SH # for Tru64
-DUALCASE=1; export DUALCASE # for MKS sh
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
@@ -6411,10 +6413,8 @@
if test -f "$dir/$objdir/$dlname"; then
dir="$dir/$objdir"
else
- if test ! -f "$dir/$dlname"; then
- $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
- exit $EXIT_FAILURE
- fi
+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+ exit $EXIT_FAILURE
fi
;;
@@ -6480,11 +6480,14 @@
# Restore saved environment variables
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
do
- eval "if test \"\${save_$lt_var+set}\" = set; then
- $lt_var=\$save_$lt_var; export $lt_var
- fi"
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ else
+ $lt_unset $lt_var
+ fi"
done
+
# Now prepare to actually exec the command.
exec_cmd="\$cmd$args"
else
Modified: trunk/jazz/src/AlsaDriver.cpp
===================================================================
--- trunk/jazz/src/AlsaDriver.cpp 2008-04-05 01:30:50 UTC (rev 393)
+++ trunk/jazz/src/AlsaDriver.cpp 2008-04-05 01:35:12 UTC (rev 394)
@@ -48,117 +48,123 @@
#define snd_pcm_write(pcm,data,size) snd_pcm_writei(pcm,data,size)
#define snd_pcm_read(pcm,data,size) snd_pcm_readi(pcm,data,size)
-#define MAX_FRAGS 16 // enough large?
+#define MAX_FRAGS 16 // enough large?
class tAlsaAudioListener : public wxTimer
{
public:
- tAlsaAudioListener(tAlsaAudioPlayer *p, int key)
- {
- hard_exit = TRUE;
- player = p;
- player->listener = this;
- player->rec_info = 0; // not recording!
- player->running_mode = 0;
-
- // SYNC seems not to work?? so add 8 more silent buffers
- // to hear the end of the sample too.
- player->OpenDsp(tAlsaAudioPlayer::PLAYBACK, 0);
- count = 8 + player->samples.PrepareListen(key);
- Start(20);
- }
+ tAlsaAudioListener(tAlsaAudioPlayer *p, int key)
+ {
+ hard_exit = TRUE;
+ player = p;
+ player->listener = this;
+ player->rec_info = 0; // not recording!
+ player->running_mode = 0;
+
+ // SYNC seems not to work?? so add 8 more silent buffers
+ // to hear the end of the sample too.
+ player->OpenDsp(tAlsaAudioPlayer::PLAYBACK, 0);
+ count = 8 + player->samples.PrepareListen(key);
+ Start(20);
+ }
- tAlsaAudioListener(tAlsaAudioPlayer *p, tSample &spl, long fr_smpl, long to_smpl) {
- hard_exit = TRUE;
- player = p;
- player->listener = this;
- player->rec_info = 0; // not recording!
- player->running_mode = 0;
+ tAlsaAudioListener(tAlsaAudioPlayer *p, tSample &spl, long fr_smpl, long to_smpl)
+ {
+ hard_exit = TRUE;
+ player = p;
+ player->listener = this;
+ player->rec_info = 0; // not recording!
+ player->running_mode = 0;
- player->OpenDsp(tAlsaAudioPlayer::PLAYBACK, 0);
- player->samples.ResetBufferSize(player->frag_byte_size[tAlsaAudioPlayer::PLAYBACK]);
- count = 8 + player->samples.PrepareListen(&spl, fr_smpl, to_smpl);
- Start(20);
- }
+ player->OpenDsp(tAlsaAudioPlayer::PLAYBACK, 0);
+ player->samples.ResetBufferSize(player->frag_byte_size[tAlsaAudioPlayer::PLAYBACK]);
+ count = 8 + player->samples.PrepareListen(&spl, fr_smpl, to_smpl);
+ Start(20);
+ }
- ~tAlsaAudioListener()
- {
- Stop();
- player->CloseDsp(hard_exit);
- player->listener = 0;
- }
+ ~tAlsaAudioListener()
+ {
+ Stop();
+ player->CloseDsp(hard_exit);
+ player->listener = 0;
+ }
- virtual void Notify()
- {
- count -= player->WriteSamples();
- count += player->samples.ContinueListen();
- if (count <= 0) {
- hard_exit = FALSE;
- delete this;
- }
- }
+ virtual void Notify()
+ {
+ count -= player->WriteSamples();
+ count += player->samples.ContinueListen();
+ if (count <= 0)
+ {
+ hard_exit = FALSE;
+ delete this;
+ }
+ }
- long GetPlayPosition()
- {
- return player->GetCurrentPosition(tAlsaAudioPlayer::PLAYBACK);
- }
+ long GetPlayPosition()
+ {
+ return player->GetCurrentPosition(tAlsaAudioPlayer::PLAYBACK);
+ }
-private:
- tAlsaAudioPlayer *player;
- int count;
- int hard_exit;
+ private:
+ tAlsaAudioPlayer *player;
+ int count;
+ int hard_exit;
};
tAlsaAudioPlayer::tAlsaAudioPlayer(JZSong *song)
- : tAlsaPlayer(song)
+ : tAlsaPlayer(song)
{
- AudioBuffer = new tEventArray();
- installed = 0;
- audio_enabled = 0;
- listener = 0;
- can_duplex = 0; // no duplex yet.
- pcm[PLAYBACK] = NULL;
- pcm[CAPTURE] = NULL;
+ AudioBuffer = new tEventArray();
+ installed = 0;
+ audio_enabled = 0;
+ listener = 0;
+ can_duplex = 0; // no duplex yet.
+ pcm[PLAYBACK] = NULL;
+ pcm[CAPTURE] = NULL;
- dev[PLAYBACK] = gpConfig->StrValue(C_AlsaAudioOutputDevice);
- dev[CAPTURE] = gpConfig->StrValue(C_AlsaAudioInputDevice);
- can_duplex = 1; /* FIXME */
- installed = 1;
- audio_enabled = 1;
+ dev[PLAYBACK] = gpConfig->StrValue(C_AlsaAudioOutputDevice);
+ dev[CAPTURE] = gpConfig->StrValue(C_AlsaAudioInputDevice);
+ can_duplex = 1; /* FIXME */
+ installed = 1;
+ audio_enabled = 1;
}
tAlsaAudioPlayer::~tAlsaAudioPlayer()
{
- delete listener;
- delete AudioBuffer;
- if (pcm[PLAYBACK]) {
- snd_pcm_close(pcm[PLAYBACK]);
- pcm[PLAYBACK] = NULL;
- }
- if (pcm[CAPTURE]) {
- snd_pcm_close(pcm[CAPTURE]);
- pcm[CAPTURE] = NULL;
- }
+ cout << "Deleting ALSA audio driver start..." << endl;
+ delete listener;
+ delete AudioBuffer;
+ if (pcm[PLAYBACK])
+ {
+ snd_pcm_close(pcm[PLAYBACK]);
+ pcm[PLAYBACK] = NULL;
+ }
+ if (pcm[CAPTURE])
+ {
+ snd_pcm_close(pcm[CAPTURE]);
+ pcm[CAPTURE] = NULL;
+ }
+ cout << "Done." << endl;
}
int tAlsaAudioPlayer::LoadSamples(const char *filename)
{
- return samples.Load(filename);
+ return samples.Load(filename);
}
int tAlsaAudioPlayer::RecordMode() const
{
- return running_mode & (1 << CAPTURE);
+ return running_mode & (1 << CAPTURE);
}
int tAlsaAudioPlayer::PlayBackMode() const
{
- return running_mode & (1 << PLAYBACK);
+ return running_mode & (1 << PLAYBACK);
}
void tAlsaAudioPlayer::StartPlay(long clock, long loopClock, int cont)
@@ -211,214 +217,240 @@
void tAlsaAudioPlayer::StartAudio()
{
- if (pcm[PLAYBACK])
- snd_pcm_start(pcm[PLAYBACK]);
- if (pcm[CAPTURE])
- snd_pcm_start(pcm[CAPTURE]);
+ if (pcm[PLAYBACK])
+ snd_pcm_start(pcm[PLAYBACK]);
+ if (pcm[CAPTURE])
+ snd_pcm_start(pcm[CAPTURE]);
}
void tAlsaAudioPlayer::OpenDsp(int mode, int sync_mode)
{
- if (!audio_enabled)
- return;
+ if (!audio_enabled)
+ return;
- unsigned int channels;
- snd_pcm_format_t format;
- snd_pcm_uframes_t buffer_size, period_size;
+ unsigned int channels;
+ snd_pcm_format_t format;
+ snd_pcm_uframes_t buffer_size, period_size;
- frame_shift[mode] = 0;
- if (samples.BitsPerSample() == 8)
- format = SND_PCM_FORMAT_U8;
- else {
- format = SND_PCM_FORMAT_S16_LE;
- frame_shift[mode]++;
- }
- channels = samples.GetChannels();
- if (channels > 1)
- frame_shift[mode]++;
+ frame_shift[mode] = 0;
+ if (samples.BitsPerSample() == 8)
+ format = SND_PCM_FORMAT_U8;
+ else {
+ format = SND_PCM_FORMAT_S16_LE;
+ frame_shift[mode]++;
+ }
+ channels = samples.GetChannels();
+ if (channels > 1)
+ frame_shift[mode]++;
- snd_pcm_stream_t stream = (mode == PLAYBACK) ?
- SND_PCM_STREAM_PLAYBACK : SND_PCM_STREAM_CAPTURE;
- if (snd_pcm_open(&pcm[mode], dev[mode], stream, SND_PCM_NONBLOCK) < 0)
- {
- perror("snd_pcm_open");
- audio_enabled = 0;
- return;
- }
+ snd_pcm_stream_t stream = (mode == PLAYBACK) ?
+ SND_PCM_STREAM_PLAYBACK : SND_PCM_STREAM_CAPTURE;
+ if (snd_pcm_open(&pcm[mode], dev[mode], stream, SND_PCM_NONBLOCK) < 0)
+ {
+ perror("snd_pcm_open");
+ audio_enabled = 0;
+ return;
+ }
- snd_pcm_hw_params_t *hw;
- snd_pcm_hw_params_alloca(&hw);
- snd_pcm_hw_params_any(pcm[mode], hw);
- if (snd_pcm_hw_params_set_access(pcm[mode], hw, SND_PCM_ACCESS_RW_INTERLEAVED) < 0) {
- perror("cannot set interleaved access");
- goto __error;
- }
- if (snd_pcm_hw_params_set_format(pcm[mode], hw, format) < 0) {
- perror("cannot set audio format");
- goto __error;
- }
- if (snd_pcm_hw_params_set_channels(pcm[mode], hw, channels) < 0) {
- perror("cannot set audio channels");
- goto __error;
- }
- if (snd_pcm_hw_params_set_rate(pcm[mode], hw, samples.GetSpeed(), 0) < 0) {
- cerr << "cannot set audio rate: " << samples.GetSpeed() << endl;
- goto __error;
- }
+ snd_pcm_hw_params_t *hw;
+ snd_pcm_hw_params_alloca(&hw);
+ snd_pcm_hw_params_any(pcm[mode], hw);
+ if (snd_pcm_hw_params_set_access(pcm[mode], hw, SND_PCM_ACCESS_RW_INTERLEAVED) < 0)
+ {
+ perror("cannot set interleaved access");
+ goto __error;
+ }
+ if (snd_pcm_hw_params_set_format(pcm[mode], hw, format) < 0)
+ {
+ perror("cannot set audio format");
+ goto __error;
+ }
+ if (snd_pcm_hw_params_set_channels(pcm[mode], hw, channels) < 0)
+ {
+ perror("cannot set audio channels");
+ goto __error;
+ }
+ if (snd_pcm_hw_params_set_rate(pcm[mode], hw, samples.GetSpeed(), 0) < 0)
+ {
+ cerr << "cannot set audio rate: " << samples.GetSpeed() << endl;
+ goto __error;
+ }
- period_size = FRAGBYTES >> frame_shift[mode];
- if ((period_size = snd_pcm_hw_params_set_period_size_near(pcm[mode], hw, &period_size, 0)) < 0) {
- perror("cannot set audio period");
- goto __error;
- }
- buffer_size = period_size * MAX_FRAGS;
- if ((buffer_size = snd_pcm_hw_params_set_buffer_size_near(pcm[mode], hw, &buffer_size)) < 0) {
- perror("cannot set audio buffer");
- goto __error;
- }
- if (snd_pcm_hw_params(pcm[mode], hw) < 0) {
- perror("snd_pcm_hw_params");
- goto __error;
- }
+ period_size = FRAGBYTES >> frame_shift[mode];
+ if ((period_size = snd_pcm_hw_params_set_period_size_near(pcm[mode], hw, &period_size, 0)) < 0)
+ {
+ perror("cannot set audio period");
+ goto __error;
+ }
+ buffer_size = period_size * MAX_FRAGS;
+ if ((buffer_size = snd_pcm_hw_params_set_buffer_size_near(pcm[mode], hw, &buffer_size)) < 0)
+ {
+ perror("cannot set audio buffer");
+ goto __error;
+ }
+ if (snd_pcm_hw_params(pcm[mode], hw) < 0)
+ {
+ perror("snd_pcm_hw_params");
+ goto __error;
+ }
- frag_size[mode] = period_size; /* in frames */
- frag_byte_size[mode] = period_size << frame_shift[mode];
- frame_boundary[mode] = 0x7fffffff;
+ frag_size[mode] = period_size; /* in frames */
+ frag_byte_size[mode] = period_size << frame_shift[mode];
+ frame_boundary[mode] = 0x7fffffff;
- snd_pcm_sw_params_t *sw;
+ snd_pcm_sw_params_t *sw;
- snd_pcm_sw_params_alloca(&sw);
- snd_pcm_sw_params_current(pcm[mode], sw);
- if (sync_mode)
- snd_pcm_sw_params_set_start_threshold(pcm[mode], sw, 0x7fffffff); /* FIXME */
- else
- snd_pcm_sw_params_set_start_threshold(pcm[mode], sw, 1);
- if (snd_pcm_sw_params(pcm[mode], sw) < 0) {
- perror("snd_pcm_sw_params");
- goto __error;
- }
+ snd_pcm_sw_params_alloca(&sw);
+ snd_pcm_sw_params_current(pcm[mode], sw);
+ if (sync_mode)
+ snd_pcm_sw_params_set_start_threshold(pcm[mode], sw, 0x7fffffff); /* FIXME */
+ else
+ snd_pcm_sw_params_set_start_threshold(pcm[mode], sw, 1);
+ if (snd_pcm_sw_params(pcm[mode], sw) < 0)
+ {
+ perror("snd_pcm_sw_params");
+ goto __error;
+ }
- running_mode |= (1 << mode);
+ running_mode |= (1 << mode);
- return;
+ return;
__error:
- snd_pcm_close(pcm[mode]);
- pcm[mode] = NULL;
- audio_enabled = 0;
- return;
+ snd_pcm_close(pcm[mode]);
+ pcm[mode] = NULL;
+ audio_enabled = 0;
+ return;
}
void tAlsaAudioPlayer::CloseDsp(int reset)
{
- if (pcm) {
- if (reset) {
- if (pcm[PLAYBACK]) {
- if (snd_pcm_drop(pcm[PLAYBACK]) < 0)
- perror("playback drop");
- }
- } else {
- if (pcm[PLAYBACK]) {
- if (snd_pcm_drain(pcm[PLAYBACK]) < 0 )
- perror("playback drain");
- }
- if (pcm[CAPTURE]) {
- if (snd_pcm_drain(pcm[CAPTURE]) < 0 )
- perror("capture drain");
- }
- }
- if (pcm[PLAYBACK]) {
- snd_pcm_close(pcm[PLAYBACK]);
- pcm[PLAYBACK] = NULL;
- }
- if (pcm[CAPTURE]) {
- snd_pcm_close(pcm[CAPTURE]);
- pcm[CAPTURE] = NULL;
- }
- }
+ if (pcm)
+ {
+ if (reset)
+ {
+ if (pcm[PLAYBACK])
+ {
+ if (snd_pcm_drop(pcm[PLAYBACK]) < 0)
+ perror("playback drop");
+ }
+ }
+ else
+ {
+ if (pcm[PLAYBACK])
+ {
+ if (snd_pcm_drain(pcm[PLAYBACK]) < 0 )
+ perror("playback drain");
+ }
+ if (pcm[CAPTURE])
+ {
+ if (snd_pcm_drain(pcm[CAPTURE]) < 0 )
+ perror("capture drain");
+ }
+ }
+ if (pcm[PLAYBACK])
+ {
+ snd_pcm_close(pcm[PLAYBACK]);
+ pcm[PLAYBACK] = NULL;
+ }
+ if (pcm[CAPTURE])
+ {
+ snd_pcm_close(pcm[CAPTURE]);
+ pcm[CAPTURE] = NULL;
+ }
+ }
}
void tAlsaAudioPlayer::Notify()
{
- if (audio_enabled) {
- if (pcm[PLAYBACK]) {
- WriteSamples();
- // here it may hang when swapping in pages
- samples.FillBuffers(OutClock);
- WriteSamples();
- }
- if (pcm[CAPTURE])
- ReadSamples();
+ if (audio_enabled)
+ {
+ if (pcm[PLAYBACK])
+ {
+ WriteSamples();
+ // here it may hang when swapping in pages
+ samples.FillBuffers(OutClock);
+ WriteSamples();
+ }
+ if (pcm[CAPTURE])
+ ReadSamples();
- if (pcm[PLAYBACK] && samples.softsync)
- MidiSync();
- }
- tAlsaPlayer::Notify();
+ if (pcm[PLAYBACK] && samples.softsync)
+ MidiSync();
+ }
+ tAlsaPlayer::Notify();
}
// number of frames (or bytes) free
int tAlsaAudioPlayer::GetFreeSpace(int mode)
{
- snd_pcm_status_t *info;
- snd_pcm_status_alloca(&info);
- if (snd_pcm_status(pcm[mode], info) < 0) {
- perror("snd_pcm_status");
- return 0;
- }
- return snd_pcm_status_get_avail(info); /* in frames */
+ snd_pcm_status_t *info;
+ snd_pcm_status_alloca(&info);
+ if (snd_pcm_status(pcm[mode], info) < 0)
+ {
+ perror("snd_pcm_status");
+ return 0;
+ }
+ return snd_pcm_status_get_avail(info); /* in frames */
}
int tAlsaAudioPlayer::WriteSamples()
{
- if (!audio_enabled || pcm[PLAYBACK] == NULL)
- return 0;
+ if (!audio_enabled || pcm[PLAYBACK] == NULL)
+ return 0;
- int blocks_written = 0;
- int room;
+ int blocks_written = 0;
+ int room;
- room = GetFreeSpace(PLAYBACK);
+ room = GetFreeSpace(PLAYBACK);
- for (; room > frag_size[PLAYBACK]; room -= frag_size[PLAYBACK]) {
- tAudioBuffer *buf = samples.full_buffers.Get();
- if (buf == 0)
- break;
- ssize_t written = snd_pcm_writei(pcm[PLAYBACK], buf->Data(), frag_size[PLAYBACK]);
- if (written < 0) {
- if (written == -EPIPE) {
- cerr << "xrun!!" << endl;
- snd_pcm_prepare(pcm[PLAYBACK]);
- } else {
- perror("audio write");
- }
- }
- if (written > 0)
- cur_scount += written;
- blocks_written++;
- samples.free_buffers.Put(buf);
- }
+ for (; room > frag_size[PLAYBACK]; room -= frag_size[PLAYBACK])
+ {
+ tAudioBuffer *buf = samples.full_buffers.Get();
+ if (buf == 0)
+ break;
+ ssize_t written = snd_pcm_writei(pcm[PLAYBACK], buf->Data(), frag_size[PLAYBACK]);
+ if (written < 0) {
+ if (written == -EPIPE)
+ {
+ cerr << "xrun!!" << endl;
+ snd_pcm_prepare(pcm[PLAYBACK]);
+ }
+ else
+ {
+ perror("audio write");
+ }
+ }
+ if (written > 0)
+ cur_scount += written;
+ blocks_written++;
+ samples.free_buffers.Put(buf);
+ }
- return blocks_written;
+ return blocks_written;
}
void tAlsaAudioPlayer::ReadSamples()
{
- if (!audio_enabled || pcm[CAPTURE] == NULL)
- return;
+ if (!audio_enabled || pcm[CAPTURE] == NULL)
+ return;
- int room = GetFreeSpace(CAPTURE);
+ int room = GetFreeSpace(CAPTURE);
- for (; room > frag_size[CAPTURE]; room -= frag_size[CAPTURE]) {
- short *b = recbuffers.RequestBuffer()->data;
- if (snd_pcm_read(pcm[CAPTURE], b, frag_size[CAPTURE]) !=
- frag_size[CAPTURE]) {
- recbuffers.UndoRequest();
- break;
- }
- }
+ for (; room > frag_size[CAPTURE]; room -= frag_size[CAPTURE])
+ {
+ short *b = recbuffers.RequestBuffer()->data;
+ if (snd_pcm_read(pcm[CAPTURE], b, frag_size[CAPTURE]) !=
+ frag_size[CAPTURE])
+ {
+ recbuffers.UndoRequest();
+ break;
+ }
+ }
}
@@ -437,71 +469,74 @@
long tAlsaAudioPlayer::GetCurrentPosition(int mode)
{
- return cur_scount;
+ return cur_scount;
}
void tAlsaAudioPlayer::MidiSync()
{
- if (!audio_enabled)
- return;
+ if (!audio_enabled)
+ return;
- int mode;
- if (pcm[PLAYBACK])
- mode = PLAYBACK;
- else if (pcm[CAPTURE])
- mode = CAPTURE;
- else
- return; // disabled
+ int mode;
+ if (pcm[PLAYBACK])
+ mode = PLAYBACK;
+ else if (pcm[CAPTURE])
+ mode = CAPTURE;
+ else
+ return; // disabled
- long scount = GetCurrentPosition(mode);
+ long scount = GetCurrentPosition(mode);
- // get realtime info for audio/midi sync
- if (scount != last_scount) {
- unsigned int qtick;
- snd_seq_queue_status_t *status;
- snd_seq_queue_status_alloca(&status);
- if (snd_seq_get_queue_status(handle, queue, status) < 0) {
- perror("snd_seq_get_queue_status");
- return;
- }
- qtick = snd_seq_queue_status_get_tick_time(status);
- int samplediff;
- if (scount < last_scount)
- samplediff = frame_boundary[mode] - (last_scount - scount);
- else
- samplediff = scount - last_scount;
- last_scount = scount;
- cur_pos += samplediff;
- long audio_clock = (long)samples.Samples2Ticks(cur_pos) + audio_clock_offset;
- int delta_clock = audio_clock - qtick;
- int new_speed = midi_speed + delta_clock;
+ // get realtime info for audio/midi sync
+ if (scount != last_scount)
+ {
+ unsigned int qtick;
+ snd_seq_queue_status_t *status;
+ snd_seq_queue_status_alloca(&status);
+ if (snd_seq_get_queue_status(handle, queue, status) < 0)
+ {
+ perror("snd_seq_get_queue_status");
+ return;
+ }
+ qtick = snd_seq_queue_status_get_tick_time(status);
+ int samplediff;
+ if (scount < last_scount)
+ samplediff = frame_boundary[mode] - (last_scount - scount);
+ else
+ samplediff = scount - last_scount;
+ last_scount = scount;
+ cur_pos += samplediff;
+ long audio_clock = (long)samples.Samples2Ticks(cur_pos) + audio_clock_offset;
+ int delta_clock = audio_clock - qtick;
+ int new_speed = midi_speed + delta_clock;
- // limit speed changes to some reasonable values
- const int limit = 1;
- if (new_speed > midi_speed + limit)
- {
- new_speed = midi_speed + limit;
- }
- if (midi_speed - limit > new_speed)
- {
- new_speed = midi_speed - limit;
- }
+ // limit speed changes to some reasonable values
+ const int limit = 1;
+ if (new_speed > midi_speed + limit)
+ {
+ new_speed = midi_speed + limit;
+ }
+ if (midi_speed - limit > new_speed)
+ {
+ new_speed = midi_speed - limit;
+ }
- if (new_speed != curr_speed) {
- snd_seq_event_t ev;
- memset(&ev, 0, sizeof(ev));
- snd_seq_ev_set_source(&ev, self.port);
- snd_seq_ev_set_subs(&ev);
- snd_seq_ev_set_direct(&ev);
- snd_seq_ev_set_fixed(&ev);
- int us = (int)( 60.0E6 / (double)new_speed );
- snd_seq_ev_set_queue_tempo(&ev, queue, us);
- write(&ev, 1);
- curr_speed = new_speed;
- // xview has reentrancy problems!!
- // gpTrackWindow->DrawSpeed(curr_speed);
- }
- }
+ if (new_speed != curr_speed)
+ {
+ snd_seq_event_t ev;
+ memset(&ev, 0, sizeof(ev));
+ snd_seq_ev_set_source(&ev, self.port);
+ snd_seq_ev_set_subs(&ev);
+ snd_seq_ev_set_direct(&ev);
+ snd_seq_ev_set_fixed(&ev);
+ int us = (int)( 60.0E6 / (double)new_speed );
+ snd_seq_ev_set_queue_tempo(&ev, queue, us);
+ write(&ev, 1);
+ curr_speed = new_speed;
+ // xview has reentrancy problems!!
+ // gpTrackWindow->DrawSpeed(curr_speed);
+ }
+ }
}
void tAlsaAudioPlayer::StopPlay()
@@ -533,46 +568,46 @@
// gpTrackWindow->DrawSpeed(midi_speed);
}
-
-
void tAlsaAudioPlayer::ListenAudio(int key, int start_stop_mode)
{
- if (!audio_enabled)
- return;
+ if (!audio_enabled)
+ return;
- // when already listening then stop listening
- if (listener) {
- delete listener;
- listener = 0;
- if (start_stop_mode)
- return;
- }
- if (key < 0)
- return;
+ // when already listening then stop listening
+ if (listener)
+ {
+ delete listener;
+ listener = 0;
+ if (start_stop_mode)
+ return;
+ }
+ if (key < 0)
+ return;
- if (pcm[PLAYBACK]) // device busy (playing)
- return;
- listener = new tAlsaAudioListener(this, key);
+ if (pcm[PLAYBACK]) // device busy (playing)
+ return;
+ listener = new tAlsaAudioListener(this, key);
}
void tAlsaAudioPlayer::ListenAudio(tSample &spl, long fr_smpl, long to_smpl)
{
- if (!audio_enabled)
- return;
+ if (!audio_enabled)
+ return;
- // when already listening then stop listening
- if (listener) {
- delete listener;
- listener = 0;
- }
- if (pcm[PLAYBACK]) // device busy (playing)
- return;
- listener = new tAlsaAudioListener(this, spl, fr_smpl, to_smpl);
+ // when already listening then stop listening
+ if (listener)
+ {
+ delete listener;
+ listener = 0;
+ }
+ if (pcm[PLAYBACK]) // device busy (playing)
+ return;
+ listener = new tAlsaAudioListener(this, spl, fr_smpl, to_smpl);
}
long tAlsaAudioPlayer::GetListenerPlayPosition()
{
- if (!listener)
- return -1L;
- return listener->GetPlayPosition();
+ if (!listener)
+ return -1L;
+ return listener->GetPlayPosition();
}
Modified: trunk/jazz/src/JazzPlusPlusApplication.cpp
===================================================================
--- trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-04-05 01:30:50 UTC (rev 393)
+++ trunk/jazz/src/JazzPlusPlusApplication.cpp 2008-04-05 01:35:12 UTC (rev 394)
@@ -47,6 +47,10 @@
#endif
+#include <iostream>
+
+using namespace std;
+
//*****************************************************************************
// Description:
// This is the JazzPlusPlus application class definition.
@@ -104,6 +108,7 @@
//-----------------------------------------------------------------------------
JZJazzPlusPlusApplication::~JZJazzPlusPlusApplication()
{
+ cout << "In the application desstructor" << endl;
}
//-----------------------------------------------------------------------------
@@ -167,6 +172,7 @@
// Prevent reported leaks from the configuration class.
delete wxConfigBase::Set(0);
+ cout << "Done in OnExit" << endl;
return 0;
}
Modified: trunk/jazz/src/Project.cpp
===================================================================
--- trunk/jazz/src/Project.cpp 2008-04-05 01:30:50 UTC (rev 393)
+++ trunk/jazz/src/Project.cpp 2008-04-05 01:35:12 UTC (rev 394)
@@ -325,6 +325,7 @@
delete mpSynth;
delete mpRecInfo;
delete mpConfig;
+ cout << "Done Deleting the project." << endl;
}
//-----------------------------------------------------------------------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-05 01:30:54
|
Revision: 393
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=393&view=rev
Author: pstieber
Date: 2008-04-04 18:30:50 -0700 (Fri, 04 Apr 2008)
Log Message:
-----------
1. Removed rebuild because I don't want to encourage developers to build the
code under the source directory.
2. Removed the doxygen configuration file because I'm not using this tool.
Removed Paths:
-------------
trunk/jazz/jazz.doxy
trunk/jazz/rebuild
Deleted: trunk/jazz/jazz.doxy
===================================================================
--- trunk/jazz/jazz.doxy 2008-04-03 05:13:17 UTC (rev 392)
+++ trunk/jazz/jazz.doxy 2008-04-05 01:30:50 UTC (rev 393)
@@ -1,1109 +0,0 @@
-# Doxyfile 1.3.3
-
-# This file describes the settings to be used by the documentation system
-# doxygen (www.doxygen.org) for a project
-#
-# All text after a hash (#) is considered a comment and will be ignored
-# The format is:
-# TAG = value [value, ...]
-# For lists items can also be appended using:
-# TAG += value [value, ...]
-# Values that contain spaces should be placed between quotes (" ")
-
-#---------------------------------------------------------------------------
-# General configuration options
-#---------------------------------------------------------------------------
-
-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
-# by quotes) that should identify the project.
-
-PROJECT_NAME = JazzPlusPlus
-
-# The PROJECT_NUMBER tag can be used to enter a project or revision number.
-# This could be handy for archiving the generated documentation or
-# if some version control system is used.
-
-PROJECT_NUMBER =
-
-# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
-# base path where the generated documentation will be put.
-# If a relative path is entered, it will be relative to the location
-# where doxygen was started. If left blank the current directory will be used.
-
-OUTPUT_DIRECTORY = doc
-
-# The OUTPUT_LANGUAGE tag is used to specify the language in which all
-# documentation generated by doxygen is written. Doxygen will use this
-# information to generate all constant output in the proper language.
-# The default language is English, other supported languages are:
-# Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch,
-# Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en
-# (Japanese with English messages), Korean, Norwegian, Polish, Portuguese,
-# Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian.
-
-OUTPUT_LANGUAGE = English
-
-# This tag can be used to specify the encoding used in the generated output.
-# The encoding is not always determined by the language that is chosen,
-# but also whether or not the output is meant for Windows or non-Windows users.
-# In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES
-# forces the Windows encoding (this is the default for the Windows binary),
-# whereas setting the tag to NO uses a Unix-style encoding (the default for
-# all platforms other than Windows).
-
-USE_WINDOWS_ENCODING = NO
-
-# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
-# documentation are documented, even if no documentation was available.
-# Private class members and static file members will be hidden unless
-# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
-
-EXTRACT_ALL = YES
-
-# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
-# will be included in the documentation.
-
-EXTRACT_PRIVATE = YES
-
-# If the EXTRACT_STATIC tag is set to YES all static members of a file
-# will be included in the documentation.
-
-EXTRACT_STATIC = YES
-
-# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
-# defined locally in source files will be included in the documentation.
-# If set to NO only classes defined in header files are included.
-
-EXTRACT_LOCAL_CLASSES = YES
-
-# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
-# undocumented members of documented classes, files or namespaces.
-# If set to NO (the default) these members will be included in the
-# various overviews, but no documentation section is generated.
-# This option has no effect if EXTRACT_ALL is enabled.
-
-HIDE_UNDOC_MEMBERS = NO
-
-# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
-# undocumented classes that are normally visible in the class hierarchy.
-# If set to NO (the default) these classes will be included in the various
-# overviews. This option has no effect if EXTRACT_ALL is enabled.
-
-HIDE_UNDOC_CLASSES = NO
-
-# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
-# friend (class|struct|union) declarations.
-# If set to NO (the default) these declarations will be included in the
-# documentation.
-
-HIDE_FRIEND_COMPOUNDS = NO
-
-# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
-# documentation blocks found inside the body of a function.
-# If set to NO (the default) these blocks will be appended to the
-# function's detailed documentation block.
-
-HIDE_IN_BODY_DOCS = NO
-
-# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
-# include brief member descriptions after the members that are listed in
-# the file and class documentation (similar to JavaDoc).
-# Set to NO to disable this.
-
-BRIEF_MEMBER_DESC = YES
-
-# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
-# the brief description of a member or function before the detailed description.
-# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
-# brief descriptions will be completely suppressed.
-
-REPEAT_BRIEF = YES
-
-# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
-# Doxygen will generate a detailed section even if there is only a brief
-# description.
-
-ALWAYS_DETAILED_SEC = NO
-
-# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all inherited
-# members of a class in the documentation of that class as if those members were
-# ordinary class members. Constructors, destructors and assignment operators of
-# the base classes will not be shown.
-
-INLINE_INHERITED_MEMB = NO
-
-# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
-# path before files name in the file list and in the header files. If set
-# to NO the shortest path that makes the file name unique will be used.
-
-FULL_PATH_NAMES = NO
-
-# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
-# can be used to strip a user-defined part of the path. Stripping is
-# only done if one of the specified strings matches the left-hand part of
-# the path. It is allowed to use relative paths in the argument list.
-
-STRIP_FROM_PATH =
-
-# The INTERNAL_DOCS tag determines if documentation
-# that is typed after a \internal command is included. If the tag is set
-# to NO (the default) then the documentation will be excluded.
-# Set it to YES to include the internal documentation.
-
-INTERNAL_DOCS = NO
-
-# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
-# file names in lower-case letters. If set to YES upper-case letters are also
-# allowed. This is useful if you have classes or files whose names only differ
-# in case and if your file system supports case sensitive file names. Windows
-# users are advised to set this option to NO.
-
-CASE_SENSE_NAMES = YES
-
-# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
-# (but less readable) file names. This can be useful is your file systems
-# doesn't support long names like on DOS, Mac, or CD-ROM.
-
-SHORT_NAMES = NO
-
-# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
-# will show members with their full class and namespace scopes in the
-# documentation. If set to YES the scope will be hidden.
-
-HIDE_SCOPE_NAMES = NO
-
-# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
-# will put a list of the files that are included by a file in the documentation
-# of that file.
-
-SHOW_INCLUDE_FILES = YES
-
-# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
-# will interpret the first line (until the first dot) of a JavaDoc-style
-# comment as the brief description. If set to NO, the JavaDoc
-# comments will behave just like the Qt-style comments (thus requiring an
-# explict @brief command for a brief description.
-
-JAVADOC_AUTOBRIEF = NO
-
-# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
-# treat a multi-line C++ special comment block (i.e. a block of //! or ///
-# comments) as a brief description. This used to be the default behaviour.
-# The new default is to treat a multi-line C++ comment block as a detailed
-# description. Set this tag to YES if you prefer the old behaviour instead.
-
-MULTILINE_CPP_IS_BRIEF = NO
-
-# If the DETAILS_AT_TOP tag is set to YES then Doxygen
-# will output the detailed description near the top, like JavaDoc.
-# If set to NO, the detailed description appears after the member
-# documentation.
-
-DETAILS_AT_TOP = NO
-
-# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
-# member inherits the documentation from any documented member that it
-# reimplements.
-
-INHERIT_DOCS = YES
-
-# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
-# is inserted in the documentation for inline members.
-
-INLINE_INFO = YES
-
-# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
-# will sort the (detailed) documentation of file and class members
-# alphabetically by member name. If set to NO the members will appear in
-# declaration order.
-
-SORT_MEMBER_DOCS = YES
-
-# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
-# tag is set to YES, then doxygen will reuse the documentation of the first
-# member in the group (if any) for the other members of the group. By default
-# all members of a group must be documented explicitly.
-
-DISTRIBUTE_GROUP_DOC = NO
-
-# The TAB_SIZE tag can be used to set the number of spaces in a tab.
-# Doxygen uses this value to replace tabs by spaces in code fragments.
-
-TAB_SIZE = 8
-
-# The GENERATE_TODOLIST tag can be used to enable (YES) or
-# disable (NO) the todo list. This list is created by putting \todo
-# commands in the documentation.
-
-GENERATE_TODOLIST = YES
-
-# The GENERATE_TESTLIST tag can be used to enable (YES) or
-# disable (NO) the test list. This list is created by putting \test
-# commands in the documentation.
-
-GENERATE_TESTLIST = YES
-
-# The GENERATE_BUGLIST tag can be used to enable (YES) or
-# disable (NO) the bug list. This list is created by putting \bug
-# commands in the documentation.
-
-GENERATE_BUGLIST = YES
-
-# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
-# disable (NO) the deprecated list. This list is created by putting
-# \deprecated commands in the documentation.
-
-GENERATE_DEPRECATEDLIST= YES
-
-# This tag can be used to specify a number of aliases that acts
-# as commands in the documentation. An alias has the form "name=value".
-# For example adding "sideeffect=\par Side Effects:\n" will allow you to
-# put the command \sideeffect (or @sideeffect) in the documentation, which
-# will result in a user-defined paragraph with heading "Side Effects:".
-# You can put \n's in the value part of an alias to insert newlines.
-
-ALIASES =
-
-# The ENABLED_SECTIONS tag can be used to enable conditional
-# documentation sections, marked by \if sectionname ... \endif.
-
-ENABLED_SECTIONS =
-
-# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
-# the initial value of a variable or define consists of for it to appear in
-# the documentation. If the initializer consists of more lines than specified
-# here it will be hidden. Use a value of 0 to hide initializers completely.
-# The appearance of the initializer of individual variables and defines in the
-# documentation can be controlled using \showinitializer or \hideinitializer
-# command in the documentation regardless of this setting.
-
-MAX_INITIALIZER_LINES = 30
-
-# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
-# only. Doxygen will then generate output that is more tailored for C.
-# For instance, some of the names that are used will be different. The list
-# of all members will be omitted, etc.
-
-OPTIMIZE_OUTPUT_FOR_C = NO
-
-# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources
-# only. Doxygen will then generate output that is more tailored for Java.
-# For instance, namespaces will be presented as packages, qualified scopes
-# will look different, etc.
-
-OPTIMIZE_OUTPUT_JAVA = NO
-
-# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
-# at the bottom of the documentation of classes and structs. If set to YES the
-# list will mention the files that were used to generate the documentation.
-
-SHOW_USED_FILES = YES
-
-# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
-# the same type (for instance a group of public functions) to be put as a
-# subgroup of that type (e.g. under the Public Functions section). Set it to
-# NO to prevent subgrouping. Alternatively, this can be done per class using
-# the \nosubgrouping command.
-
-SUBGROUPING = YES
-
-#---------------------------------------------------------------------------
-# configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-
-# The QUIET tag can be used to turn on/off the messages that are generated
-# by doxygen. Possible values are YES and NO. If left blank NO is used.
-
-QUIET = NO
-
-# The WARNINGS tag can be used to turn on/off the warning messages that are
-# generated by doxygen. Possible values are YES and NO. If left blank
-# NO is used.
-
-WARNINGS = YES
-
-# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
-# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
-# automatically be disabled.
-
-WARN_IF_UNDOCUMENTED = YES
-
-# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
-# potential errors in the documentation, such as not documenting some
-# parameters in a documented function, or documenting parameters that
-# don't exist or using markup commands wrongly.
-
-WARN_IF_DOC_ERROR = YES
-
-# The WARN_FORMAT tag determines the format of the warning messages that
-# doxygen can produce. The string should contain the $file, $line, and $text
-# tags, which will be replaced by the file and line number from which the
-# warning originated and the warning text.
-
-WARN_FORMAT = "$file:$line: $text"
-
-# The WARN_LOGFILE tag can be used to specify a file to which warning
-# and error messages should be written. If left blank the output is written
-# to stderr.
-
-WARN_LOGFILE =
-
-#---------------------------------------------------------------------------
-# configuration options related to the input files
-#---------------------------------------------------------------------------
-
-# The INPUT tag can be used to specify the files and/or directories that contain
-# documented source files. You may enter file names like "myfile.cpp" or
-# directories like "/usr/src/myproject". Separate the files or directories
-# with spaces.
-
-INPUT = src
-
-# If the value of the INPUT tag contains directories, you can use the
-# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
-# blank the following patterns are tested:
-# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp
-# *.h++ *.idl *.odl *.cs
-
-FILE_PATTERNS =
-
-# The RECURSIVE tag can be used to turn specify whether or not subdirectories
-# should be searched for input files as well. Possible values are YES and NO.
-# If left blank NO is used.
-
-RECURSIVE = YES
-
-# The EXCLUDE tag can be used to specify files and/or directories that should
-# excluded from the INPUT source files. This way you can easily exclude a
-# subdirectory from a directory tree whose root is specified with the INPUT tag.
-
-EXCLUDE =
-
-# The EXCLUDE_SYMLINKS tag can be used select whether or not files or directories
-# that are symbolic links (a Unix filesystem feature) are excluded from the input.
-
-EXCLUDE_SYMLINKS = NO
-
-# If the value of the INPUT tag contains directories, you can use the
-# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
-# certain files from those directories.
-
-EXCLUDE_PATTERNS =
-
-# The EXAMPLE_PATH tag can be used to specify one or more files or
-# directories that contain example code fragments that are included (see
-# the \include command).
-
-EXAMPLE_PATH =
-
-# If the value of the EXAMPLE_PATH tag contains directories, you can use the
-# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
-# and *.h) to filter out the source-files in the directories. If left
-# blank all files are included.
-
-EXAMPLE_PATTERNS =
-
-# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
-# searched for input files to be used with the \include or \dontinclude
-# commands irrespective of the value of the RECURSIVE tag.
-# Possible values are YES and NO. If left blank NO is used.
-
-EXAMPLE_RECURSIVE = NO
-
-# The IMAGE_PATH tag can be used to specify one or more files or
-# directories that contain image that are included in the documentation (see
-# the \image command).
-
-IMAGE_PATH =
-
-# The INPUT_FILTER tag can be used to specify a program that doxygen should
-# invoke to filter for each input file. Doxygen will invoke the filter program
-# by executing (via popen()) the command <filter> <input-file>, where <filter>
-# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
-# input file. Doxygen will then use the output that the filter program writes
-# to standard output.
-
-INPUT_FILTER =
-
-# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
-# INPUT_FILTER) will be used to filter the input files when producing source
-# files to browse (i.e. when SOURCE_BROWSER is set to YES).
-
-FILTER_SOURCE_FILES = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to source browsing
-#---------------------------------------------------------------------------
-
-# If the SOURCE_BROWSER tag is set to YES then a list of source files will
-# be generated. Documented entities will be cross-referenced with these sources.
-
-SOURCE_BROWSER = YES
-
-# Setting the INLINE_SOURCES tag to YES will include the body
-# of functions and classes directly in the documentation.
-
-INLINE_SOURCES = NO
-
-# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
-# doxygen to hide any special comment blocks from generated source code
-# fragments. Normal C and C++ comments will always remain visible.
-
-STRIP_CODE_COMMENTS = YES
-
-# If the REFERENCED_BY_RELATION tag is set to YES (the default)
-# then for each documented function all documented
-# functions referencing it will be listed.
-
-REFERENCED_BY_RELATION = YES
-
-# If the REFERENCES_RELATION tag is set to YES (the default)
-# then for each documented function all documented entities
-# called/used by that function will be listed.
-
-REFERENCES_RELATION = YES
-
-# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
-# will generate a verbatim copy of the header file for each class for
-# which an include is specified. Set to NO to disable this.
-
-VERBATIM_HEADERS = YES
-
-#---------------------------------------------------------------------------
-# configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-
-# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
-# of all compounds will be generated. Enable this if the project
-# contains a lot of classes, structs, unions or interfaces.
-
-ALPHABETICAL_INDEX = YES
-
-# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
-# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
-# in which this list will be split (can be a number in the range [1..20])
-
-COLS_IN_ALPHA_INDEX = 5
-
-# In case all classes in a project start with a common prefix, all
-# classes will be put under the same header in the alphabetical index.
-# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
-# should be ignored while generating the index headers.
-
-IGNORE_PREFIX =
-
-#---------------------------------------------------------------------------
-# configuration options related to the HTML output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
-# generate HTML output.
-
-GENERATE_HTML = YES
-
-# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `html' will be used as the default path.
-
-HTML_OUTPUT = html
-
-# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
-# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
-# doxygen will generate files with .html extension.
-
-HTML_FILE_EXTENSION = .html
-
-# The HTML_HEADER tag can be used to specify a personal HTML header for
-# each generated HTML page. If it is left blank doxygen will generate a
-# standard header.
-
-HTML_HEADER =
-
-# The HTML_FOOTER tag can be used to specify a personal HTML footer for
-# each generated HTML page. If it is left blank doxygen will generate a
-# standard footer.
-
-HTML_FOOTER =
-
-# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
-# style sheet that is used by each HTML page. It can be used to
-# fine-tune the look of the HTML output. If the tag is left blank doxygen
-# will generate a default style sheet
-
-HTML_STYLESHEET =
-
-# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
-# files or namespaces will be aligned in HTML using tables. If set to
-# NO a bullet list will be used.
-
-HTML_ALIGN_MEMBERS = YES
-
-# If the GENERATE_HTMLHELP tag is set to YES, additional index files
-# will be generated that can be used as input for tools like the
-# Microsoft HTML help workshop to generate a compressed HTML help file (.chm)
-# of the generated HTML documentation.
-
-GENERATE_HTMLHELP = NO
-
-# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
-# be used to specify the file name of the resulting .chm file. You
-# can add a path in front of the file if the result should not be
-# written to the html output dir.
-
-CHM_FILE =
-
-# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
-# be used to specify the location (absolute path including file name) of
-# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
-# the HTML help compiler on the generated index.hhp.
-
-HHC_LOCATION =
-
-# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
-# controls if a separate .chi index file is generated (YES) or that
-# it should be included in the master .chm file (NO).
-
-GENERATE_CHI = NO
-
-# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
-# controls whether a binary table of contents is generated (YES) or a
-# normal table of contents (NO) in the .chm file.
-
-BINARY_TOC = NO
-
-# The TOC_EXPAND flag can be set to YES to add extra items for group members
-# to the contents of the HTML help documentation and to the tree view.
-
-TOC_EXPAND = NO
-
-# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
-# top of each HTML page. The value NO (the default) enables the index and
-# the value YES disables it.
-
-DISABLE_INDEX = NO
-
-# This tag can be used to set the number of enum values (range [1..20])
-# that doxygen will group on one line in the generated HTML documentation.
-
-ENUM_VALUES_PER_LINE = 4
-
-# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be
-# generated containing a tree-like index structure (just like the one that
-# is generated for HTML Help). For this to work a browser that supports
-# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
-# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
-# probably better off using the HTML help feature.
-
-GENERATE_TREEVIEW = YES
-
-# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
-# used to set the initial width (in pixels) of the frame in which the tree
-# is shown.
-
-TREEVIEW_WIDTH = 250
-
-#---------------------------------------------------------------------------
-# configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
-# generate Latex output.
-
-GENERATE_LATEX = YES
-
-# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `latex' will be used as the default path.
-
-LATEX_OUTPUT = latex
-
-# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
-# invoked. If left blank `latex' will be used as the default command name.
-
-LATEX_CMD_NAME = latex
-
-# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
-# generate index for LaTeX. If left blank `makeindex' will be used as the
-# default command name.
-
-MAKEINDEX_CMD_NAME = makeindex
-
-# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
-# LaTeX documents. This may be useful for small projects and may help to
-# save some trees in general.
-
-COMPACT_LATEX = NO
-
-# The PAPER_TYPE tag can be used to set the paper type that is used
-# by the printer. Possible values are: a4, a4wide, letter, legal and
-# executive. If left blank a4wide will be used.
-
-PAPER_TYPE = a4wide
-
-# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
-# packages that should be included in the LaTeX output.
-
-EXTRA_PACKAGES =
-
-# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
-# the generated latex document. The header should contain everything until
-# the first chapter. If it is left blank doxygen will generate a
-# standard header. Notice: only use this tag if you know what you are doing!
-
-LATEX_HEADER =
-
-# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
-# is prepared for conversion to pdf (using ps2pdf). The pdf file will
-# contain links (just like the HTML output) instead of page references
-# This makes the output suitable for online browsing using a pdf viewer.
-
-PDF_HYPERLINKS = NO
-
-# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
-# plain latex in the generated Makefile. Set this option to YES to get a
-# higher quality PDF documentation.
-
-USE_PDFLATEX = NO
-
-# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
-# command to the generated LaTeX files. This will instruct LaTeX to keep
-# running if errors occur, instead of asking the user for help.
-# This option is also used when generating formulas in HTML.
-
-LATEX_BATCHMODE = NO
-
-# If LATEX_HIDE_INDICES is set to YES then doxygen will not
-# include the index chapters (such as File Index, Compound Index, etc.)
-# in the output.
-
-LATEX_HIDE_INDICES = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the RTF output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
-# The RTF output is optimised for Word 97 and may not look very pretty with
-# other RTF readers or editors.
-
-GENERATE_RTF = NO
-
-# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `rtf' will be used as the default path.
-
-RTF_OUTPUT = rtf
-
-# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
-# RTF documents. This may be useful for small projects and may help to
-# save some trees in general.
-
-COMPACT_RTF = NO
-
-# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
-# will contain hyperlink fields. The RTF file will
-# contain links (just like the HTML output) instead of page references.
-# This makes the output suitable for online browsing using WORD or other
-# programs which support those fields.
-# Note: wordpad (write) and others do not support links.
-
-RTF_HYPERLINKS = NO
-
-# Load stylesheet definitions from file. Syntax is similar to doxygen's
-# config file, i.e. a series of assigments. You only have to provide
-# replacements, missing definitions are set to their default value.
-
-RTF_STYLESHEET_FILE =
-
-# Set optional variables used in the generation of an rtf document.
-# Syntax is similar to doxygen's config file.
-
-RTF_EXTENSIONS_FILE =
-
-#---------------------------------------------------------------------------
-# configuration options related to the man page output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
-# generate man pages
-
-GENERATE_MAN = NO
-
-# The MAN_OUTPUT tag is used to specify where the man pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `man' will be used as the default path.
-
-MAN_OUTPUT = man
-
-# The MAN_EXTENSION tag determines the extension that is added to
-# the generated man pages (default is the subroutine's section .3)
-
-MAN_EXTENSION = .3
-
-# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
-# then it will generate one additional man file for each entity
-# documented in the real man page(s). These additional files
-# only source the real man page, but without them the man command
-# would be unable to find the correct page. The default is NO.
-
-MAN_LINKS = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the XML output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_XML tag is set to YES Doxygen will
-# generate an XML file that captures the structure of
-# the code including all documentation. Note that this
-# feature is still experimental and incomplete at the
-# moment.
-
-GENERATE_XML = NO
-
-# The XML_OUTPUT tag is used to specify where the XML pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be
-# put in front of it. If left blank `xml' will be used as the default path.
-
-XML_OUTPUT = xml
-
-# The XML_SCHEMA tag can be used to specify an XML schema,
-# which can be used by a validating XML parser to check the
-# syntax of the XML files.
-
-XML_SCHEMA =
-
-# The XML_DTD tag can be used to specify an XML DTD,
-# which can be used by a validating XML parser to check the
-# syntax of the XML files.
-
-XML_DTD =
-
-#---------------------------------------------------------------------------
-# configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
-# generate an AutoGen Definitions (see autogen.sf.net) file
-# that captures the structure of the code including all
-# documentation. Note that this feature is still experimental
-# and incomplete at the moment.
-
-GENERATE_AUTOGEN_DEF = NO
-
-#---------------------------------------------------------------------------
-# configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_PERLMOD tag is set to YES Doxygen will
-# generate a Perl module file that captures the structure of
-# the code including all documentation. Note that this
-# feature is still experimental and incomplete at the
-# moment.
-
-GENERATE_PERLMOD = NO
-
-# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
-# the necessary Makefile rules, Perl scripts and LaTeX code to be able
-# to generate PDF and DVI output from the Perl module output.
-
-PERLMOD_LATEX = NO
-
-# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
-# nicely formatted so it can be parsed by a human reader. This is useful
-# if you want to understand what is going on. On the other hand, if this
-# tag is set to NO the size of the Perl module output will be much smaller
-# and Perl will parse it just the same.
-
-PERLMOD_PRETTY = YES
-
-# The names of the make variables in the generated doxyrules.make file
-# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
-# This is useful so different doxyrules.make files included by the same
-# Makefile don't overwrite each other's variables.
-
-PERLMOD_MAKEVAR_PREFIX =
-
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-
-# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
-# evaluate all C-preprocessor directives found in the sources and include
-# files.
-
-ENABLE_PREPROCESSING = YES
-
-# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
-# names in the source code. If set to NO (the default) only conditional
-# compilation will be performed. Macro expansion can be done in a controlled
-# way by setting EXPAND_ONLY_PREDEF to YES.
-
-MACRO_EXPANSION = NO
-
-# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
-# then the macro expansion is limited to the macros specified with the
-# PREDEFINED and EXPAND_AS_PREDEFINED tags.
-
-EXPAND_ONLY_PREDEF = NO
-
-# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
-# in the INCLUDE_PATH (see below) will be search if a #include is found.
-
-SEARCH_INCLUDES = YES
-
-# The INCLUDE_PATH tag can be used to specify one or more directories that
-# contain include files that are not input files but should be processed by
-# the preprocessor.
-
-INCLUDE_PATH =
-
-# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
-# patterns (like *.h and *.hpp) to filter out the header-files in the
-# directories. If left blank, the patterns specified with FILE_PATTERNS will
-# be used.
-
-INCLUDE_FILE_PATTERNS =
-
-# The PREDEFINED tag can be used to specify one or more macro names that
-# are defined before the preprocessor is started (similar to the -D option of
-# gcc). The argument of the tag is a list of macros of the form: name
-# or name=definition (no spaces). If the definition and the = are
-# omitted =1 is assumed.
-
-PREDEFINED =
-
-# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
-# this tag can be used to specify a list of macro names that should be expanded.
-# The macro definition that is found in the sources will be used.
-# Use the PREDEFINED tag if you want to use a different macro definition.
-
-EXPAND_AS_DEFINED =
-
-# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
-# doxygen's preprocessor will remove all function-like macros that are alone
-# on a line, have an all uppercase name, and do not end with a semicolon. Such
-# function macros are typically used for boiler-plate code, and will confuse the
-# parser if not removed.
-
-SKIP_FUNCTION_MACROS = YES
-
-#---------------------------------------------------------------------------
-# Configuration::addtions related to external references
-#---------------------------------------------------------------------------
-
-# The TAGFILES option can be used to specify one or more tagfiles.
-# Optionally an initial location of the external documentation
-# can be added for each tagfile. The format of a tag file without
-# this location is as follows:
-# TAGFILES = file1 file2 ...
-# Adding location for the tag files is done as follows:
-# TAGFILES = file1=loc1 "file2 = loc2" ...
-# where "loc1" and "loc2" can be relative or absolute paths or
-# URLs. If a location is present for each tag, the installdox tool
-# does not have to be run to correct the links.
-# Note that each tag file must have a unique name
-# (where the name does NOT include the path)
-# If a tag file is not located in the directory in which doxygen
-# is run, you must also specify the path to the tagfile here.
-
-TAGFILES =
-
-# When a file name is specified after GENERATE_TAGFILE, doxygen will create
-# a tag file that is based on the input files it reads.
-
-GENERATE_TAGFILE =
-
-# If the ALLEXTERNALS tag is set to YES all external classes will be listed
-# in the class index. If set to NO only the inherited external classes
-# will be listed.
-
-ALLEXTERNALS = NO
-
-# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
-# in the modules index. If set to NO, only the current project's groups will
-# be listed.
-
-EXTERNAL_GROUPS = YES
-
-# The PERL_PATH should be the absolute path and name of the perl script
-# interpreter (i.e. the result of `which perl').
-
-PERL_PATH = /usr/bin/perl
-
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-
-# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
-# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base or
-# super classes. Setting the tag to NO turns the diagrams off. Note that this
-# option is superceded by the HAVE_DOT option below. This is only a fallback. It is
-# recommended to install and use dot, since it yields more powerful graphs.
-
-CLASS_DIAGRAMS = YES
-
-# If set to YES, the inheritance and collaboration graphs will hide
-# inheritance and usage relations if the target is undocumented
-# or is not a class.
-
-HIDE_UNDOC_RELATIONS = YES
-
-# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
-# available from the path. This tool is part of Graphviz, a graph visualization
-# toolkit from AT&T and Lucent Bell Labs. The other options in this section
-# have no effect if this option is set to NO (the default)
-
-HAVE_DOT = NO
-
-# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect inheritance relations. Setting this tag to YES will force the
-# the CLASS_DIAGRAMS tag to NO.
-
-CLASS_GRAPH = YES
-
-# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
-# will generate a graph for each documented class showing the direct and
-# indirect implementation dependencies (inheritance, containment, and
-# class references variables) of the class with other documented classes.
-
-COLLABORATION_GRAPH = YES
-
-# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
-# collaboration diagrams in a style similiar to the OMG's Unified Modeling
-# Language.
-
-UML_LOOK = NO
-
-# If set to YES, the inheritance and collaboration graphs will show the
-# relations between templates and their instances.
-
-TEMPLATE_RELATIONS = NO
-
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
-# tags are set to YES then doxygen will generate a graph for each documented
-# file showing the direct and indirect include dependencies of the file with
-# other documented files.
-
-INCLUDE_GRAPH = YES
-
-# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
-# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
-# documented header file showing the documented files that directly or
-# indirectly include this file.
-
-INCLUDED_BY_GRAPH = YES
-
-# If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
-# generate a call dependency graph for every global function or class method.
-# Note that enabling this option will significantly increase the time of a run.
-# So in most cases it will be better to enable call graphs for selected
-# functions only using the \callgraph command.
-
-CALL_GRAPH = NO
-
-# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
-# will graphical hierarchy of all classes instead of a textual one.
-
-GRAPHICAL_HIERARCHY = YES
-
-# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
-# generated by dot. Possible values are png, jpg, or gif
-# If left blank png will be used.
-
-DOT_IMAGE_FORMAT = png
-
-# The tag DOT_PATH can be used to specify the path where the dot tool can be
-# found. If left blank, it is assumed the dot tool can be found on the path.
-
-DOT_PATH =
-
-# The DOTFILE_DIRS tag can be used to specify one or more directories that
-# contain dot files that are included in the documentation (see the
-# \dotfile command).
-
-DOTFILE_DIRS =
-
-# The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width
-# (in pixels) of the graphs generated by dot. If a graph becomes larger than
-# this value, doxygen will try to truncate the graph, so that it fits within
-# the specified constraint. Beware that most browsers cannot cope with very
-# large images.
-
-MAX_DOT_GRAPH_WIDTH = 1024
-
-# The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height
-# (in pixels) of the graphs generated by dot. If a graph becomes larger than
-# this value, doxygen will try to truncate the graph, so that it fits within
-# the specified constraint. Beware that most browsers cannot cope with very
-# large images.
-
-MAX_DOT_GRAPH_HEIGHT = 1024
-
-# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
-# graphs generated by dot. A depth value of 3 means that only nodes reachable
-# from the root by following a path via at most 3 edges will be shown. Nodes that
-# lay further from the root node will be omitted. Note that setting this option to
-# 1 or 2 may greatly reduce the computation time needed for large code bases. Also
-# note that a graph may be further truncated if the graph's image dimensions are
-# not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH and MAX_DOT_GRAPH_HEIGHT).
-# If 0 is used for the depth value (the default), the graph is not depth-constrained.
-
-MAX_DOT_GRAPH_DEPTH = 0
-
-# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
-# generate a legend page explaining the meaning of the various boxes and
-# arrows in the dot generated graphs.
-
-GENERATE_LEGEND = YES
-
-# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
-# remove the intermediate dot files that are used to generate
-# the various graphs.
-
-DOT_CLEANUP = YES
-
-#---------------------------------------------------------------------------
-# Configuration::addtions related to the search engine
-#---------------------------------------------------------------------------
-
-# The SEARCHENGINE tag specifies whether or not a search engine should be
-# used. If set to NO the values of all tags below this one will be ignored.
-
-SEARCHENGINE = NO
-
-# The CGI_NAME tag should be the name of the CGI script that
-# starts the search engine (doxysearch) with the correct parameters.
-# A script with this name will be generated by doxygen.
-
-CGI_NAME = search.cgi
-
-# The CGI_URL tag should be the absolute URL to the directory where the
-# cgi binaries are located. See the documentation of your http daemon for
-# details.
-
-CGI_URL =
-
-# The DOC_URL tag should be the absolute URL to the directory where the
-# documentation is located. If left blank the absolute path to the
-# documentation, with file:// prepended to it, will be used.
-
-DOC_URL =
-
-# The DOC_ABSPATH tag should be the absolute path to the directory where the
-# documentation is located. If left blank the directory on the local machine
-# will be used.
-
-DOC_ABSPATH =
-
-# The BIN_ABSPATH tag must point to the directory where the doxysearch binary
-# is installed.
-
-BIN_ABSPATH = /usr/local/bin/
-
-# The EXT_DOC_PATHS tag can be used to specify one or more paths to
-# documentation generated for other projects. This allows doxysearch to search
-# the documentation for these projects as well.
-
-EXT_DOC_PATHS =
Deleted: trunk/jazz/rebuild
===================================================================
--- trunk/jazz/rebuild 2008-04-03 05:13:17 UTC (rev 392)
+++ trunk/jazz/rebuild 2008-04-05 01:30:50 UTC (rev 393)
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-# The CVS contains some files that technically aren't needed to build from the
-# bare bottom of the source. To remove those files, run:
-# make really-clean
-# To recreate those files, two things need to be done:
-# ./bootstrap
-# cd bitmaps; make
-
-./bootstrap
-./configure --enable-alsa=yes --enable-sequencer2=yes
-make
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-03 05:13:18
|
Revision: 392
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=392&view=rev
Author: pstieber
Date: 2008-04-02 22:13:17 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Changed char* to const char*.
Modified Paths:
--------------
trunk/jazz/src/ControlEdit.h
trunk/jazz/src/Player.cpp
Modified: trunk/jazz/src/ControlEdit.h
===================================================================
--- trunk/jazz/src/ControlEdit.h 2008-04-03 05:06:06 UTC (rev 391)
+++ trunk/jazz/src/ControlEdit.h 2008-04-03 05:13:17 UTC (rev 392)
@@ -35,7 +35,9 @@
class tCtrlPanel : public wxPanel
{
public:
- friend class tCtrlEditBase;
+
+ friend class tCtrlEditBase;
+
tCtrlPanel(
tCtrlEditBase* e,
wxWindow* pParent,
@@ -44,11 +46,12 @@
int width=-1,
int height=-1,
long style=0,
- char *name = "panel")
- : wxPanel(pParent, x, y, width, height, style, name)
+ const char* pName = "panel")
+ : wxPanel(pParent, x, y, width, height, style, pName)
{
edit = e;
}
+
tCtrlEditBase *edit;
};
Modified: trunk/jazz/src/Player.cpp
===================================================================
--- trunk/jazz/src/Player.cpp 2008-04-03 05:06:06 UTC (rev 391)
+++ trunk/jazz/src/Player.cpp 2008-04-03 05:13:17 UTC (rev 392)
@@ -1455,56 +1455,69 @@
}
- int tSeq2Player::FindMidiDevice()
- {
- struct synth_info si;
- int i, nrsynths, ninp;
+int tSeq2Player::FindMidiDevice()
+{
+ struct synth_info si;
+ int i, nrsynths, ninp;
- if (ioctl(seqfd, SNDCTL_SEQ_NRSYNTHS, &nrsynths) == -1) {
- perror("SNDCTL_SEQ_NRSYNTHS");
- return -1;
- }
+ if (ioctl(seqfd, SNDCTL_SEQ_NRSYNTHS, &nrsynths) == -1)
+ {
+ perror("SNDCTL_SEQ_NRSYNTHS");
+ return -1;
+ }
- wxString *devs = new wxString[nrsynths];
+ wxString *devs = new wxString[nrsynths];
- ninp = 0;
- for (i = 0; i < nrsynths; i++) {
- si.device = i;
- if (ioctl(seqfd, SNDCTL_SYNTH_INFO, &si) == -1) {
- perror("SNDCTL_SYNTH_INFO");
- return -1;
- }
- //if (si.synth_type == SYNTH_TYPE_MIDI || si.synth_type == SYNTH_TYPE_SAMPLE)
- {
- devs[ninp] = si.name;
- ninp++;
- }
- }
+ ninp = 0;
+ for (i = 0; i < nrsynths; i++)
+ {
+ si.device = i;
+ if (ioctl(seqfd, SNDCTL_SYNTH_INFO, &si) == -1)
+ {
+ perror("SNDCTL_SYNTH_INFO");
+ return -1;
+ }
+ // if (si.synth_type == SYNTH_TYPE_MIDI || si.synth_type == SYNTH_TYPE_SAMPLE)
+ {
+ devs[ninp] = si.name;
+ ninp++;
+ }
+ }
- if (ninp > 0) {
- char *title = "MIDI Device";
- wxSingleChoiceDialog *dialog = new wxSingleChoiceDialog(gpTrackWindow,
- title,
- title,
- ninp,
- devs);
- if(mididev != -1) dialog->SetSelection(mididev);
+ if (ninp > 0)
+ {
+ const char* pTitle = "MIDI Device";
+ wxSingleChoiceDialog *dialog = new wxSingleChoiceDialog(
+ gpTrackWindow,
+ pTitle,
+ pTitle,
+ ninp,
+ devs);
- int res = dialog->ShowModal();
- int k = dialog->GetSelection();
- dialog->Destroy();
+ if (mididev != -1)
+ {
+ dialog->SetSelection(mididev);
+ }
- delete [] devs;
+ int res = dialog->ShowModal();
+ int k = dialog->GetSelection();
+ dialog->Destroy();
- if(res == wxCANCEL) k = -1;
+ delete [] devs;
- return k;
+ if (res == wxCANCEL)
+ {
+ k = -1;
+ }
- } else {
- delete [] devs;
- cerr << "no midi device found!\n";
- return -1;
- }
+ return k;
+ }
+ else
+ {
+ delete [] devs;
+ cerr << "no midi device found!\n";
+ return -1;
+ }
}
void tSeq2Player::SetSoftThru(int on, int idummy, int odummy)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-03 05:06:11
|
Revision: 391
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=391&view=rev
Author: pstieber
Date: 2008-04-02 22:06:06 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Added missing terminating quote.
Modified Paths:
--------------
trunk/jazz/src/Project.cpp
Modified: trunk/jazz/src/Project.cpp
===================================================================
--- trunk/jazz/src/Project.cpp 2008-04-03 04:42:40 UTC (rev 390)
+++ trunk/jazz/src/Project.cpp 2008-04-03 05:06:06 UTC (rev 391)
@@ -216,7 +216,7 @@
if (!mpMidiPlayer->Installed())
{
cerr
- << "Could not connect to midinet server at host \"
+ << "Could not connect to midinet server at host \""
<< %midinethost << "\"\n"
<< "Jazz will start with no play/record ability."
<< endl;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-03 04:42:42
|
Revision: 390
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=390&view=rev
Author: pstieber
Date: 2008-04-02 21:42:40 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Changed char* to const char* in many places.
Modified Paths:
--------------
trunk/jazz/src/ClockDialog.cpp
trunk/jazz/src/ClockDialog.h
trunk/jazz/src/Dialogs.cpp
trunk/jazz/src/Filter.h
trunk/jazz/src/KeyDialog.cpp
trunk/jazz/src/KeyDialog.h
trunk/jazz/src/KeyStringConverters.cpp
trunk/jazz/src/NamedChoice.cpp
trunk/jazz/src/NamedChoice.h
trunk/jazz/src/Track.cpp
trunk/jazz/src/Track.h
Modified: trunk/jazz/src/ClockDialog.cpp
===================================================================
--- trunk/jazz/src/ClockDialog.cpp 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/ClockDialog.cpp 2008-04-03 04:42:40 UTC (rev 390)
@@ -34,7 +34,7 @@
//*****************************************************************************
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-JZClockDialog::JZClockDialog(JZSong* pSong, char* pTitle, int Clock)
+JZClockDialog::JZClockDialog(JZSong* pSong, const char* pTitle, int Clock)
{
char Buffer[500];
pSong->Clock2String(Clock, Buffer);
Modified: trunk/jazz/src/ClockDialog.h
===================================================================
--- trunk/jazz/src/ClockDialog.h 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/ClockDialog.h 2008-04-03 04:42:40 UTC (rev 390)
@@ -32,7 +32,7 @@
{
public:
- JZClockDialog(JZSong* pSong, char* pTitle, int Clock);
+ JZClockDialog(JZSong* pSong, const char* pTitle, int Clock);
~JZClockDialog();
@@ -46,7 +46,7 @@
char* mpString;
- char* mpTitle;
+ const char* mpTitle;
JZSong* mpSong;
};
Modified: trunk/jazz/src/Dialogs.cpp
===================================================================
--- trunk/jazz/src/Dialogs.cpp 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/Dialogs.cpp 2008-04-03 04:42:40 UTC (rev 390)
@@ -1473,7 +1473,7 @@
return;
tEventDlg *dlg = 0;
- char *str = 0;
+ const char* str = 0;
switch (e->Stat)
{
case StatKeyOn:
Modified: trunk/jazz/src/Filter.h
===================================================================
--- trunk/jazz/src/Filter.h 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/Filter.h 2008-04-03 04:42:40 UTC (rev 390)
@@ -45,7 +45,7 @@
{
public:
int Stat;
- char *Name;
+ const char* Name;
bool Selected;
int MinValue, MaxValue;
int FromValue, ToValue;
Modified: trunk/jazz/src/KeyDialog.cpp
===================================================================
--- trunk/jazz/src/KeyDialog.cpp 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/KeyDialog.cpp 2008-04-03 04:42:40 UTC (rev 390)
@@ -27,33 +27,34 @@
#include "DeprecatedStringUtils.h"
#include "DeprecatedWx/proplist.h"
-tKeyDlg::tKeyDlg(char *t, int Key)
+tKeyDlg::tKeyDlg(const char* pTitle, int Key)
{
char buf[50];
Key2Str(Key, buf);
- String = copystring(buf);
- Title = t;
+ mpString = copystring(buf);
+ mpTitle = pTitle;
}
tKeyDlg::~tKeyDlg()
{
- delete String;
+ delete mpString;
}
#ifdef OBSOLETE
wxFormItem *tKeyDlg::mkFormItem(int w)
{
- return wxMakeFormString(Title, &String, wxFORM_DEFAULT,0,0,0,w);
+ return wxMakeFormString(mpTitle, &mpString, wxFORM_DEFAULT, 0, 0, 0, w);
}
#endif
-wxProperty* tKeyDlg::mkProperty(){
- return new wxProperty(Title, wxPropertyValue((char**)&String), "string");
+wxProperty* tKeyDlg::mkProperty()
+{
+ return new wxProperty(mpTitle, wxPropertyValue((char**)&mpString), "string");
}
int tKeyDlg::GetKey()
{
- return Str2Key(String);
+ return Str2Key(mpString);
}
Modified: trunk/jazz/src/KeyDialog.h
===================================================================
--- trunk/jazz/src/KeyDialog.h 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/KeyDialog.h 2008-04-03 04:42:40 UTC (rev 390)
@@ -27,12 +27,9 @@
class tKeyDlg
{
- char *String;
- char *Title;
-
public:
- tKeyDlg(char *title, int Key);
+ tKeyDlg(const char* pTitle, int Key);
~tKeyDlg();
@@ -41,6 +38,12 @@
wxProperty* mkProperty();
int GetKey();
+
+ private:
+
+ char* mpString;
+
+ const char* mpTitle;
};
#endif // !defined(JZ_KEYDIALOG_H)
Modified: trunk/jazz/src/KeyStringConverters.cpp
===================================================================
--- trunk/jazz/src/KeyStringConverters.cpp 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/KeyStringConverters.cpp 2008-04-03 04:42:40 UTC (rev 390)
@@ -26,7 +26,7 @@
void Key2Str(int Key, char* pString)
{
- static char* pNames[] =
+ static const char* pNames[] =
{
"C",
"C#",
@@ -48,8 +48,8 @@
int Str2Key(const char *pString)
{
- static char sKey[] = "cCdDeEfFgGaAbB";
- static int nKey[] =
+ static const char sKey[] = "cCdDeEfFgGaAbB";
+ static int nKey[] =
{
0,
0,
Modified: trunk/jazz/src/NamedChoice.cpp
===================================================================
--- trunk/jazz/src/NamedChoice.cpp 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/NamedChoice.cpp 2008-04-03 04:42:40 UTC (rev 390)
@@ -30,7 +30,7 @@
using namespace std;
tNamedChoice::tNamedChoice(
- char* pTitle,
+ const char* pTitle,
const std::vector<std::pair<std::string, int> >& Pairs,
int* pResult)
: //mpTitle(pTitle),
@@ -56,8 +56,15 @@
list->Append((wxObject *)copystring(mpValues[i].Name));
wxFormItemConstraint *constraint = wxMakeConstraintStrings(list);
- return wxMakeFormString(mpTitle, &mpSelection, wxFORM_SINGLE_LIST, new wxList(constraint, 0),
- 0, 0, w, h);
+ return wxMakeFormString(
+ mpTitle,
+ &mpSelection,
+ wxFORM_SINGLE_LIST,
+ new wxList(constraint, 0),
+ 0,
+ 0,
+ w,
+ h);
}
#endif
Modified: trunk/jazz/src/NamedChoice.h
===================================================================
--- trunk/jazz/src/NamedChoice.h 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/NamedChoice.h 2008-04-03 04:42:40 UTC (rev 390)
@@ -37,7 +37,7 @@
public:
tNamedChoice(
- char* pTitle,
+ const char* pTitle,
const std::vector<std::pair<std::string, int> >& Pairs,
int* pResult);
Modified: trunk/jazz/src/Track.cpp
===================================================================
--- trunk/jazz/src/Track.cpp 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/Track.cpp 2008-04-03 04:42:40 UTC (rev 390)
@@ -2089,11 +2089,11 @@
// ----------------------- Copyright ------------------------------------
-char* JZTrack::GetCopyright()
+const char* JZTrack::GetCopyright()
{
if (Copyright)
{
- return (char *)Copyright->Data;
+ return (const char *)Copyright->Data;
}
return "";
}
@@ -2120,11 +2120,11 @@
// ----------------------- Name ------------------------------------
-char* JZTrack::GetName()
+const char* JZTrack::GetName()
{
if (mName)
{
- return (char *)mName->Data;
+ return (const char*)mName->Data;
}
return "";
}
@@ -3335,7 +3335,7 @@
// ------------------------- State ----------------------------------
-char *JZTrack::GetStateChar()
+const char* JZTrack::GetStateChar()
{
switch (State)
{
Modified: trunk/jazz/src/Track.h
===================================================================
--- trunk/jazz/src/Track.h 2008-04-03 03:45:45 UTC (rev 389)
+++ trunk/jazz/src/Track.h 2008-04-03 04:42:40 UTC (rev 390)
@@ -440,20 +440,24 @@
}
void Merge(tEventArray *other);
- void MergeRange(tEventArray *other, int FromClock, int ToClock, int Replace = 0);
+ void MergeRange(
+ tEventArray *other,
+ int FromClock,
+ int ToClock,
+ int Replace = 0);
void Undo();
void Redo();
void NewUndoBuffer();
void Clear();
void Cleanup();
- char *GetName();
+ const char* GetName();
void SetName(char *Name);
- char *GetCopyright();
+ const char* GetCopyright();
void SetCopyright(char *Copyright);
- char *GetStateChar();
+ const char* GetStateChar();
void SetState(int NewState);
void ToggleState(int Direction); // +1 = next, -1 = prev
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-03 03:45:52
|
Revision: 389
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=389&view=rev
Author: pstieber
Date: 2008-04-02 20:45:45 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Changed char* to const char*.
Modified Paths:
--------------
trunk/jazz/src/SampleDialog.cpp
Modified: trunk/jazz/src/SampleDialog.cpp
===================================================================
--- trunk/jazz/src/SampleDialog.cpp 2008-04-03 03:42:46 UTC (rev 388)
+++ trunk/jazz/src/SampleDialog.cpp 2008-04-03 03:45:45 UTC (rev 389)
@@ -198,7 +198,17 @@
#define CV_SINE1 5
#define CV_SINE2 6
-static char *cv_strings[] = { "Linear", "Expo 1", "Expo 2", "Expo 3", "Expo 4", "Sine 1", "Sine 2", 0 };
+static const char* cv_strings[] =
+{
+ "Linear",
+ "Expo 1",
+ "Expo 2",
+ "Expo 3",
+ "Expo 4",
+ "Sine 1",
+ "Sine 2",
+ 0
+};
int tDistortion::geo[4] = { 50, 80, 300, 320 };
@@ -221,9 +231,11 @@
action = new wxButton(panel, wxID_ANY, "Ok"); //(wxFunction)ItemCallback,
cancel = new wxButton(panel, wxID_ANY, "Cancel"); //(wxFunction)ItemCallback,
curve = new wxChoice(panel, wxID_ANY);//, "Presets"); //(wxFunction)ItemCallback,
- char **s = cv_strings;
+ const char **s = cv_strings;
while (*s)
+ {
curve->Append(*s++);
+ }
}
void tDistortion::AddEdits()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-03 03:42:48
|
Revision: 388
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=388&view=rev
Author: pstieber
Date: 2008-04-02 20:42:46 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Changed static char* to static const char*.
Modified Paths:
--------------
trunk/jazz/src/Bitmaps/JazzLogo.xpm
trunk/jazz/src/Bitmaps/accept.xpm
trunk/jazz/src/Bitmaps/alea.xpm
trunk/jazz/src/Bitmaps/analyze.xpm
trunk/jazz/src/Bitmaps/cancel.xpm
trunk/jazz/src/Bitmaps/cut.xpm
trunk/jazz/src/Bitmaps/cutpaste.xpm
trunk/jazz/src/Bitmaps/delchord.xpm
trunk/jazz/src/Bitmaps/delete.xpm
trunk/jazz/src/Bitmaps/dialog.xpm
trunk/jazz/src/Bitmaps/evnts.xpm
trunk/jazz/src/Bitmaps/harscale.xpm
trunk/jazz/src/Bitmaps/haunsch.xpm
trunk/jazz/src/Bitmaps/help.xpm
trunk/jazz/src/Bitmaps/ionscale.xpm
trunk/jazz/src/Bitmaps/length.xpm
trunk/jazz/src/Bitmaps/majscale.xpm
trunk/jazz/src/Bitmaps/melscale.xpm
trunk/jazz/src/Bitmaps/metro.xpm
trunk/jazz/src/Bitmaps/mixer.xpm
trunk/jazz/src/Bitmaps/new.xpm
trunk/jazz/src/Bitmaps/note16.xpm
trunk/jazz/src/Bitmaps/note163.xpm
trunk/jazz/src/Bitmaps/note8.xpm
trunk/jazz/src/Bitmaps/note83.xpm
trunk/jazz/src/Bitmaps/open.xpm
trunk/jazz/src/Bitmaps/panic.xpm
trunk/jazz/src/Bitmaps/piano.xpm
trunk/jazz/src/Bitmaps/pianowin.xpm
trunk/jazz/src/Bitmaps/play.xpm
trunk/jazz/src/Bitmaps/playloop.xpm
trunk/jazz/src/Bitmaps/quantize.xpm
trunk/jazz/src/Bitmaps/record.xpm
trunk/jazz/src/Bitmaps/redo.xpm
trunk/jazz/src/Bitmaps/repl.xpm
trunk/jazz/src/Bitmaps/rrgadd.xpm
trunk/jazz/src/Bitmaps/rrgdel.xpm
trunk/jazz/src/Bitmaps/rrgdown.xpm
trunk/jazz/src/Bitmaps/rrggen.xpm
trunk/jazz/src/Bitmaps/rrgup.xpm
trunk/jazz/src/Bitmaps/same0.xpm
trunk/jazz/src/Bitmaps/same1.xpm
trunk/jazz/src/Bitmaps/same2.xpm
trunk/jazz/src/Bitmaps/same3.xpm
trunk/jazz/src/Bitmaps/same4.xpm
trunk/jazz/src/Bitmaps/sameb.xpm
trunk/jazz/src/Bitmaps/sameh.xpm
trunk/jazz/src/Bitmaps/save.xpm
trunk/jazz/src/Bitmaps/select.xpm
trunk/jazz/src/Bitmaps/shiftl.xpm
trunk/jazz/src/Bitmaps/shiftr.xpm
trunk/jazz/src/Bitmaps/std251.xpm
trunk/jazz/src/Bitmaps/transpos.xpm
trunk/jazz/src/Bitmaps/tritone.xpm
trunk/jazz/src/Bitmaps/undo.xpm
trunk/jazz/src/Bitmaps/zoomin.xpm
trunk/jazz/src/Bitmaps/zoomout.xpm
Modified: trunk/jazz/src/Bitmaps/JazzLogo.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/JazzLogo.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/JazzLogo.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char* JazzLogo_xpm[] = {
+static const char* JazzLogo_xpm[] = {
/* width height ncolors chars_per_pixel */
"450 67 127 2",
/* colors */
Modified: trunk/jazz/src/Bitmaps/accept.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/accept.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/accept.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *accept_xpm[] = {
+static const char *accept_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 6 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/alea.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/alea.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/alea.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *alea_xpm[] = {
+static const char *alea_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/analyze.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/analyze.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/analyze.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *analyze_xpm[] = {
+static const char *analyze_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/cancel.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/cancel.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/cancel.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *cancel_xpm[] = {
+static const char *cancel_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/cut.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/cut.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/cut.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *cut_xpm[] = {
+static const char *cut_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/cutpaste.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/cutpaste.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/cutpaste.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *cutpaste_xpm[] = {
+static const char *cutpaste_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/delchord.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/delchord.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/delchord.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *delchord_xpm[] = {
+static const char *delchord_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/delete.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/delete.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/delete.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *delete_xpm[] = {
+static const char *delete_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/dialog.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/dialog.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/dialog.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *dialog_xpm[] = {
+static const char *dialog_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/evnts.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/evnts.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/evnts.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *evnts_xpm[] = {
+static const char *evnts_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/harscale.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/harscale.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/harscale.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *harscale_xpm[] = {
+static const char *harscale_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/haunsch.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/haunsch.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/haunsch.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *haunsch_xpm[] = {
+static const char *haunsch_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/help.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/help.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/help.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *help_xpm[] = {
+static const char *help_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/ionscale.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/ionscale.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/ionscale.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *ionscale_xpm[] = {
+static const char *ionscale_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/length.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/length.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/length.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *length_xpm[] = {
+static const char *length_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/majscale.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/majscale.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/majscale.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *majscale_xpm[] = {
+static const char *majscale_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/melscale.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/melscale.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/melscale.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *melscale_xpm[] = {
+static const char *melscale_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/metro.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/metro.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/metro.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *metro_xpm[] = {
+static const char *metro_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/mixer.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/mixer.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/mixer.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *mixer_xpm[] = {
+static const char *mixer_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/new.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/new.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/new.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *new_xpm[] = {
+static const char *new_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/note16.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/note16.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/note16.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *note16_xpm[] = {
+static const char *note16_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/note163.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/note163.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/note163.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *note163_xpm[] = {
+static const char *note163_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/note8.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/note8.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/note8.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *note8_xpm[] = {
+static const char *note8_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/note83.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/note83.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/note83.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *note83_xpm[] = {
+static const char *note83_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/open.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/open.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/open.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *open_xpm[] = {
+static const char *open_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 6 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/panic.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/panic.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/panic.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *panic_xpm[] = {
+static const char *panic_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 7 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/piano.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/piano.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/piano.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *piano_xpm[] = {
+static const char *piano_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/pianowin.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/pianowin.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/pianowin.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *pianowin_xpm[] = {
+static const char *pianowin_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/play.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/play.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/play.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *play_xpm[] = {
+static const char *play_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/playloop.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/playloop.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/playloop.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *playloop_xpm[] = {
+static const char *playloop_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/quantize.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/quantize.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/quantize.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *quantize_xpm[] = {
+static const char *quantize_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/record.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/record.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/record.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *record_xpm[] = {
+static const char *record_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/redo.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/redo.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/redo.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *redo_xpm[] = {
+static const char *redo_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/repl.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/repl.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/repl.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *repl_xpm[] = {
+static const char *repl_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/rrgadd.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/rrgadd.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/rrgadd.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *rrgadd_xpm[] = {
+static const char *rrgadd_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/rrgdel.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/rrgdel.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/rrgdel.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *rrgdel_xpm[] = {
+static const char *rrgdel_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/rrgdown.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/rrgdown.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/rrgdown.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *rrgdown_xpm[] = {
+static const char *rrgdown_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/rrggen.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/rrggen.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/rrggen.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *rrggen_xpm[] = {
+static const char *rrggen_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/rrgup.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/rrgup.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/rrgup.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *rrgup_xpm[] = {
+static const char *rrgup_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/same0.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/same0.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/same0.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *same0_xpm[] = {
+static const char *same0_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/same1.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/same1.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/same1.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *same1_xpm[] = {
+static const char *same1_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/same2.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/same2.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/same2.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *same2_xpm[] = {
+static const char *same2_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/same3.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/same3.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/same3.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *same3_xpm[] = {
+static const char *same3_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/same4.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/same4.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/same4.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *same4_xpm[] = {
+static const char *same4_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/sameb.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/sameb.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/sameb.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *sameb_xpm[] = {
+static const char *sameb_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/sameh.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/sameh.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/sameh.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *sameh_xpm[] = {
+static const char *sameh_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/save.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/save.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/save.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *save_xpm[] = {
+static const char *save_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 6 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/select.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/select.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/select.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *select_xpm[] = {
+static const char *select_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/shiftl.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/shiftl.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/shiftl.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *shiftl_xpm[] = {
+static const char *shiftl_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/shiftr.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/shiftr.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/shiftr.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *shiftr_xpm[] = {
+static const char *shiftr_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/std251.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/std251.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/std251.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *std251_xpm[] = {
+static const char *std251_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/transpos.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/transpos.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/transpos.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *transpos_xpm[] = {
+static const char *transpos_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/tritone.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/tritone.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/tritone.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *tritone_xpm[] = {
+static const char *tritone_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 4 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/undo.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/undo.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/undo.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *undo_xpm[] = {
+static const char *undo_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/zoomin.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/zoomin.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/zoomin.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *zoomin_xpm[] = {
+static const char *zoomin_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
Modified: trunk/jazz/src/Bitmaps/zoomout.xpm
===================================================================
--- trunk/jazz/src/Bitmaps/zoomout.xpm 2008-04-02 13:46:04 UTC (rev 387)
+++ trunk/jazz/src/Bitmaps/zoomout.xpm 2008-04-03 03:42:46 UTC (rev 388)
@@ -1,5 +1,5 @@
/* XPM */
-static char *zoomout_xpm[] = {
+static const char *zoomout_xpm[] = {
/* width height ncolors chars_per_pixel */
"20 19 5 1",
/* colors */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-02 13:46:07
|
Revision: 387
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=387&view=rev
Author: pstieber
Date: 2008-04-02 06:46:04 -0700 (Wed, 02 Apr 2008)
Log Message:
-----------
Changed a char * argument to const char*.
Modified Paths:
--------------
trunk/jazz/src/AlsaPlayer.cpp
trunk/jazz/src/AlsaPlayer.h
Modified: trunk/jazz/src/AlsaPlayer.cpp
===================================================================
--- trunk/jazz/src/AlsaPlayer.cpp 2008-04-02 04:40:09 UTC (rev 386)
+++ trunk/jazz/src/AlsaPlayer.cpp 2008-04-02 13:46:04 UTC (rev 387)
@@ -930,7 +930,7 @@
//-----------------------------------------------------------------------------
int tAlsaPlayer::select_list(
tAlsaDeviceList& list,
- char* title,
+ const char* title,
int def_device)
{
if (list.GetCount() > 0)
Modified: trunk/jazz/src/AlsaPlayer.h
===================================================================
--- trunk/jazz/src/AlsaPlayer.h 2008-04-02 04:40:09 UTC (rev 386)
+++ trunk/jazz/src/AlsaPlayer.h 2008-04-02 13:46:04 UTC (rev 387)
@@ -90,7 +90,7 @@
void scan_clients(
tAlsaDeviceList& Devicelist,
unsigned DeviceCapabilities);
- int select_list(tAlsaDeviceList &list, char *title, int def_device);
+ int select_list(tAlsaDeviceList &list, const char *title, int def_device);
int start_timer(long clock);
int write(snd_seq_event_t *ev) { return write(ev, 0); } // 0 == ok
int write(snd_seq_event_t *ev, int now); // 0 == ok
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-02 04:40:11
|
Revision: 386
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=386&view=rev
Author: pstieber
Date: 2008-04-01 21:40:09 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Added some index checking.
Modified Paths:
--------------
trunk/jazz/src/Configuration.cpp
Modified: trunk/jazz/src/Configuration.cpp
===================================================================
--- trunk/jazz/src/Configuration.cpp 2008-04-02 04:31:05 UTC (rev 385)
+++ trunk/jazz/src/Configuration.cpp 2008-04-02 04:40:09 UTC (rev 386)
@@ -706,46 +706,65 @@
// Voice names
if (pVector == &mVoiceNames)
{
- assert(0 <= VoiceIndex && VoiceIndex < mVoiceNames.size());
+ if (VoiceIndex >= 0 && VoiceIndex < mVoiceNames.size())
+ {
+ int Value;
+ sscanf(buf, " %d %n", &Value, &j);
- long val;
- sscanf(buf, " %ld %n", &val, &j);
- if (gpConfig->GetValue(C_UseTwoCommandBankSelect))
- {
- assert(0 <= val && val <= 65536);
+ if (gpConfig->GetValue(C_UseTwoCommandBankSelect))
+ {
+ assert(0 <= Value && Value <= 65536);
+ }
+ else
+ {
+ assert(0 <= Value && Value <= 32639);
+ }
+
+ mVoiceNames[VoiceIndex + 1].second = Value + 1;
+
+ // Remove the off \n.
+ buf[strlen(buf) - 1] = 0;
+
+ mVoiceNames[VoiceIndex + 1].first = buf + j;
+
+ ++VoiceIndex;
}
else
{
- assert(0 <= val && val <= 32639);
+ cout
+ << "Voice index \"" << VoiceIndex << "\" out of range."
+ << endl;
}
- mVoiceNames[VoiceIndex + 1].second = val + 1;
-
- buf[strlen(buf) - 1] = 0; // cut off \n
- mVoiceNames[VoiceIndex + 1].first = buf + j;
-
- ++VoiceIndex;
}
// Drumset names
else if (pVector == &mDrumSets)
{
- long val;
- assert(0 <= DrumsetIndex && DrumsetIndex < 129);
- sscanf(buf, " %ld %n", &val, &j);
- if (gpConfig->GetValue(C_UseTwoCommandBankSelect))
+ if (DrumsetIndex >= 0 && DrumsetIndex < 129)
{
- assert(0 <= val && val <= 65536);
+ int Value;
+ sscanf(buf, " %d %n", &Value, &j);
+ if (gpConfig->GetValue(C_UseTwoCommandBankSelect))
+ {
+ assert(0 <= Value && Value <= 65536);
+ }
+ else
+ {
+ assert(0 <= Value && Value <= 32639);
+ }
+ mDrumSets[DrumsetIndex + 1].second = Value + 1;
+
+ buf[strlen(buf) - 1] = 0; // cut off \n
+ mDrumSets[DrumsetIndex + 1].first = buf + j;
+
+ ++DrumsetIndex;
}
else
{
- assert(0 <= val && val <= 32639);
+ cout
+ << "Drumset index \"" << DrumsetIndex << "\" out of range."
+ << endl;
}
- mDrumSets[DrumsetIndex + 1].second = val + 1;
-
- buf[strlen(buf) - 1] = 0; // cut off \n
- mDrumSets[DrumsetIndex + 1].first = buf + j;
-
- ++DrumsetIndex;
}
// Controller names.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-02 04:31:10
|
Revision: 385
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=385&view=rev
Author: pstieber
Date: 2008-04-01 21:31:05 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Changed the eol style to native.
Modified Paths:
--------------
trunk/jazz/conf/jazz.cfg
trunk/jazz/conf/xgdrmnam.jzi
Property Changed:
----------------
trunk/jazz/conf/Makefile.am
trunk/jazz/conf/ctrlnam.jzi
trunk/jazz/conf/e26.jzi
trunk/jazz/conf/e26voice.jzi
trunk/jazz/conf/gm.jzi
trunk/jazz/conf/gmdrmnam.jzi
trunk/jazz/conf/gmdrmset.jzi
trunk/jazz/conf/gmvoices.jzi
trunk/jazz/conf/gs.jzi
trunk/jazz/conf/gsdrmset.jzi
trunk/jazz/conf/gsvoices.jzi
trunk/jazz/conf/jazz.cfg
trunk/jazz/conf/jv1000.jzi
trunk/jazz/conf/sc88pdrm.jzi
trunk/jazz/conf/sc88pro.jzi
trunk/jazz/conf/sc88pvoi.jzi
trunk/jazz/conf/xg.jzi
trunk/jazz/conf/xgdrmnam.jzi
trunk/jazz/conf/xgdrmset.jzi
trunk/jazz/conf/xgvoices.jzi
Property changes on: trunk/jazz/conf/Makefile.am
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/ctrlnam.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/e26.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/e26voice.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/gm.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/gmdrmnam.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/gmdrmset.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/gmvoices.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/gs.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/gsdrmset.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/gsvoices.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/jazz/conf/jazz.cfg
===================================================================
--- trunk/jazz/conf/jazz.cfg 2008-04-02 04:26:56 UTC (rev 384)
+++ trunk/jazz/conf/jazz.cfg 2008-04-02 04:31:05 UTC (rev 385)
@@ -1,98 +1,98 @@
-# jazz config-file for General Midi setup
-
-# when displaying this midichannel (1..16) the Drumnames are displayed
-.drumchannel 10
-
-# Controls software emulation of midi thru
-# If using /dev/music with a true mpu401 card
-# set this to 0 to disable software emulated midi thru
-# Has no effect with jazz's native mpu401 driver
-.softthru 1
-
-# controls source of sequencer clock (0 = internal)
-.clocksource 0
-
-# controls sending of real time info to midi out from sequencer when
-# playing, normally off
-.realtime_out 0
-
-# controls use of GS reverb and chorus macros opposed to individual
-# parameter control
-.use_reverb_macro 1
-.use_chorus_macro 1
-
-# sets controller number for selecting bank (with GS it's 0)
-.bank_control_number 0
-
-# controls max. number of columns to use in the "Parts" dialogs
-.parts_columns_max 4
-
-# controls whether to draw tracknames also on right side of "Parts" dialogs
-.parts_tracknames_right 0
-
-# set to 1 will enable audio support on startup, 0 will disable
-.enable_audio 1
-
-# Window positions/sizes
-.trackwin_xpos 10
-.trackwin_ypos 10
-.trackwin_width 600
-.trackwin_height 400
-
-.pianowin_xpos 30
-.pianowin_ypos 30
-.pianowin_width 600
-.pianowin_height 400
-
-.enable_welcome 0
-
-# ---------------- Linux configuration -----------------------------
-
-# which driver to use:
-# 0 = jazz's native /dev/mpu401
-# 1 = OSS /dev/music
-# 2 = ALSA (experimental)
-
-.driver 2
-
-# OSS-Device no, a value of -1 will pop up a dialog at startup
-.device 0
-
-# for alsa, these are the indexes of the clients:ports used
-# for midi thru
-# see /proc/asound/seq/clients for candidates
-.thru_input 0
-.thru_output 0
-
-# if using jazz's native mpu-401 driver this can be used to control
-# hardware midi thru on the interface card
-.hardthru 1
-
-# External sync with ALSA (from Takashi Iwai <ti...@su...>)
-# To activate sync mastering on jazz, one has to set .alsa_sync_output
-# to 2 or 3 in config file, for midi clock or MTC, respectively.
-# Edit /usr/local/jazz/jazz.cfg manually by text editor.
-# Then jazz will ask you the device to sync output. Choose the raw midi
-# device to output the sync signals. This can be different from the
-# midi output device.
-
-# The time format can be selected by ".alsa_sync_output_format" in
-# config file. It corresponds to SMPTE format (from 0 = 24fps to 3 = 30
-# ndp). The format is ignored, of course, on MIDI clock mode.
-
-# ---------------- M$-Windows configuration ------------------------
-
-# device numbers for windows, -1 will prompt at startup
-.win_input_device -1
-.win_output_device -1
-
-#####################################################################
-
-# Synthesizer configuration:
-.synth_config gs.jzi
-.send_synth_reset 0
-.synth_dialog 0
-
-# program generated configuration:
-.alsa_input_device -1
-.alsa_output_device -1
+# jazz config-file for General Midi setup
+
+# when displaying this midichannel (1..16) the Drumnames are displayed
+.drumchannel 10
+
+# Controls software emulation of midi thru
+# If using /dev/music with a true mpu401 card
+# set this to 0 to disable software emulated midi thru
+# Has no effect with jazz's native mpu401 driver
+.softthru 1
+
+# controls source of sequencer clock (0 = internal)
+.clocksource 0
+
+# controls sending of real time info to midi out from sequencer when
+# playing, normally off
+.realtime_out 0
+
+# controls use of GS reverb and chorus macros opposed to individual
+# parameter control
+.use_reverb_macro 1
+.use_chorus_macro 1
+
+# sets controller number for selecting bank (with GS it's 0)
+.bank_control_number 0
+
+# controls max. number of columns to use in the "Parts" dialogs
+.parts_columns_max 4
+
+# controls whether to draw tracknames also on right side of "Parts" dialogs
+.parts_tracknames_right 0
+
+# set to 1 will enable audio support on startup, 0 will disable
+.enable_audio 1
+
+# Window positions/sizes
+.trackwin_xpos 10
+.trackwin_ypos 10
+.trackwin_width 600
+.trackwin_height 400
+
+.pianowin_xpos 30
+.pianowin_ypos 30
+.pianowin_width 600
+.pianowin_height 400
+
+.enable_welcome 0
+
+# ---------------- Linux configuration -----------------------------
+
+# which driver to use:
+# 0 = jazz's native /dev/mpu401
+# 1 = OSS /dev/music
+# 2 = ALSA (experimental)
+
+.driver 2
+
+# OSS-Device no, a value of -1 will pop up a dialog at startup
+.device 0
+
+# for alsa, these are the indexes of the clients:ports used
+# for midi thru
+# see /proc/asound/seq/clients for candidates
+.thru_input 0
+.thru_output 0
+
+# if using jazz's native mpu-401 driver this can be used to control
+# hardware midi thru on the interface card
+.hardthru 1
+
+# External sync with ALSA (from Takashi Iwai <ti...@su...>)
+# To activate sync mastering on jazz, one has to set .alsa_sync_output
+# to 2 or 3 in config file, for midi clock or MTC, respectively.
+# Edit /usr/local/jazz/jazz.cfg manually by text editor.
+# Then jazz will ask you the device to sync output. Choose the raw midi
+# device to output the sync signals. This can be different from the
+# midi output device.
+
+# The time format can be selected by ".alsa_sync_output_format" in
+# config file. It corresponds to SMPTE format (from 0 = 24fps to 3 = 30
+# ndp). The format is ignored, of course, on MIDI clock mode.
+
+# ---------------- M$-Windows configuration ------------------------
+
+# device numbers for windows, -1 will prompt at startup
+.win_input_device -1
+.win_output_device -1
+
+#####################################################################
+
+# Synthesizer configuration:
+.synth_config gs.jzi
+.send_synth_reset 0
+.synth_dialog 0
+
+# program generated configuration:
+.alsa_input_device -1
+.alsa_output_device -1
Property changes on: trunk/jazz/conf/jazz.cfg
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/jv1000.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/sc88pdrm.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/sc88pro.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/sc88pvoi.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/xg.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/jazz/conf/xgdrmnam.jzi
===================================================================
--- trunk/jazz/conf/xgdrmnam.jzi 2008-04-02 04:26:56 UTC (rev 384)
+++ trunk/jazz/conf/xgdrmnam.jzi 2008-04-02 04:31:05 UTC (rev 385)
@@ -1,84 +1,84 @@
-# Drum names for XG synthesizers
-
-# names for the drumkeys
-.drumnames
-
-13 Surdo Mute
-14 Surdo Open
-15 Hi Q
-16 Whip Slap
-17 Scratch Push
-18 Scratch Pull
-19 Finger Snap
-20 Click Noise
-21 Metronome Click
-22 Metronome Bell
-23 Seq Click L
-24 Seq Click H
-25 Brush Tap
-26 Brush Swirl L
-27 Brush Slap
-28 Brush Swirl H
-29 Snare Roll
-30 Castanet
-31 Snare L
-32 Sticks
-33 Bass Drum L
-34 Open Rim Shot
-35 Bass Drum M
-36 Bass Drum H
-37 Side Stick
-38 Snare M
-39 Hand Clap
-40 Snare H
-41 Floor Tom L
-42 Hi-Hat Closed
-43 Floor Tom H
-44 Hi-Hat Pedal
-45 Low Tom
-46 Hi-Hat Open
-47 Mid Tom L
-48 Mid Tom H
-49 Crash Cymbal 1
-50 High Tom
-51 Ride Cymbal 1
-52 Chinese Cymbal
-53 Ride Cymbal Cup
-54 Tambourine
-55 Splash Cymbal
-56 Cowbell
-57 Crash Cymbal 2
-58 Vibraslap
-59 Ride Cymbal 2
-60 Bongo H
-61 Bongo L
-62 Conga H Mute
-63 Conga H Open
-64 Conga L
-65 Timbale H
-66 Timbale L
-67 Agogo H
-68 Agogo L
-69 Cabasa
-70 Maracas
-71 Samba Whistle H
-72 Samba Whistle L
-73 Guiro Short
-74 Guiro Long
-75 Claves
-76 Wood Block H
-77 Wood Block L
-78 Cuica Mute
-79 Cuica Open
-80 Triangle Mute
-81 Triangle Open
-82 Shaker
-83 Jingle Bell
-84 Bell Tree
-85 [No sound]
-86 [No sound]
-87 [No sound]
-88 [No sound]
-89 [No sound]
-90 [No sound]
-91 [No sound]
+# Drum names for XG synthesizers
+
+# names for the drumkeys
+.drumnames
+
+13 Surdo Mute
+14 Surdo Open
+15 Hi Q
+16 Whip Slap
+17 Scratch Push
+18 Scratch Pull
+19 Finger Snap
+20 Click Noise
+21 Metronome Click
+22 Metronome Bell
+23 Seq Click L
+24 Seq Click H
+25 Brush Tap
+26 Brush Swirl L
+27 Brush Slap
+28 Brush Swirl H
+29 Snare Roll
+30 Castanet
+31 Snare L
+32 Sticks
+33 Bass Drum L
+34 Open Rim Shot
+35 Bass Drum M
+36 Bass Drum H
+37 Side Stick
+38 Snare M
+39 Hand Clap
+40 Snare H
+41 Floor Tom L
+42 Hi-Hat Closed
+43 Floor Tom H
+44 Hi-Hat Pedal
+45 Low Tom
+46 Hi-Hat Open
+47 Mid Tom L
+48 Mid Tom H
+49 Crash Cymbal 1
+50 High Tom
+51 Ride Cymbal 1
+52 Chinese Cymbal
+53 Ride Cymbal Cup
+54 Tambourine
+55 Splash Cymbal
+56 Cowbell
+57 Crash Cymbal 2
+58 Vibraslap
+59 Ride Cymbal 2
+60 Bongo H
+61 Bongo L
+62 Conga H Mute
+63 Conga H Open
+64 Conga L
+65 Timbale H
+66 Timbale L
+67 Agogo H
+68 Agogo L
+69 Cabasa
+70 Maracas
+71 Samba Whistle H
+72 Samba Whistle L
+73 Guiro Short
+74 Guiro Long
+75 Claves
+76 Wood Block H
+77 Wood Block L
+78 Cuica Mute
+79 Cuica Open
+80 Triangle Mute
+81 Triangle Open
+82 Shaker
+83 Jingle Bell
+84 Bell Tree
+85 [No sound]
+86 [No sound]
+87 [No sound]
+88 [No sound]
+89 [No sound]
+90 [No sound]
+91 [No sound]
Property changes on: trunk/jazz/conf/xgdrmnam.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/xgdrmset.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
Property changes on: trunk/jazz/conf/xgvoices.jzi
___________________________________________________________________
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-02 04:26:58
|
Revision: 384
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=384&view=rev
Author: pstieber
Date: 2008-04-01 21:26:56 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Added the ASCII MIDI file source.
Modified Paths:
--------------
trunk/jazz/vc9/JazzPlusPlus-VC9.vcproj
Modified: trunk/jazz/vc9/JazzPlusPlus-VC9.vcproj
===================================================================
--- trunk/jazz/vc9/JazzPlusPlus-VC9.vcproj 2008-04-02 00:54:59 UTC (rev 383)
+++ trunk/jazz/vc9/JazzPlusPlus-VC9.vcproj 2008-04-02 04:26:56 UTC (rev 384)
@@ -228,6 +228,14 @@
>
</File>
<File
+ RelativePath="..\src\AsciiMidiFile.cpp"
+ >
+ </File>
+ <File
+ RelativePath="..\src\AsciiMidiFile.h"
+ >
+ </File>
+ <File
RelativePath="..\src\Audio.cpp"
>
</File>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-02 00:55:00
|
Revision: 383
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=383&view=rev
Author: pstieber
Date: 2008-04-01 17:54:59 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Added configure options for debug, optimized and profiled builds.
Modified Paths:
--------------
trunk/jazz/configure.ac
Modified: trunk/jazz/configure.ac
===================================================================
--- trunk/jazz/configure.ac 2008-04-02 00:31:44 UTC (rev 382)
+++ trunk/jazz/configure.ac 2008-04-02 00:54:59 UTC (rev 383)
@@ -10,9 +10,37 @@
AC_CONFIG_HEADERS(src/config.h)
-# Checks for programs.
+dnl Checks for programs.
+
+AC_PROG_CPP
+
+dnl C-compiler checks
+dnl defines CC with the compiler to use
+dnl defines GCC with yes if using gcc
+dnl defines GCC empty if not using gcc
+dnl defines CFLAGS
+dnl
+dnl this magic incantation is needed to prevent AC_PROG_CC from setting the
+dnl default CFLAGS (something like "-g -O2") -- we don't need this as we add
+dnl -g and -O flags ourselves below
+CFLAGS=${CFLAGS:=}
AC_PROG_CC
+
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+
+dnl C++-compiler checks
+dnl defines CXX with the compiler to use
+dnl defines GXX with yes if using gxx
+dnl defines GXX empty if not using gxx
+dnl defines CXXFLAGS
+dnl
+dnl see CFLAGS line above
+CXXFLAGS=${CXXFLAGS:=}
AC_PROG_CXX
+
+AC_LANG_RESTORE
+
AC_PROG_LIBTOOL
dnl Make autoconf use C++ for its tests.
@@ -30,21 +58,9 @@
dnl Check for st_blksize in struct stat
AC_ST_BLKSIZE
-
-dnl These were taken from acconfig.h when it was removed. They do not yet have
-dnl equivalents in this file.
-
-dnl // in ms-windows, we have nothing
-dnl #ifdef wx_msw
-dnl #undef DEV_SEQUENCER2
-dnl #undef DEV_MPU401
-dnl #endif
-
-
dnl Check to see if we are using _Ios_Openmode. gcc 3.2 doesn't like using
dnl ints and std::_Ios_Openmode interchangeably. There's probably a simpler
dnl autoconf technique for checking this feature.
-
AC_MSG_CHECKING(for _Ios_Openmode)
AC_COMPILE_IFELSE(
[#include <iostream>
@@ -56,11 +72,8 @@
fi
AC_MSG_RESULT($result)
-
-
dnl optional stuff, like alsa oss...
-
dnl ---------------------------------------
dnl check if we are to enable alsa support
dnl ---------------------------------------
@@ -104,8 +117,6 @@
AC_DEFINE(DEV_SEQUENCER2, 1, [support /dev/sequencer2])
fi
-
-
dnl ----------------------------------------
dnl check if we are to enable mpu401 support
dnl ----------------------------------------
@@ -116,9 +127,7 @@
AC_DEFINE(DEV_MPU401,1,[support jazz's own driver over tcp/ip])
fi
-
dnl Check for wxWidgets
-
AM_OPTIONS_WXCONFIG
AM_PATH_WXCONFIG(2.8.7, wxWin=1)
@@ -139,6 +148,68 @@
JAZZ_PATH=\${top_srcdir}
AC_SUBST(JAZZ_PATH)
+AC_MSG_CHECKING([whether to enable debugging])
+AC_ARG_ENABLE(
+ debug,
+ AC_HELP_STRING(
+ [--enable-debug],
+ [enable debugging code (off by default)]),
+ ac_arg_debug="yes",
+ ac_arg_debug="no")
+AC_MSG_RESULT(${enable_debug-no})
+
+AC_MSG_CHECKING([whether to enable optimization])
+AC_ARG_ENABLE(
+ optimize,
+ AC_HELP_STRING(
+ [--enable-optimize@<:@=ARG@:>@],
+ [enable optimized code with ARG = 0, 1, 2, or 3 (off by default ARG = 0)]),
+ [opt_level="$enableval" ac_arg_optimize="yes"],
+ ac_arg_optimize="no")
+AC_MSG_RESULT(${enable_optimize-no})
+
+AC_MSG_CHECKING([whether to enable profiling])
+AC_ARG_ENABLE(
+ profile,
+ AC_HELP_STRING(
+ [--enable-profile],
+ [enable gprof profiling code (off by default)]),
+ ac_arg_profile="yes",
+ ac_arg_profile="no")
+AC_MSG_RESULT(${enable_profile-no})
+
+if test x$ac_arg_debug = xyes ; then
+ TLDEBUG="-g -fno-inline"
+else
+ TLDEBUG="-DNDEBUG"
+fi
+
+PROFILE=
+if test x$ac_arg_profile = xyes ; then
+ dnl The debug flag must be on for profiling to work.
+ if test x$TLDEBUG = x ; then
+ TLDEBUG="-g -fno-inline"
+ fi
+ PROFILE="-pg"
+fi
+
+OPTIMISE=-O0
+if test x$ac_arg_optimize = xyes ; then
+ if test x$opt_level = x; then
+ OPTIMISE="-O2"
+ elif test x$opt_level = x0 ; then
+ OPTIMISE="-O1"
+ elif test x$opt_level = x1 ; then
+ OPTIMISE="-O1"
+ elif test x$opt_level = x2 ; then
+ OPTIMISE="-O2"
+ elif test x$opt_level = x3 ; then
+ OPTIMISE="-O3"
+ fi
+fi
+
+EXTRA_CFLAGS="$TLDEBUG $PROFILE $OPTIMISE"
+
BITMAPS_PATH="$JAZZ_PATH/Bitmaps"
AC_SUBST(BITMAPS_PATH)
BITMAPS_FLAGS="-I$BITMAPS_PATH"
@@ -146,9 +217,9 @@
# CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
CPPFLAGS=`echo -Wall -Wno-unknown-pragmas $BITMAPS_FLAGS $WX_CPPFLAGS | sed 's/ \+/ /g'`
-CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
+CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $WX_CFLAGS_ONLY | sed 's/ \\+/ /g'`
-CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
+CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $WX_CXXFLAGS_ONLY | sed 's/ \+/ /g'`
LDFLAGS="$LDFLAGS $WX_LIBS"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-02 00:31:46
|
Revision: 382
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=382&view=rev
Author: pstieber
Date: 2008-04-01 17:31:44 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Changed the way file existence is checked, moved debug output, and removed and extra can't finc conf file message box.
Modified Paths:
--------------
trunk/jazz/src/Project.cpp
Modified: trunk/jazz/src/Project.cpp
===================================================================
--- trunk/jazz/src/Project.cpp 2008-04-01 21:21:06 UTC (rev 381)
+++ trunk/jazz/src/Project.cpp 2008-04-02 00:31:44 UTC (rev 382)
@@ -23,6 +23,7 @@
#include "WxWidgets.h"
#include <wx/config.h>
#include <wx/filename.h>
+#include <wx/file.h>
#include "Project.h"
#include "RecordingInfo.h"
@@ -360,39 +361,28 @@
wxString ConfFileNameAndPath = ConfFilePath + mConfFileName;
// Test for the existence of the Jazz++ configuration file.
- ifstream Is;
- Is.open(ConfFileNameAndPath.c_str());
- if (!Is)
+ if (!::wxFileExists(ConfFileNameAndPath))
{
- // Close and clear the stream.
- Is.close();
- Is.clear();
-
// Return a valid path to the data.
FindAndRegisterConfFilePath(ConfFilePath);
ConfFileNameAndPath = ConfFilePath + mConfFileName;
// Try one more time.
- Is.open(ConfFileNameAndPath.c_str());
- if (!Is)
+ if (!::wxFileExists(ConfFileNameAndPath))
{
- wxMessageBox(
- "Could not find configuration file.",
- "Warning",
- wxOK);
+ ConfFileNameAndPath.clear();
}
- Is.close();
- Is.clear();
}
- cout
- << "JZProject::ReadConfiguration() ConfFileNameAndPath:" << '\n'
- << " \"" << ConfFileNameAndPath << '"'
- << endl;
-
if (!ConfFileNameAndPath.IsEmpty())
{
+ cout
+ << "JZProject::ReadConfiguration() ConfFileNameAndPath:" << '\n'
+ << " \"" << ConfFileNameAndPath << '"'
+ << endl;
+
mpConfig->LoadConfig(ConfFileNameAndPath);
+
DEBUG(
if (BankTable != (tDoubleCommand *) NULL)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-01 21:21:07
|
Revision: 381
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=381&view=rev
Author: pstieber
Date: 2008-04-01 14:21:06 -0700 (Tue, 01 Apr 2008)
Log Message:
-----------
Fixed an fprintf format error.
Modified Paths:
--------------
trunk/jazz/src/AsciiMidiFile.cpp
Modified: trunk/jazz/src/AsciiMidiFile.cpp
===================================================================
--- trunk/jazz/src/AsciiMidiFile.cpp 2008-04-01 04:40:13 UTC (rev 380)
+++ trunk/jazz/src/AsciiMidiFile.cpp 2008-04-01 21:21:06 UTC (rev 381)
@@ -164,7 +164,7 @@
{
tChannelEvent *ce;
- fprintf(mpFd, "%6ld %02x ", pEvent->GetClock(), pEvent->Stat);
+ fprintf(mpFd, "%6d %02x ", pEvent->GetClock(), pEvent->Stat);
if ((ce = pEvent->IsChannelEvent()) != 0)
{
fprintf(mpFd, "%2d ", ce->Channel);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-04-01 04:40:15
|
Revision: 380
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=380&view=rev
Author: pstieber
Date: 2008-03-31 21:40:13 -0700 (Mon, 31 Mar 2008)
Log Message:
-----------
Updated the clock dialog and JZSong::String2Clock.
Modified Paths:
--------------
trunk/jazz/src/ClockDialog.cpp
trunk/jazz/src/ClockDialog.h
trunk/jazz/src/Dialogs.cpp
trunk/jazz/src/Filter.cpp
trunk/jazz/src/Song.cpp
Modified: trunk/jazz/src/ClockDialog.cpp
===================================================================
--- trunk/jazz/src/ClockDialog.cpp 2008-03-31 04:12:45 UTC (rev 379)
+++ trunk/jazz/src/ClockDialog.cpp 2008-04-01 04:40:13 UTC (rev 380)
@@ -29,28 +29,40 @@
#include "DeprecatedWx/proplist.h"
//*****************************************************************************
-// tClockDlg
+// Description:
+// This is the clock dialog class declaration.
//*****************************************************************************
-tClockDlg::tClockDlg(JZSong *s, char *t, long c)
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+JZClockDialog::JZClockDialog(JZSong* pSong, char* pTitle, int Clock)
{
- char buf[500];
- s->Clock2String(c, buf);
- String = copystring(buf);
- Title = t;
- Song = s;
+ char Buffer[500];
+ pSong->Clock2String(Clock, Buffer);
+ mpString = copystring(Buffer);
+ mpTitle = pTitle;
+ mpSong = pSong;
}
-tClockDlg::~tClockDlg()
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+JZClockDialog::~JZClockDialog()
{
- delete String;
+ delete mpString;
}
-wxProperty* tClockDlg::mkProperty()
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+wxProperty* JZClockDialog::mkProperty()
{
- return new wxProperty(Title, wxPropertyValue((char**)&String), "string");
+ return new wxProperty(
+ mpTitle,
+ wxPropertyValue((char**)&mpString),
+ "string");
}
-long tClockDlg::GetClock()
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int JZClockDialog::GetClock()
{
- return Song->String2Clock(String);
+ return mpSong->String2Clock(mpString);
}
Modified: trunk/jazz/src/ClockDialog.h
===================================================================
--- trunk/jazz/src/ClockDialog.h 2008-03-31 04:12:45 UTC (rev 379)
+++ trunk/jazz/src/ClockDialog.h 2008-04-01 04:40:13 UTC (rev 380)
@@ -26,18 +26,29 @@
class JZSong;
class wxProperty;
-class tClockDlg
+//*****************************************************************************
+//*****************************************************************************
+class JZClockDialog
{
- char *String;
- char *Title;
- JZSong *Song;
+ public:
- public:
- tClockDlg(JZSong *s, char *title, long clk);
- ~tClockDlg();
- //wxFormItem *mkFormItem(int w);
+ JZClockDialog(JZSong* pSong, char* pTitle, int Clock);
+
+ ~JZClockDialog();
+
+// wxFormItem *mkFormItem(int w);
+
wxProperty* mkProperty();
- long GetClock();
+
+ int GetClock();
+
+ private:
+
+ char* mpString;
+
+ char* mpTitle;
+
+ JZSong* mpSong;
};
#endif // !defined(JZ_CLOCKDIALOG_H)
Modified: trunk/jazz/src/Dialogs.cpp
===================================================================
--- trunk/jazz/src/Dialogs.cpp 2008-03-31 04:12:45 UTC (rev 379)
+++ trunk/jazz/src/Dialogs.cpp 2008-04-01 04:40:13 UTC (rev 380)
@@ -741,7 +741,7 @@
public:
JZTrack *Track;
- tClockDlg ClockDlg;
+ JZClockDialog ClockDlg;
JZPianoWindow* Win;
JZEvent *Event;
Modified: trunk/jazz/src/Filter.cpp
===================================================================
--- trunk/jazz/src/Filter.cpp 2008-03-31 04:12:45 UTC (rev 379)
+++ trunk/jazz/src/Filter.cpp 2008-04-01 04:40:13 UTC (rev 380)
@@ -113,7 +113,7 @@
class tFilterDlg : public tPropertyListDlg
{
JZFilter *Filter;
- tClockDlg FromClockDlg, ToClockDlg;
+ JZClockDialog FromClockDlg, ToClockDlg;
public:
tFilterDlg(JZFilter *f, JZSong *s, int ShowEventStats);
Modified: trunk/jazz/src/Song.cpp
===================================================================
--- trunk/jazz/src/Song.cpp 2008-03-31 04:12:45 UTC (rev 379)
+++ trunk/jazz/src/Song.cpp 2008-04-01 04:40:13 UTC (rev 380)
@@ -161,19 +161,19 @@
clk % TicksPerCount);
}
-int JZSong::String2Clock(const char *buf)
+int JZSong::String2Clock(const char* buf)
{
- int bar = 1;
- int clk = 0;
- int cnt = 1;
- sscanf(buf, "%d:%d:%d", &bar, &cnt, &clk);
- -- bar;
- -- cnt;
- bar += intro_length; // buf is from user input!
- JZBarInfo b(this);
- b.SetBar(bar);
- int TicksPerCount = b.TicksPerBar / b.CountsPerBar;
- return b.Clock + cnt * TicksPerCount + clk;
+ int Bar = 1;
+ int Clock = 0;
+ int Count = 1;
+ sscanf(buf, "%d:%d:%d", &Bar, &Count, &Clock);
+ --Bar;
+ --Count;
+ Bar += intro_length; // buf is from user input!
+ JZBarInfo BarInfo(this);
+ BarInfo.SetBar(Bar);
+ int TicksPerCount = BarInfo.TicksPerBar / BarInfo.CountsPerBar;
+ return BarInfo.Clock + Count * TicksPerCount + Clock;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-31 04:12:47
|
Revision: 379
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=379&view=rev
Author: pstieber
Date: 2008-03-30 21:12:45 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Moved more data members and code from the track and piano window into
the event window. This allowed the removal of the event frame class
from other code.
Modified Paths:
--------------
trunk/jazz/src/ControlEdit.cpp
trunk/jazz/src/EventWindow.cpp
trunk/jazz/src/EventWindow.h
trunk/jazz/src/MouseAction.cpp
trunk/jazz/src/MouseAction.h
trunk/jazz/src/PianoWindow.cpp
trunk/jazz/src/PianoWindow.h
trunk/jazz/src/Rhythm.cpp
trunk/jazz/src/Rhythm.h
trunk/jazz/src/TrackWindow.cpp
trunk/jazz/src/TrackWindow.h
Modified: trunk/jazz/src/ControlEdit.cpp
===================================================================
--- trunk/jazz/src/ControlEdit.cpp 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/ControlEdit.cpp 2008-03-31 04:12:45 UTC (rev 379)
@@ -240,7 +240,7 @@
void tCtrlEditBase::OnApply()
{
wxBeginBusyCursor();
- mpPianoWindow->mpSong->NewUndoBuffer();
+ mpPianoWindow->GetSong()->NewUndoBuffer();
// delete old events, but skip clock 0 to preserve track defaults:
// (dirty but might work...)
tEventIterator iter(track);
@@ -360,7 +360,7 @@
// av: called by tArrayEdit::OnPaint
void tCtrlEditBase::DrawBars(wxDC* dc)
{
- JZBarInfo BarInfo(mpPianoWindow->mpSong);
+ JZBarInfo BarInfo(mpPianoWindow->GetSong());
BarInfo.SetClock(from_clock);
long gclk,x;
int ii;
@@ -515,7 +515,7 @@
static long from_clk, to_clk;
wxBeginBusyCursor();
- mpPianoWindow->mpSong->NewUndoBuffer();
+ mpPianoWindow->GetSong()->NewUndoBuffer();
tEventIterator iter(track);
@@ -618,7 +618,7 @@
}
wxBeginBusyCursor();
- mpPianoWindow->mpSong->NewUndoBuffer();
+ mpPianoWindow->GetSong()->NewUndoBuffer();
tEventIterator iter(track);
@@ -768,7 +768,7 @@
void tChannelAfterEdit::OnApply()
{
wxBeginBusyCursor();
- mpPianoWindow->mpSong->NewUndoBuffer();
+ mpPianoWindow->GetSong()->NewUndoBuffer();
// delete old events, but skip clock 0 to preserve track defaults:
// (dirty but might work...)
Modified: trunk/jazz/src/EventWindow.cpp
===================================================================
--- trunk/jazz/src/EventWindow.cpp 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/EventWindow.cpp 2008-03-31 04:12:45 UTC (rev 379)
@@ -34,113 +34,247 @@
using namespace std;
-// ************************************************************************
-// tCanvas
-// ************************************************************************
+//*****************************************************************************
+// Description:
+// This is the event window class definition.
+//*****************************************************************************
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+//BEGIN_EVENT_TABLE(JZEventWindow, wxScrolledWindow)
+//END_EVENT_TABLE()
-#define ScLine 50L
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+const int JZEventWindow::mScrollSize = 50;
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+JZEventWindow::JZEventWindow(
+ wxFrame* pParent,
+ JZSong* pSong,
+ const wxPoint& Position,
+ const wxSize& Size)
+ : wxScrolledWindow(
+ pParent,
+ wxID_ANY,
+ Position,
+ Size,
+ wxHSCROLL | wxVSCROLL | wxNO_FULL_REPAINT_ON_RESIZE),
+ mpSnapSel(0),
+ mpFilter(0),
+ mpSong(pSong),
+ mpGreyColor(0),
+ mpGreyBrush(0),
+ mTopInfoHeight(40),
+ mTrackHeight(10),
+ mLittleBit(2)
+{
+ mpSnapSel = new tSnapSelection(this);
-//notice, there is a conflict between this and the subclass event tables that i dont know how to resolv
-BEGIN_EVENT_TABLE(JZEventFrame, wxFrame)
- EVT_SIZE(JZEventFrame::OnSize)
-END_EVENT_TABLE()
+ mpFilter = new JZFilter(mpSong);
+#ifdef __WXMSW__
+ mpGreyColor = new wxColor(192, 192, 192);
+#else
+ mpGreyColor = new wxColor(220, 220, 220);
+#endif
-//tCanvas::tCanvas(JZEventFrame *frame, int x, int y, int w, int h, int style)
-// : wxScrolledWindow(frame, -1, wxPoint(x, y), wxSize(w, h), style)
+ mpGreyBrush = new wxBrush(*mpGreyColor, wxSOLID);
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+JZEventWindow::~JZEventWindow()
+{
+ delete mpSnapSel;
+ delete mpFilter;
+ delete mpGreyColor;
+ delete mpGreyBrush;
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int JZEventWindow::EventsSelected(const wxString& Message) const
+{
+ if (!mpSnapSel->Selected)
+ {
+ wxMessageBox(Message, "Error", wxOK);
+ return 0;
+ }
+ return 1;
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+//void JZEventWindow::SetScrollRanges()
//{
-// EventWin = frame;
+// int Width, Height;
+// GetVirtualEventSize(Width, Height);
+// SetScrollbars(
+// mScrollSize,
+// mScrollSize,
+// Width / mScrollSize,
+// Height / mScrollSize);
+// EnableScrolling(false, false);
//}
-/**
-JAVE seems to want to clip the paint area
-calls the subclass paint routine
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+void JZEventWindow::SetScrollPosition(int x, int y)
+{
+ x /= mScrollSize;
+ y /= mScrollSize;
+ Scroll(x, y);
+}
-onpaint seems never to get called
-*/
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int JZEventWindow::y2yLine(int y, int Up)
+{
+ if (Up)
+ {
+ y += mTrackHeight;
+ }
+ y -= mTopInfoHeight;
+ y -= y % mTrackHeight;
+ y += mTopInfoHeight;
+ return y;
+}
-//void tCanvas::OnDraw(wxDC& dc)
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+void JZEventWindow::LineText(
+ wxDC& Dc,
+ int x,
+ int y,
+ int Width,
+ const char* pString,
+ int Height,
+ bool Down)
+{
+ if (Height <= 0)
+ {
+ Height = mTrackHeight;
+ y = y2yLine(y);
+ }
+ if (Width && Height)
+ {
+ Dc.SetBrush(*mpGreyBrush);
+ Dc.SetPen(*wxGREY_PEN);
+#ifdef __WXMSW__
+ Dc.DrawRectangle(x, y, Width + 1, Height + 1);
+#else
+ Dc.DrawRectangle(x, y, Width, Height);
+#endif
+ x += 1;
+ y += 1;
+ Width -= 2;
+ Height -= 2;
+ if (Down)
+ {
+ Dc.SetPen(*wxBLACK_PEN);
+ Dc.DrawLine(x, y, x + Width, y);
+ Dc.DrawLine(x, y, x, y + Height);
+ Dc.SetPen(*wxWHITE_PEN);
+ Dc.DrawLine(x + Width, y, x + Width, y + Height);
+ Dc.DrawLine(x, y + Height, x + Width, y + Height);
+ }
+ else
+ {
+ Dc.SetPen(*wxWHITE_PEN);
+ Dc.DrawLine(x, y, x + Width, y);
+ Dc.DrawLine(x, y, x, y + Height);
+ Dc.SetPen(*wxBLACK_PEN);
+ Dc.DrawLine(x + Width, y, x + Width, y + Height);
+ Dc.DrawLine(x, y + Height, x + Width, y + Height);
+ }
+ Dc.SetPen(*wxBLACK_PEN);
+ x -= 2;
+ y -= 2;
+ }
+
+ if (pString && strlen(pString) > 0)
+ {
+ wxColor TextBackgroundColor = Dc.GetTextBackground();
+ Dc.SetTextBackground(*mpGreyColor);
+ int TextWidth, TextHeight;
+ Dc.GetTextExtent(pString, &TextWidth, &TextHeight);
+ int Margin = (Width - TextWidth) / 2;
+ if (Margin < mLittleBit)
+ {
+ Margin = mLittleBit;
+ }
+ Dc.DrawText(pString, x + Margin, y + mLittleBit);
+ Dc.SetTextBackground(TextBackgroundColor);
+ }
+}
+
+//-----------------------------------------------------------------------------
+// JAVE seems to want to clip the paint area
+// calls the subclass paint routine
+//
+// OnPaint seems never to get called
+//-----------------------------------------------------------------------------
+//void JZEventWindow::OnDraw(wxDC& Dc)
//{
// //onpaint never seems to get called, but ondraw does get called
// int x = 0, y = 0;
// GetViewStart(&x, &y);
-// EventWin->OnPaintSub(&dc, x * ScLine, y * ScLine);
-// cout << "tCanvas::OnDraw\n";
+// EventWin->OnPaintSub(Dc, x * mScrollSize, y * mScrollSize);
+// cout << "JZEventWindow::OnDraw << endl;
//}
-//the canvas sends events to the subclassed window, i (might)filter the events a bit so as not get all mouse move events
-//BEGIN_EVENT_TABLE(tCanvas, wxScrolledWindow)
-// EVT_MOUSE_EVENTS(tCanvas::OnMouseEvent)
-//// EVT_LEFT_DOWN(tCanvas::OnMouseEvent)
-//// EVT_LEFT_UP(tCanvas::OnMouseEvent)
-//// EVT_RIGHT_DOWN(tCanvas::OnMouseEvent)
-//// EVT_RIGHT_UP(tCanvas::OnMouseEvent)
-//END_EVENT_TABLE()
-
- /**
- this mouse handler delegates to the subclased eventwin
- */
-//void tCanvas::OnMouseEvent(wxMouseEvent &e)
+//-----------------------------------------------------------------------------
+// This mouse handler delegates to the subclased event window.
+//-----------------------------------------------------------------------------
+//void JZEventWindow::OnMouseEvent(wxMouseEvent& MouseEvent)
//{
-// EventWin->OnMouseEvent(e);
+// EventWin->OnMouseEvent(MouseEvent);
//}
-/**
-probably never called in wx2
-*/
-// void tCanvas::OnEvent(wxMouseEvent &e)
-// {
-// EventWin->OnMouseEvent(e);
-// }
+// JAVE the OnChar method seems to be gone in wxwin232, but its documented, so
+// I don't know what happened. The OnCharHook should do the same thing
+// basically. It was there from the start. OnChar seemd redundant.
-//JAVE the OnChar method seems to be gone in wxwin232, but its documented, so i dont know whats happened
-//the OnCharHook should do the same thing basically(it was there from the start. OnChar seemd redundant)
-
-// void tCanvas::OnChar(wxKeyEvent &e)
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+// void JZEventWindow::OnChar(wxKeyEvent& KeyEvent)
// {
-// if (!EventWin->OnKeyEvent(e))
-// wxWindow::OnChar(e);
+// if (!EventWin->OnKeyEvent(KeyEvent))
+// {
+// wxWindow::OnChar(KeyEvent);
+// }
// }
-// void JZEventFrame::OnChar(wxKeyEvent& e)
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+// void JZEventFrame::OnChar(wxKeyEvent& KeyEvent)
// {
-// if (!OnKeyEvent(e))
-// wxFrame::OnChar(e);
+// if (!OnKeyEvent(KeyEvent))
+// {
+// wxFrame::OnChar(KeyEvent);
+// }
// }
-//bool tCanvas::OnCharHook(wxKeyEvent& e)
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+//bool JZEventWindow::OnCharHook(wxKeyEvent& KeyEvent)
//{
-// return EventWin->OnKeyEvent(e);
+// return EventWin->OnKeyEvent(KeyEvent);
//}
-bool JZEventFrame::OnCharHook(wxKeyEvent& e)
-{
- return OnKeyEvent(e);
-}
+//*****************************************************************************
+// Description:
+// This is the event frame class definition.
+//*****************************************************************************
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+BEGIN_EVENT_TABLE(JZEventFrame, wxFrame)
+ EVT_SIZE(JZEventFrame::OnSize)
+END_EVENT_TABLE()
-
-//void tCanvas::SetScrollRanges()
-//{
-// int Width, Height;
-// EventWin->GetVirtualEventSize(Width, Height);
-// SetScrollbars(ScLine, ScLine, Width / ScLine, Height / ScLine);
-// EnableScrolling(false, false);
-//}
-
-//void tCanvas::SetScrollPosition(int x, int y)
-//{
-// x /= ScLine;
-// y /= ScLine;
-// Scroll(x, y);
-//}
-
-
-// ************************************************************************
-// JZEventFrame
-// ************************************************************************
-
-// default is 640x442
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
JZEventFrame::JZEventFrame(
wxWindow* pParent,
const wxString& Title,
@@ -151,7 +285,7 @@
Song(pSong),
mpFilter(0),
NextWin(0),
-// Canvas(0),
+// mpEventWindow(0),
mpFont(0),
mpFixedFont(0),
hFixedFont(0),
@@ -196,7 +330,6 @@
JZEventFrame::~JZEventFrame()
{
-// delete Canvas;
delete SnapSel;
delete mpGreyColor;
@@ -219,13 +352,6 @@
void JZEventFrame::CreateMenu()
{
-#if 0
- wxMenu *menu = new wxMenu;
- menu->Append(999, "&MenuItem");
- wxMenuBar *menu_bar = new wxMenuBar;
- menu_bar->Append(menu, "&Debug");
- SetMenuBar(menu_bar);
-#endif
}
@@ -236,10 +362,10 @@
*/
//void JZEventFrame::CreateCanvas()
//{
-// cout << "createcanvas\n";
-// int w, h;
-// GetClientSize(&w, &h);
-// Canvas = new tCanvas(this, 0, 0, w, h);
+// cout << "CreateCanvas" << endl;
+// int Width, Height;
+// GetClientSize(&Width, &Height);
+// mpEventWindow = new JZEventWindow(this, 0, 0, Width, Height);
//}
/**
@@ -251,40 +377,38 @@
CreateMenu();
// CreateCanvas();
-// SnapSel = new tSnapSelection(Canvas);
+// SnapSel = new tSnapSelection(mpEventWindow);
Setup();
-// Canvas->SetScrollRanges();
-// Canvas->SetScrollPosition(0,0);//this wasnt here before wx2, why?
+// mpEventWindow->SetScrollRanges();
+// mpEventWindow->SetScrollPosition(0, 0); //this wasnt here before wx2, why?
}
-/**initialize the constants used in drawing*/
+// Initialize the constants used in drawing.
void JZEventFrame::Setup()
{
/*
int x, y;
- wxDC* dc = new wxClientDC(Canvas);
- //dc is from Canvas
- dc->SetFont(wxNullFont);
+ wxClientDC Dc(mpEventWindow);
+ Dc.SetFont(wxNullFont);
delete mpFixedFont;
mpFixedFont = new wxFont(12, wxSWISS, wxNORMAL, wxNORMAL);
- dc->SetFont(*mpFixedFont);
- dc->GetTextExtent("M", &x, &y);
+ Dc.SetFont(*mpFixedFont);
+ Dc.GetTextExtent("M", &x, &y);
hFixedFont = (int)y;
delete mpFont;
mpFont = new wxFont(FontSize, wxSWISS, wxNORMAL, wxNORMAL);
- dc->SetFont(*mpFont);
+ Dc.SetFont(*mpFont);
- dc->GetTextExtent("M", &x, &y);
+ Dc.GetTextExtent("M", &x, &y);
LittleBit = (int)(x/2);
- dc->GetTextExtent("HXWjgi", &x, &y);
+ Dc.GetTextExtent("HXWjgi", &x, &y);
mTrackHeight = (int)y + LittleBit;
- delete dc;
*/
}
@@ -295,50 +419,56 @@
*/
void JZEventFrame::OnSize(wxSizeEvent& Event)
{
- // wxFrame::OnSize(Event);
+// wxFrame::OnSize(Event);
- //the below code is from the toolbar sample, the layoutchidlren function
- wxSize size = GetClientSize();
+ // The code below is from the toolbar sample, the layoutchidlren function
+ wxSize size = GetClientSize();
- int offset;
-// if ( mpToolBar )
-// {
-// mpToolBar->SetSize(-1, size.y);
-// mpToolBar->Move(0, 0);
+ int offset;
+// if (mpToolBar)
+// {
+// mpToolBar->SetSize(-1, size.y);
+// mpToolBar->Move(0, 0);
+//
+// offset = mpToolBar->GetSize().x;
+// }
+// else
+// {
+// offset = 0;
+// }
-// offset = mpToolBar->GetSize().x;
-// }
-// else
-// {
-// offset = 0;
-// }
+ // The step below should set the offset of the mpEventWindow
+ // m_textWindow->SetSize(offset, 0, size.x - offset, size.y);
- //the step below should set the offset of the Canvas
- //m_textWindow->SetSize(offset, 0, size.x - offset, size.y);
+// float maxToolBarWidth = 0.0;
+// float maxToolBarHeight = 0.0;
+// if (mpToolBar)
+// {
+// mpToolBar->GetMaxSize(&maxToolBarWidth, &maxToolBarHeight);
+// }
-
+ offset = mpToolBar->GetSize().y; //get the height of the toolbar
-// float maxToolBarWidth = 0.0;
-// float maxToolBarHeight = 0.0;
-// if (mpToolBar)
-// mpToolBar->GetMaxSize(&maxToolBarWidth, &maxToolBarHeight);
-
- offset = mpToolBar->GetSize().y; //get the height of the toolbar
-
- int frameWidth, frameHeight;
- GetClientSize(&frameWidth, &frameHeight);
+ int frameWidth, frameHeight;
+ GetClientSize(&frameWidth, &frameHeight);
-// if (Canvas)
-// // Canvas->SetSize(0, (int)offset, (int)frameWidth, (int)(frameHeight - offset));
-// Canvas->SetSize(0, (int)0, (int)frameWidth, (int)(frameHeight));
+// if (mpEventWindow)
+// // mpEventWindow->SetSize(0, (int)offset, (int)frameWidth, (int)(frameHeight - offset));
+// mpEventWindow->SetSize(0, (int)0, (int)frameWidth, (int)(frameHeight));
// // if (mpToolBar)
// // mpToolBar->SetSize(0, 0, (int)frameWidth, (int)maxToolBarHeight);
- cout<<"JZEventFrame::OnSize "<<frameWidth<<" "<<frameHeight<<"\n";
+ cout
+ << "JZEventFrame::OnSize " << frameWidth<< 'x' << frameHeight << endl;
+}
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+bool JZEventFrame::OnCharHook(wxKeyEvent& e)
+{
+ return OnKeyEvent(e);
+}
- }
-
// *******************************************************************
// Coord-Functions
// *******************************************************************
@@ -396,6 +526,7 @@
return Line * mTrackHeight + mTopInfoHeight;
}
+/*
void JZEventFrame::LineText(wxDC *dc, int x, int y, int w, const char *str, int h, bool down)
{
if (h <= 0)
@@ -417,7 +548,8 @@
y += 1;
w -= 2;
h -= 2;
- if (down) {
+ if (down)
+ {
dc->SetPen(*wxBLACK_PEN);
dc->DrawLine(x, y, x+w, y);
dc->DrawLine(x, y, x, y+h);
@@ -425,7 +557,8 @@
dc->DrawLine(x+w, y, x+w, y+h);
dc->DrawLine(x, y+h, x+w, y+h);
}
- else {
+ else
+ {
dc->SetPen(*wxWHITE_PEN);
dc->DrawLine(x, y, x+w, y);
dc->DrawLine(x, y, x, y+h);
@@ -441,8 +574,8 @@
dc->DrawText((char *)str, x + LittleBit, y + LittleBit);
dc->SetTextBackground(*wxWHITE);
}
+*/
-
// *******************************************************************
// Painting behavior
// *******************************************************************
@@ -452,13 +585,13 @@
// wxDC* dc=new wxClientDC(this);
// wxPaintEvent e;
// cout<<"FIXME JZEventFrame::Redraw"<<endl;
-// Canvas->OnDraw(*dc); //this will in turn call the eventwin onpaintsub
+// mpEventWindow->OnDraw(*dc); //this will in turn call the eventwin onpaintsub
// //the problem is that onpaint no longer tkes no argument, and is supposed to be called from the framework only, so it should be split
// delete dc;
-// Canvas->Refresh();
+// mpEventWindow->Refresh();
}
@@ -468,7 +601,7 @@
it doesnt do any real drawing, instead it sets up some member vars, to be used by other parts of the class
- it is now normally called from OnDraw in the Canvas class,and also overridden in the subclass.
+ it is now normally called from OnDraw in the mpEventWindow class,and also overridden in the subclass.
so this one here just sets up constants
@@ -603,7 +736,7 @@
if (Clock > FromClock && ToClock >= Song->MaxQuarters * Song->TicksPerQuarter)
return;
// int x = Clock2x(Clock);
-// Canvas->SetScrollPosition(x - mLeftInfoWidth, CanvasY);
+// mpEventWindow->SetScrollPosition(x - mLeftInfoWidth, CanvasY);
}
if (!SnapSel->Active) // sets clipping
@@ -618,13 +751,13 @@
// invalidateRect.width=3;
// invalidateRect.height= 100000000;
// //DrawPlayPosition();
-// Canvas->Refresh(TRUE,&invalidateRect);
+// mpEventWindow->Refresh(TRUE,&invalidateRect);
// invalidateRect.x=Clock2x(PlayClock)-1;
-// Canvas->Refresh(TRUE,&invalidateRect);
+// mpEventWindow->Refresh(TRUE,&invalidateRect);
//DrawPlayPosition();
-// Canvas->Refresh();
+// mpEventWindow->Refresh();
}
}
if (NextWin)
@@ -945,10 +1078,10 @@
// int x = CanvasX * 2;
// int y = CanvasY;
-// wxDC* dc=new wxClientDC(Canvas);
+// wxDC* dc=new wxClientDC(mpEventWindow);
// JZEventFrame::OnPaintSub(dc, x, y);
-// Canvas->SetScrollRanges();
-// Canvas->SetScrollPosition(x, y);
+// mpEventWindow->SetScrollRanges();
+// mpEventWindow->SetScrollPosition(x, y);
// if (x == 0)
// Redraw();
@@ -965,10 +1098,10 @@
// int x = CanvasX / 2;
// int y = CanvasY;
- //wxDC* dc=new wxClientDC(Canvas);
- //JZEventFrame::OnPaintSub(dc, x, y);
-// Canvas->SetScrollRanges();
-// Canvas->SetScrollPosition(x, y);
+ //wxClientDC Dc(mpEventWindow);
+ //JZEventFrame::OnPaintSub(Dc, x, y);
+// mpEventWindow->SetScrollRanges();
+// mpEventWindow->SetScrollPosition(x, y);
//if (x == 0)
// Redraw();
// }
Modified: trunk/jazz/src/EventWindow.h
===================================================================
--- trunk/jazz/src/EventWindow.h 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/EventWindow.h 2008-03-31 04:12:45 UTC (rev 379)
@@ -31,45 +31,99 @@
class JZToolBar;
class JZPianoFrame;
-/**
-JAVE i dont get the meaning of this class
-it seems to just fork out the method calls to its delegate, EventWin
-*/
-/*
-class tCanvas: public wxScrolledWindow
+//*****************************************************************************
+// Description:
+// This class is derived from a wxWidgets scrolled window, and acts as the
+// common base class for JZTrackWindow and JSPianoWindow.
+//*****************************************************************************
+class JZEventWindow : public wxScrolledWindow
{
public:
- JZEventFrame *EventWin;
- tCanvas(JZEventFrame *frame, int x, int y, int w, int h, int style = 0);
- void OnPaint(wxPaintEvent& event);
- // void OnEvent(wxMouseEvent& event);
- void OnMouseEvent(wxMouseEvent& event);
- void OnChar(wxKeyEvent& event);
- bool OnCharHook(wxKeyEvent& event);
- void SetScrollRanges();
+
+ tSnapSelection* mpSnapSel;
+
+ JZFilter* mpFilter;
+
+ JZEventWindow(
+ wxFrame* pParent,
+ JZSong* pSong,
+ const wxPoint& Position = wxDefaultPosition,
+ const wxSize& Size = wxDefaultSize);
+
+ virtual ~JZEventWindow();
+
+ // WARNING: non-constant access.
+ JZSong* GetSong() const;
+
+ int EventsSelected(const wxString& Message) const;
+
+ void LineText(
+ wxDC& Dc,
+ int x,
+ int y,
+ int Width,
+ const char* pString,
+ int Height = -1,
+ bool Down = false);
+
+// void SetScrollRanges();
+
void SetScrollPosition(int x, int y);
- void OnDraw(wxDC& dc);
- DECLARE_EVENT_TABLE()
-};
-*/
+ protected:
-/**
- * JZEventFrame
- *
- * A window with Panel, Canvas, Scrollbars, Menus,
- * common baseclass for TrackWin and PianoWin.
- *
- *Panel, menu is administered by derived class
- * Funktionen
- * - Settings dialog
- * - Selection via Snapsel
- */
+// void OnPaint(wxPaintEvent& Event);
+// void OnMouseEvent(wxMouseEvent& Event);
+// void OnChar(wxKeyEvent& Event);
+// bool OnCharHook(wxKeyEvent& Event);
+// void OnDraw(wxDC& Dc);
+ int y2yLine(int y, int Up = 0);
+ protected:
+
+ static const int mScrollSize;
+
+ JZSong* mpSong;
+
+// JZEventFrame* mpEventFrame;
+
+ wxColor* mpGreyColor;
+ wxBrush* mpGreyBrush;
+
+ int mTopInfoHeight;
+ int mTrackHeight;
+ int mLittleBit;
+
+
+// DECLARE_EVENT_TABLE()
+};
+
+//*****************************************************************************
+// Description:
+// These are the event window inline member functions.
+//*****************************************************************************
+//-----------------------------------------------------------------------------
+// WARNING: non-constant access.
+//-----------------------------------------------------------------------------
+inline
+JZSong* JZEventWindow::GetSong() const
+{
+ return mpSong;
+}
+
+//*****************************************************************************
+// Description:
+// A frame window that containes a scrolled event window. Acts as the
+// common base class for JZTrackFrame and JSPianoFrame.
+//
+// The panel and menu are administered by derived classes.
+// Functionality:
+// - Settings dialog
+// - Selection via Snapsel
+//*****************************************************************************
class JZEventFrame : public wxFrame
{
-
public:
bool OnCharHook(wxKeyEvent& event);
@@ -96,7 +150,7 @@
virtual void Create();
virtual void CreateMenu();
void CreateCanvas();
-// tCanvas* Canvas;
+// JZEventWindow* mpEventWindow;
// Setup()
wxFont* mpFont;
@@ -132,7 +186,7 @@
int y2Line(int y, int up = 0);
int y2yLine(int y, int up = 0);
int Line2y(int line);
- void LineText(wxDC *dc, int x, int y, int w, const char *str, int h = -1, bool down = FALSE);
+// void LineText(wxDC *dc, int x, int y, int w, const char *str, int h = -1, bool down = false);
int x2Clock(int x);
int Clock2x(int clk);
int x2BarClock(int x, int Next = 0);
Modified: trunk/jazz/src/MouseAction.cpp
===================================================================
--- trunk/jazz/src/MouseAction.cpp 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/MouseAction.cpp 2008-03-31 04:12:45 UTC (rev 379)
@@ -22,10 +22,8 @@
#include "WxWidgets.h"
-//#include "config.h"
#include "MouseAction.h"
#include "EventWindow.h"
-#include "DeprecatedStringUtils.h"
using namespace std;
@@ -520,42 +518,75 @@
return 1;
}
-// -------------------------------------------------------------------------
+//*****************************************************************************
// tMouseButton - simulate a 3D button
-// -------------------------------------------------------------------------
-
+//*****************************************************************************
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
tMouseButton::tMouseButton(
- JZEventFrame *win,
- JZRectangle* r,
- const char *down,
- const char *up)
+ JZEventWindow* pEventWindow,
+ JZRectangle* pRectangle,
+ const char* pDownString,
+ const char* pUpString)
+ : mpEventWindow(pEventWindow),
+ mRectangle(*pRectangle),
+ mDownString(),
+ mUpString()
{
- this->win = win;
- this->r = *r;
- if (up == 0)
- up = down;
- this->down = copystring(down);
- this->up = copystring(up);
- wxDC* dc=new wxClientDC(win);
- win->LineText(dc, r->x, r->y, r->width, (char *)down, r->height, TRUE);
+ if (pDownString)
+ {
+ mDownString = pDownString;
+ }
+
+ if (pUpString)
+ {
+ mUpString = pUpString;
+ }
+ else
+ {
+ mUpString = mDownString;
+ }
+
+ wxClientDC Dc(mpEventWindow);
+
+ mpEventWindow->LineText(
+ Dc,
+ mRectangle.x,
+ mRectangle.y,
+ mRectangle.GetWidth(),
+ mDownString.c_str(),
+ mRectangle.GetHeight(),
+ true);
}
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
tMouseButton::~tMouseButton()
{
- delete [] (char *)up; // msvc is buggy!
- delete [] (char *)down;
}
-int tMouseButton::Event(wxMouseEvent &e)
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int tMouseButton::Event(wxMouseEvent& MouseEvent)
{
- if (e.ButtonUp())
+ if (MouseEvent.ButtonUp())
{
Action();
- wxDC* dc=new wxClientDC(win);
- win->LineText(dc, r.x, r.y, r.width, (char *)up, r.height, false);
+
+ wxClientDC Dc(mpEventWindow);
+
+ mpEventWindow->LineText(
+ Dc,
+ mRectangle.x,
+ mRectangle.y,
+ mRectangle.GetWidth(),
+ mUpString.c_str(),
+ mRectangle.GetHeight(),
+ false);
+
delete this;
+
return 1;
}
return 0;
}
-
Modified: trunk/jazz/src/MouseAction.h
===================================================================
--- trunk/jazz/src/MouseAction.h 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/MouseAction.h 2008-03-31 04:12:45 UTC (rev 379)
@@ -29,6 +29,8 @@
#include "Rectangle.h"
+class JZEventWindow;
+
enum TEMousePlayMode
{
eMouse,
@@ -38,9 +40,12 @@
eRecordButton
};
+//*****************************************************************************
+//*****************************************************************************
class tMouseMapper
{
public:
+
// actions
// 0..2 = left/middle/right down
// 3..5 = left/middle/right down + shift
@@ -50,57 +55,96 @@
tMouseMapper(const int actions[12]);
tMouseMapper();
- enum Button { Left, Middle, Right };
- void SetAction(int code, Button but = Left, bool shift = FALSE, bool ctrl = FALSE);
- int Action(wxMouseEvent &);
- void SetLeftAction(int id = 0) { left_action = id; }
+ enum Button
+ {
+ Left,
+ Middle,
+ Right
+ };
+ void SetAction(
+ int code,
+ Button but = Left,
+ bool shift = false,
+ bool ctrl = false);
+
+ int Action(wxMouseEvent&);
+
+ void SetLeftAction(int id = 0)
+ {
+ left_action = id;
+ }
+
private:
+
int actions[12];
+
int left_action;
};
-/**
-base class for mouse actions. the classes are instantiated in the mousehandler of eventwin, for example, to keep state during mouse operations, like drag and drop and so on.
-
-the event() finction is used to determine what to do with an incoming event(normally, if the event is a drag event call the drag function of the class, and so on)
-*/
+//*****************************************************************************
+// Description:
+// This is a base class for mouse actions. The classes are instantiated in
+// the mouse handler of the event window, for example, to keep state during
+// mouse operations, like drag and drop and so on.
+// The Event() function is used to determine what to do with an incoming
+// event. Normally, if the event is a drag event, call the drag function of
+// the class, and so on.
+//*****************************************************************************
class tMouseAction
{
public:
+
virtual ~tMouseAction() {}
- virtual int Dragging(wxMouseEvent &) { return 0; };
- virtual int LeftDown(wxMouseEvent &) { return 0; };
- virtual int LeftUp(wxMouseEvent &) { return 0; };
- virtual int RightDown(wxMouseEvent &) { return 0; };
- virtual int RightUp(wxMouseEvent &) { return 0; };
- virtual int MiddleDown(wxMouseEvent &) { return 0; };
- virtual int MiddleUp(wxMouseEvent &) { return 0; };
- virtual int Event(wxMouseEvent &e)
+ virtual int Dragging(wxMouseEvent &) { return 0; }
+ virtual int LeftDown(wxMouseEvent &) { return 0; }
+ virtual int LeftUp(wxMouseEvent &) { return 0; }
+ virtual int RightDown(wxMouseEvent &) { return 0; }
+ virtual int RightUp(wxMouseEvent &) { return 0; }
+ virtual int MiddleDown(wxMouseEvent &) { return 0; }
+ virtual int MiddleUp(wxMouseEvent &) { return 0; }
+ virtual int Event(wxMouseEvent& MouseEvent)
{
- if (e.Dragging()) return Dragging(e);
- else if (e.LeftDown()) return LeftDown(e);
- else if (e.LeftUp()) return LeftUp(e);
- else if (e.MiddleDown()) return MiddleDown(e);
- else if (e.MiddleUp()) return MiddleUp(e);
- else if (e.RightDown()) return RightDown(e);
- else if (e.RightUp()) return RightUp(e);
+ if (MouseEvent.Dragging())
+ {
+ return Dragging(MouseEvent);
+ }
+ else if (MouseEvent.LeftDown())
+ {
+ return LeftDown(MouseEvent);
+ }
+ else if (MouseEvent.LeftUp())
+ {
+ return LeftUp(MouseEvent);
+ }
+ else if (MouseEvent.MiddleDown())
+ {
+ return MiddleDown(MouseEvent);
+ }
+ else if (MouseEvent.MiddleUp())
+ {
+ return MiddleUp(MouseEvent);
+ }
+ else if (MouseEvent.RightDown())
+ {
+ return RightDown(MouseEvent);
+ }
+ else if (MouseEvent.RightUp())
+ {
+ return RightUp(MouseEvent);
+ }
return 0;
}
};
-/**
- Selection - draw a rectangle with the mouse, selecting events
-
- this class needs to draw in the window, thus it needs acess to the device context of the
-window. This was by storing a wxCanvas pointer in wxwin168, but wxCanvas is gone in wxwin2.
-on the other hand we can now draw in all windows.
-
-
-*/
-
-
+//*****************************************************************************
+// Description:
+// Selection - draw a rectangle with the mouse, selecting events
+// This class needs to draw in the window, thus it needs access to the
+// device context of the window. This was by storing a wxCanvas pointer
+// in wxwin168, but wxCanvas is gone in wxwin2.
+//*****************************************************************************
class tSelection : public tMouseAction
{
public:
@@ -125,30 +169,31 @@
private:
wxScrolledWindow* win;
+
// wxCanvas *Canvas;
wxBrush* mpBackgroundBrush;
};
+//*****************************************************************************
+//*****************************************************************************
class tSnapSelection : public tSelection
{
-protected:
- int *xCoords, nxCoords;
- int *yCoords, nyCoords;
- int xMin, xMax, xStep, yMin, yMax, yStep;
+ public:
+ tSnapSelection(wxScrolledWindow *c);
+ virtual void Snap(float &x, float &y, int up);
+ void SetXSnap(int ny, int *cx);
+ void SetYSnap(int ny, int *cy);
+ void SetXSnap(int xMin, int xMax, int xStep);
+ void SetYSnap(int yMin, int yMax, int yStep);
-public:
- tSnapSelection(wxScrolledWindow *c);
- virtual void Snap(float &x, float &y, int up);
- void SetXSnap(int ny, int *cx);
- void SetYSnap(int ny, int *cy);
- void SetXSnap(int xMin, int xMax, int xStep);
- void SetYSnap(int yMin, int yMax, int yStep);
+ protected:
+ int *xCoords, nxCoords;
+ int *yCoords, nyCoords;
+ int xMin, xMax, xStep, yMin, yMax, yStep;
};
-class JZEventFrame;
-
-
+//*****************************************************************************
/**
tButtonLabelInterface
@@ -158,6 +203,7 @@
indicates if the text should be displayed in a depressed button or a normal
button.
*/
+//*****************************************************************************
class tButtonLabelInterface
{
public:
@@ -172,10 +218,12 @@
};
+//*****************************************************************************
/**
MouseCounter - let you enter numbers with left/right mouse button
*/
+//*****************************************************************************
class tMouseCounter : public wxTimer, public tMouseAction
{
int Min, Max, Delta;
@@ -196,10 +244,9 @@
};
-// -------------------------------------------------------------------------
+//*****************************************************************************
// tMarkDestin - mark destination of some operation
-// -------------------------------------------------------------------------
-
+//*****************************************************************************
class tMarkDestin : public tMouseAction
{
wxScrolledWindow *Canvas;
@@ -215,23 +262,38 @@
tMarkDestin(wxScrolledWindow *canvas, wxFrame *frame, int left);
};
-// -------------------------------------------------------------------------
+//*****************************************************************************
// tMouseButton - simulate a 3D button
-// -------------------------------------------------------------------------
-
+//*****************************************************************************
class tMouseButton : public tMouseAction
{
public:
- tMouseButton(JZEventFrame *win, JZRectangle *r, const char *down, const char *up = 0);
+
+ tMouseButton(
+ JZEventWindow* pEventWindow,
+ JZRectangle* pRectangle,
+ const char* pDownString,
+ const char* upUpString = 0);
+
virtual ~tMouseButton();
- virtual int Event(wxMouseEvent &e);
+
+ virtual int Event(wxMouseEvent& MouseEvent);
+
protected:
- virtual void Action() {}
+
+ virtual void Action()
+ {
+ }
+
private:
- JZEventFrame *win;
- JZRectangle r;
- const char *down;
- const char *up;
+
+ JZEventWindow* mpEventWindow;
+
+ JZRectangle mRectangle;
+
+ wxString mDownString;
+
+ wxString mUpString;
};
#endif // !defined(JZ_MOUSEACTION_H)
Modified: trunk/jazz/src/PianoWindow.cpp
===================================================================
--- trunk/jazz/src/PianoWindow.cpp 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/PianoWindow.cpp 2008-03-31 04:12:45 UTC (rev 379)
@@ -223,7 +223,7 @@
Win = w;
// SN++ BUG FIX: undo/redo
- Win->mpSong->NewUndoBuffer();
+ Win->GetSong()->NewUndoBuffer();
wxClientDC Dc(Win);
@@ -336,7 +336,7 @@
Win = w;
// SN++ BUG FIX: undo/redo
- Win->mpSong->NewUndoBuffer();
+ Win->GetSong()->NewUndoBuffer();
//
wxClientDC Dc(Win);
Win->PrepareDC(Dc);
@@ -412,7 +412,7 @@
mpKeyOn = pEvent;
// SN++ BUG FIX: undo/redo
- Win->mpSong->NewUndoBuffer();
+ Win->GetSong()->NewUndoBuffer();
//
wxClientDC Dc(Win);
Dc.SetFont(*(Win->GetFixedFont()));
@@ -528,7 +528,7 @@
//*****************************************************************************
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(JZPianoWindow, wxScrolledWindow)
+BEGIN_EVENT_TABLE(JZPianoWindow, JZEventWindow)
EVT_SIZE(JZPianoWindow::OnSize)
@@ -538,10 +538,6 @@
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-const int JZPianoWindow::mScrollSize = 50;
-
-//-----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
JZListen JZPianoWindow::mListen;
//-----------------------------------------------------------------------------
@@ -550,18 +546,14 @@
JZPianoFrame* pPianoFrame,
JZSong* pSong,
const wxPoint& Position,
- const wxSize& Size,
- long WindowStyle)
- : wxScrolledWindow(pPianoFrame, wxID_ANY, Position, Size, WindowStyle),
+ const wxSize& Size)
+ : JZEventWindow(pPianoFrame, pSong, Position, Size),
mpPianoFrame(pPianoFrame),
- mpSong(pSong),
mPlayClock(-1),
mSnapCount(0),
mpMouseAction(0),
- mpSnapSel(0),
mpTrack(0),
mTrackIndex(0),
- mpFilter(0),
mpCtrlEdit(0),
mMousePlay(play_actions),
mMouseEvent(evnt_actions),
@@ -601,14 +593,10 @@
{
InitColors();
- mpFilter = new JZFilter(mpSong);
-
mpTrack = mpSong->GetTrack(mTrackIndex);
mFontSize = mPianoFontSizes[1]; // Must be an entry in the array.
- mpSnapSel = new tSnapSelection(this);
-
for (int i = 0; i < eMaxTrackCount; i++)
{
mFromLines[i] = 64;
@@ -627,7 +615,6 @@
delete mpFont;
delete mpFixedFont;
delete mpDrumFont;
- delete mpSnapSel;
delete mpGuitarFrame;
}
@@ -651,22 +638,17 @@
//-----------------------------------------------------------------------------
void JZPianoWindow::Setup()
{
- // This section is from JZEventFrame::Setup()
-
- int Width, Height;
-
wxClientDC Dc(this);
Dc.SetFont(wxNullFont);
delete mpFixedFont;
mpFixedFont = new wxFont(12, wxSWISS, wxNORMAL, wxNORMAL);
-
Dc.SetFont(*mpFixedFont);
- Dc.GetTextExtent("M", &Width, &Height);
- mFixedFontHeight = Height;
- mTopInfoHeight = mFixedFontHeight + 2 * mLittleBit;
+ int Width, Height;
+ Dc.GetTextExtent("M", &Width, &mFixedFontHeight);
+
delete mpFont;
mpFont = new wxFont(mFontSize, wxSWISS, wxNORMAL, wxNORMAL);
Dc.SetFont(*mpFont);
@@ -674,8 +656,10 @@
Dc.GetTextExtent("M", &Width, &Height);
mLittleBit = Width / 2;
+ mTopInfoHeight = mFixedFontHeight + 2 * mLittleBit;
+
Dc.GetTextExtent("HXWjgi", &Width, &Height);
- mTrackHeight = Height + mLittleBit;
+ mTrackHeight = Height + 2 * mLittleBit;
delete mpDrumFont;
mpDrumFont = new wxFont(mFontSize + 3, wxSWISS, wxNORMAL, wxNORMAL);
@@ -1118,15 +1102,6 @@
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-void JZPianoWindow::SetScrollPosition(int x, int y)
-{
- x /= mScrollSize;
- y /= mScrollSize;
- Scroll(x, y);
-}
-
-//-----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
int JZPianoWindow::Line2y(int Line)
{
return Line * mTrackHeight + mTopInfoHeight;
@@ -1587,7 +1562,6 @@
// ------------------------------------------------------------------------
// Snapper
// ------------------------------------------------------------------------
-
void JZPianoWindow::SnapSelStop(wxMouseEvent& Event)
{
if (mpSnapSel->Selected)
Modified: trunk/jazz/src/PianoWindow.h
===================================================================
--- trunk/jazz/src/PianoWindow.h 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/PianoWindow.h 2008-03-31 04:12:45 UTC (rev 379)
@@ -23,6 +23,7 @@
#ifndef JZ_PIANOWINDOW_H
#define JZ_PIANOWINDOW_H
+#include "EventWindow.h"
#include "MouseAction.h"
#include "Track.h"
#include "Globals.h"
@@ -36,10 +37,8 @@
class tSnapSelection;
class JZGuitarFrame;
-// -------------------------------------------------------------------------
-// MousePiano
-// -------------------------------------------------------------------------
-
+//*****************************************************************************
+//*****************************************************************************
class JZListen : public wxTimer
{
public:
@@ -63,7 +62,9 @@
JZTrack* mpTrack;
};
-class JZPianoWindow : public wxScrolledWindow, public tButtonLabelInterface
+//*****************************************************************************
+//*****************************************************************************
+class JZPianoWindow : public JZEventWindow, public tButtonLabelInterface
{
public:
@@ -71,8 +72,7 @@
JZPianoFrame* pFrame,
JZSong* pSong,
const wxPoint& Position = wxDefaultPosition,
- const wxSize& Size = wxDefaultSize,
- long WindowStyle = 0);
+ const wxSize& Size = wxDefaultSize);
virtual ~JZPianoWindow();
@@ -201,8 +201,6 @@
public:
- JZSong* mpSong;
-
int mFromLines[eMaxTrackCount];
int mPlayClock;
@@ -220,12 +218,8 @@
tEventArray mPasteBuffer;
- tSnapSelection* mpSnapSel;
-
public:
- void SetScrollPosition(int x, int y);
-
void SetScrollRanges(const int& x, const int& y);
void DrawEvent(
@@ -313,16 +307,12 @@
private:
- static const int mScrollSize;
-
static JZListen mListen;
JZTrack* mpTrack;
int mTrackIndex;
- JZFilter* mpFilter;
-
tCtrlEditBase* mpCtrlEdit;
tMouseMapper mMousePlay;
Modified: trunk/jazz/src/Rhythm.cpp
===================================================================
--- trunk/jazz/src/Rhythm.cpp 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/Rhythm.cpp 2008-03-31 04:12:45 UTC (rev 379)
@@ -492,7 +492,7 @@
//#include "Bitmaps/rrggen.xpm"
//#include "Bitmaps/help.xpm"
-tRhythmWin::tRhythmWin(JZEventFrame *e, JZSong *s)
+tRhythmWin::tRhythmWin(JZEventWindow* pEventWindow, JZSong* pSong)
: wxFrame(
0,
wxID_ANY,
@@ -501,11 +501,11 @@
gpConfig->GetValue(C_RhythmXpos),
gpConfig->GetValue(C_RhythmYpos)),
wxSize(640, 580)),
- edit(0)
+ edit(0),
+ mpEventWindow(pEventWindow),
+ mpSong(pSong)
{
#ifdef OBSOLETE
- event_win = e;
- song = s;
in_create = 1;
n_instruments = 0;
act_instrument = -1;
@@ -1022,10 +1022,14 @@
void tRhythmWin::GenRhythm()
{
- if (!event_win->EventsSelected("please mark destination track in trackwin"))
+ if (
+ !mpEventWindow->EventsSelected(
+ "Please mark the destination track in the track window"))
+ {
return;
+ }
- JZFilter* pFilter = event_win->mpFilter;
+ JZFilter* pFilter = mpEventWindow->mpFilter;
if (pFilter->FromTrack != pFilter->ToTrack)
{
@@ -1035,8 +1039,8 @@
long fr_clock = pFilter->FromClock;
long to_clock = pFilter->ToClock;
- JZTrack *track = song->GetTrack(pFilter->FromTrack);
- song->NewUndoBuffer();
+ JZTrack *track = mpSong->GetTrack(pFilter->FromTrack);
+ mpSong->NewUndoBuffer();
// remove selection
//if (wxMessageBox("Erase destination before generating?", "Replace", wxYES_NO) == wxYES)
@@ -1048,7 +1052,7 @@
for (int i = 0; i < n_instruments; i++)
instruments[i]->GenInit(fr_clock);
- JZBarInfo bar_info(song);
+ JZBarInfo bar_info(mpSong);
bar_info.SetClock(fr_clock);
// for (int i = 0; i < n_instruments; i++)
@@ -1063,7 +1067,7 @@
track->Cleanup();
- event_win->Redraw();
+ mpEventWindow->Refresh();
}
Modified: trunk/jazz/src/Rhythm.h
===================================================================
--- trunk/jazz/src/Rhythm.h 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/Rhythm.h 2008-03-31 04:12:45 UTC (rev 379)
@@ -30,7 +30,7 @@
#include <iostream>
class JZTrack;
-class JZEventFrame;
+class JZEventWindow;
class JZSong;
class JZBarInfo;
@@ -113,6 +113,24 @@
class tRhythmWin : public wxFrame
{
+ public:
+
+ tRhythmWin(JZEventWindow* pEventWindow, JZSong* pSong);
+
+ virtual ~tRhythmWin();
+
+ virtual void OnMenuCommand(int id);
+
+ virtual void OnSize(int w, int h);
+
+ void OnPaint();
+
+ void GenRhythm();
+
+ bool OnClose();
+
+ private:
+
friend std::ostream& operator << (std::ostream& os, tRhythmWin const &a);
friend std::istream& operator >> (std::istream& is, tRhythmWin &a);
@@ -164,8 +182,8 @@
void AddInstrument(tRhythm *r);
void DelInstrument();
- JZEventFrame *event_win;
- JZSong *song;
+ JZEventWindow* mpEventWindow;
+ JZSong* mpSong;
void RndEnable();
@@ -178,15 +196,6 @@
void DownInstrument();
void InitInstrumentList();
- public:
-
- virtual void OnMenuCommand(int id);
- virtual void OnSize(int w, int h);
- tRhythmWin(JZEventFrame *parent, JZSong *song);
- virtual ~tRhythmWin();
- void OnPaint();
- void GenRhythm();
- bool OnClose();
};
extern tRhythmWin *rhythm_win;
Modified: trunk/jazz/src/TrackWindow.cpp
===================================================================
--- trunk/jazz/src/TrackWindow.cpp 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/TrackWindow.cpp 2008-03-31 04:12:45 UTC (rev 379)
@@ -40,42 +40,32 @@
//*****************************************************************************
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(JZTrackWindow, wxScrolledWindow)
+BEGIN_EVENT_TABLE(JZTrackWindow, JZEventWindow)
+
EVT_SIZE(JZTrackWindow::OnSize)
+
EVT_ERASE_BACKGROUND(JZTrackWindow::OnEraseBackground)
+
+ EVT_LEFT_DOWN(JZTrackWindow::OnLeftButtonDown)
+
EVT_LEFT_UP(JZTrackWindow::OnLeftButtonUp)
+
EVT_RIGHT_UP(JZTrackWindow::OnRightButtonUp)
+
END_EVENT_TABLE()
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-const int JZTrackWindow::mScrollSize = 50;
-
-//-----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
JZTrackWindow::JZTrackWindow(
wxFrame* pParent,
JZSong* pSong,
const wxPoint& Position,
const wxSize& Size)
- : wxScrolledWindow(
- pParent,
- wxID_ANY,
- Position,
- Size,
- wxHSCROLL | wxVSCROLL | wxNO_FULL_REPAINT_ON_RESIZE),
- mpFilter(0),
- mpSnapSel(0),
- mpSong(pSong),
- mpGreyColor(0),
- mpGreyBrush(0),
- mTrackHeight(10),
- mTopInfoHeight(40),
+ : JZEventWindow(pParent, pSong, Position, Size),
mLeftInfoWidth(100),
mClocksPerPixel(36),
mPlayClock(-1),
mUseColors(true),
- mLittleBit(2),
mEventsX(),
mEventsY(),
mEventsWidth(),
@@ -107,18 +97,6 @@
mDrawing(false),
mpFrameBuffer(0)
{
-#ifdef __WXMSW__
- mpGreyColor = new wxColor(192, 192, 192);
-#else
- mpGreyColor = new wxColor(220, 220, 220);
-#endif
-
- mpGreyBrush = new wxBrush(*mpGreyColor, wxSOLID);
-
- mpSnapSel = new tSnapSelection(this);
-
- mpFilter = new JZFilter(mpSong);
-
SetBackgroundColour(*wxWHITE);
mpFrameBuffer = new wxBitmap;
@@ -128,12 +106,8 @@
//-----------------------------------------------------------------------------
JZTrackWindow::~JZTrackWindow()
{
- delete mpGreyColor;
- delete mpGreyBrush;
delete mpFixedFont;
delete mpFont;
- delete mpSnapSel;
- delete mpFilter;
delete mpFrameBuffer;
}
@@ -159,11 +133,11 @@
Dc.GetTextExtent("M", &Width, &Height);
mLittleBit = Width / 2;
+ mTopInfoHeight = mFixedFontHeight + 2 * mLittleBit;
+
Dc.GetTextExtent("HXWjgi", &Width, &Height);
mTrackHeight = Height + 2 * mLittleBit;
- mTopInfoHeight = mFixedFontHeight + 2 * mLittleBit;
-
Dc.GetTextExtent("999", &Width, &Height);
mNumberWidth = Width + 2 * mLittleBit;
@@ -284,6 +258,20 @@
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
+void JZTrackWindow::OnLeftButtonDown(wxMouseEvent& Event)
+{
+ wxPoint Point = Event.GetPosition();
+
+ if (
+ Point.x >= mEventsX && Point.x < mEventsX + mEventsWidth &&
+ Point.y >= mEventsY && Point.y < mEventsY + mEventsHeight)
+ {
+ SnapSelectionStart(Event);
+ }
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
void JZTrackWindow::OnLeftButtonUp(wxMouseEvent& Event)
{
wxPoint Point = Event.GetPosition();
@@ -353,6 +341,12 @@
{
ToggleTrackState(Point);
}
+ else if (
+ Point.x >= mEventsX && Point.x < mEventsX + mEventsWidth &&
+ Point.y >= mEventsY && Point.y < mEventsY + mEventsHeight)
+ {
+ SnapSelectionStop(Event);
+ }
}
//-----------------------------------------------------------------------------
@@ -1098,20 +1092,6 @@
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-int JZTrackWindow::y2yLine(int y, int Up)
-{
- if (Up)
- {
- y += mTrackHeight;
- }
- y -= mTopInfoHeight;
- y -= y % mTrackHeight;
- y += mTopInfoHeight;
- return y;
-}
-
-//-----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
int JZTrackWindow::x2Clock(int x)
{
return (x - mEventsX) * mClocksPerPixel + mFromClock;
@@ -1191,15 +1171,6 @@
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-void JZTrackWindow::SetScrollPosition(int x, int y)
-{
- x /= mScrollSize;
- y /= mScrollSize;
- Scroll(x, y);
-}
-
-//-----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
void JZTrackWindow::MousePlay(wxMouseEvent& Event, TEMousePlayMode Mode)
{
if (Mode == eMouse && !Event.ButtonDown())
@@ -1367,3 +1338,30 @@
}
}
}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+void JZTrackWindow::SnapSelectionStart(wxMouseEvent& Event)
+{
+ mpSnapSel->SetXSnap(mBarCount, mBarX);
+ mpSnapSel->SetYSnap(
+ TrackIndex2y(mFromLine),
+ mEventsY + mEventsHeight,
+ mTrackHeight);
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+void JZTrackWindow::SnapSelectionStop(wxMouseEvent& Event)
+{
+ if (mpSnapSel->Selected)
+ {
+ mpFilter->FromTrack = y2TrackIndex(mpSnapSel->r.y);
+ mpFilter->ToTrack = y2TrackIndex(
+ mpSnapSel->r.y + mpSnapSel->r.GetHeight() - 1);
+ mpFilter->FromClock = x2BarClock(mpSnapSel->r.x + 1);
+ mpFilter->ToClock = x2BarClock(
+ mpSnapSel->r.x + mpSnapSel->r.GetWidth() + 1);
+// NextWin->NewPosition(mpFilter->FromTrack, mpFilter->FromClock);
+ }
+}
Modified: trunk/jazz/src/TrackWindow.h
===================================================================
--- trunk/jazz/src/TrackWindow.h 2008-03-31 04:10:22 UTC (rev 378)
+++ trunk/jazz/src/TrackWindow.h 2008-03-31 04:12:45 UTC (rev 379)
@@ -23,6 +23,7 @@
#ifndef JZ_TRACKWINDOW_H
#define JZ_TRACKWINDOW_H
+#include "EventWindow.h"
#include "MouseAction.h"
#include "Rectangle.h"
@@ -50,14 +51,12 @@
eNmModes
};
-class JZTrackWindow : public wxScrolledWindow
+//*****************************************************************************
+//*****************************************************************************
+class JZTrackWindow : public JZEventWindow
{
public:
- JZFilter* mpFilter;
-
- tSnapSelection* mpSnapSel;
-
enum TELimits
{
eMaxBars = 200
@@ -85,8 +84,6 @@
void SetScrollRanges(const int& x, const int& y);
- void SetScrollPosition(int x, int y);
-
private:
void GetVirtualEventSize(int& Width, int& Height) const;
@@ -95,6 +92,8 @@
void OnEraseBackground(wxEraseEvent& Event);
+ void OnLeftButtonDown(wxMouseEvent& Event);
+
void OnLeftButtonUp(wxMouseEvent& Event);
void OnRightButtonUp(wxMouseEvent& Event);
@@ -132,6 +131,10 @@
const char* GetNumberString() const;
+ void SnapSelectionStart(wxMouseEvent& Event);
+
+ void SnapSelectionStop(wxMouseEvent& Event);
+
// Was the VLine macro
void DrawVerticalLine(wxDC& Dc, int XPosition) const;
@@ -154,24 +157,12 @@
int x2BarClock(int x, int Next = 0);
- int y2yLine(int y, int Up = 0);
-
private:
- static const int mScrollSize;
-
- JZSong* mpSong;
-
- wxColor* mpGreyColor;
- wxBrush* mpGreyBrush;
-
- int mTrackHeight;
- int mTopInfoHeight;
int mLeftInfoWidth;
int mClocksPerPixel;
int mPlayClock;
bool mUseColors;
- int mLittleBit;
int mEventsX, mEventsY, mEventsWidth, mEventsHeight;
int mScrolledX, mScrolledY;
int mCanvasWidth, mCanvasHeight;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-31 04:10:31
|
Revision: 378
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=378&view=rev
Author: pstieber
Date: 2008-03-30 21:10:22 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
1. Prefixed shift dialog data members with m, and changed EventWin to
mpEventWindow in every class.
2. Made some cosmetic changes.
Modified Paths:
--------------
trunk/jazz/src/Dialogs.cpp
trunk/jazz/src/Dialogs.h
Modified: trunk/jazz/src/Dialogs.cpp
===================================================================
--- trunk/jazz/src/Dialogs.cpp 2008-03-31 04:07:20 UTC (rev 377)
+++ trunk/jazz/src/Dialogs.cpp 2008-03-31 04:10:22 UTC (rev 378)
@@ -48,57 +48,54 @@
// **************************************************************************
// Shift
// *************************************************************************
-
-
-//long tShiftDlg::Steps = 0;
-
-tShiftDlg::tShiftDlg(JZEventFrame *w, JZFilter *f, long unit)
-: tPropertyListDlg( "Shift events left/right" )
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+tShiftDlg::tShiftDlg(JZEventFrame* pEventWindow, JZFilter* pFilter, long unit)
+ : tPropertyListDlg("Shift events left/right"),
+ mSteps(0),
+ mUnit(unit),
+ mpEventWindow(pEventWindow),
+ mpFilter(pFilter),
+ mpSong(pFilter->mpSong)
{
- Filter = f;
- Song = f->mpSong;
- Unit = unit;
- EventWin = w;
- Steps=0;
}
-
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
bool tShiftDlg::OnClose()
{
- cout << "tShiftDlg::OnClose "<<Steps<<endl;
- tCmdShift cmd(Filter, Steps * Unit);
+ cout << "tShiftDlg::OnClose " << mSteps << endl;
+ tCmdShift cmd(mpFilter, mSteps * mUnit);
cmd.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
{
- EventWin->NextWin->Redraw();
+ mpEventWindow->NextWin->Refresh();
}
// wxForm::OnOk();
return false;
}
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
void tShiftDlg::OnHelp()
{
gpHelpInstance->ShowTopic("Shift");
}
-
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
void tShiftDlg::AddProperties()
{
-
//send wxPropertyValue REFERENCE not POINTER
- sheet->AddProperty(new wxProperty("Snaps", wxPropertyValue(&Steps), "integer", new wxIntegerListValidator(-16, 16)));
- sheet->AddProperty(new wxProperty("clocks per snap", (long)Unit, "integer"));//informational only
-
+ sheet->AddProperty(new wxProperty("Snaps", wxPropertyValue(&mSteps), "integer", new wxIntegerListValidator(-16, 16)));
+ sheet->AddProperty(new wxProperty("clocks per snap", (long)mUnit, "integer"));//informational only
}
-
// **************************************************************************
// Cleanup
// *************************************************************************
@@ -113,7 +110,7 @@
{
Filter = f;
Song = f->mpSong;
- EventWin = w;
+ mpEventWindow = w;
}
@@ -126,10 +123,10 @@
<< endl;
tCmdCleanup cln(Filter, limit, shortenOverlaps);
cln.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
{
- EventWin->NextWin->Redraw();
+ mpEventWindow->NextWin->Refresh();
}
//wxForm::OnOk();
@@ -197,16 +194,18 @@
{
Filter = f;
Song = f->mpSong;
- EventWin = w;
+ mpEventWindow = w;
}
bool tSearchReplaceDlg::OnClose()
{
tCmdSearchReplace sr(Filter, frCtrl - 1, toCtrl-1);
sr.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
- EventWin->NextWin->Redraw();
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
+ {
+ mpEventWindow->NextWin->Refresh();
+ }
return false;
}
@@ -245,7 +244,7 @@
tTransposeDlg::tTransposeDlg(JZEventFrame *w, JZFilter *f)
: tPropertyListDlg("Transpose")
{
- EventWin = w;
+ mpEventWindow = w;
Filter = f;
Song = f->mpSong;
}
@@ -255,13 +254,13 @@
{
tCmdTranspose trn(Filter, Notes, Scale, FitIntoScale);
trn.Execute();
- if (EventWin->NextWin)
+ if (mpEventWindow->NextWin)
{
- EventWin->NextWin->Redraw();
+ mpEventWindow->NextWin->Refresh();
}
else
{
- EventWin->Redraw();
+ mpEventWindow->Refresh();
}
return false;
@@ -405,7 +404,7 @@
{
Filter = f;
Song = f->mpSong;
- EventWin = w;
+ mpEventWindow = w;
}
@@ -414,10 +413,10 @@
tCmdLength cmd(Filter, FromValue, ToValue, Mode);
cmd.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
{
- EventWin->NextWin->Redraw();
+ mpEventWindow->NextWin->Refresh();
}
//tPropertyListDlg::OnClose();
@@ -470,7 +469,7 @@
{
Filter = f;
Song = f->mpSong;
- EventWin = w;
+ mpEventWindow = w;
}
@@ -478,11 +477,12 @@
{
tCmdSeqLength cmd(Filter, scale);
cmd.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
{
- EventWin->NextWin->Redraw();
+ mpEventWindow->NextWin->Refresh();
}
+
//tPropertyListDlg::OnClose();
return false;
}
@@ -516,7 +516,7 @@
{
Filter = f;
Song = f->mpSong;
- EventWin = w;
+ mpEventWindow = w;
}
@@ -525,9 +525,12 @@
tCmdMidiDelay cmd(Filter, scale,clockDelay,repeat);
cmd.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
- EventWin->NextWin->Redraw();
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
+ {
+ mpEventWindow->NextWin->Refresh();
+ }
+
//tPropertyListDlg::OnClose();
return false;
}
@@ -576,7 +579,7 @@
: tPropertyListDlg("Delete" )
{
Filter = f;
- EventWin = w;
+ mpEventWindow = w;
}
@@ -584,10 +587,10 @@
{
tCmdErase cmd(Filter, LeaveSpace);
cmd.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
{
- EventWin->NextWin->Redraw();
+ mpEventWindow->NextWin->Refresh();
}
// tPropertyListDlg::OnClose();
@@ -671,7 +674,7 @@
{
Filter = f;
Song = f->mpSong;
- EventWin = w;
+ mpEventWindow = w;
}
@@ -684,16 +687,19 @@
qnt.NoteStart = NoteStart;
qnt.NoteLength = NoteLength;
qnt.Execute();
- EventWin->Redraw();
- if (EventWin->NextWin)
- EventWin->NextWin->Redraw();
+ mpEventWindow->Refresh();
+ if (mpEventWindow->NextWin)
+ {
+ mpEventWindow->NextWin->Refresh();
+ }
+
//tPropertyListDlg::OnClose();
return false;
}
void tQuantizeDlg::OnHelp()
{
- if (EventWin->NextWin)
+ if (mpEventWindow->NextWin)
{
gpHelpInstance->ShowTopic("Quantize");
}
@@ -751,7 +757,7 @@
tEventDlg::tEventDlg(JZEvent *e, JZPianoWindow* w, JZTrack *t)
: tPropertyListDlg( "Event" ),
- ClockDlg(w->mpSong, "Time ", e->GetClock())
+ ClockDlg(w->GetSong(), "Time ", e->GetClock())
{
Win = w;
Track = t;
@@ -1497,7 +1503,7 @@
case StatSetTempo:
str = "Set Tempo (for track 0)";
- dlg = new tSetTempoDlg(e->IsSetTempo(), pPianoWindow, pPianoWindow->mpSong->GetTrack(0) );
+ dlg = new tSetTempoDlg(e->IsSetTempo(), pPianoWindow, pPianoWindow->GetSong()->GetTrack(0) );
break;
case StatSysEx:
Modified: trunk/jazz/src/Dialogs.h
===================================================================
--- trunk/jazz/src/Dialogs.h 2008-03-31 04:07:20 UTC (rev 377)
+++ trunk/jazz/src/Dialogs.h 2008-03-31 04:10:22 UTC (rev 378)
@@ -29,23 +29,25 @@
class JZFilter;
class JZSong;
class JZEventFrame;
+class JZEventWindow;
class JZTrack;
class JZEvent;
class tShiftDlg : public tPropertyListDlg
{
- public:
- long Steps; // 0 was static
- long Unit;
+ public:
+
+ long mSteps; // 0 was static
+ long mUnit;
- JZFilter* Filter;
- JZSong* Song;
- JZEventFrame* EventWin;
+ JZEventFrame* mpEventWindow;
+ JZFilter* mpFilter;
+ JZSong* mpSong;
- tShiftDlg(JZEventFrame *w, JZFilter *f, long Unit);
- void AddProperties();
- bool OnClose();
- void OnHelp();
+ tShiftDlg(JZEventFrame* pEventWindow, JZFilter* pFilter, long Unit);
+ void AddProperties();
+ bool OnClose();
+ void OnHelp();
};
class tCleanupDlg : public tPropertyListDlg
@@ -57,7 +59,7 @@
JZFilter *Filter;
JZSong *Song;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
tCleanupDlg(JZEventFrame *w, JZFilter *f);
void AddProperties();
@@ -77,7 +79,7 @@
JZFilter *Filter;
JZSong *Song;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
tSearchReplaceDlg(JZEventFrame *w, JZFilter *f);
void AddProperties();
@@ -94,7 +96,7 @@
static bool FitIntoScale;
static int Scale;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
JZFilter *Filter;
JZSong *Song;
@@ -148,7 +150,7 @@
JZFilter *Filter;
JZSong *Song;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
tLengthDlg(JZEventFrame *win, JZFilter *f);
void AddProperties();
@@ -166,7 +168,7 @@
JZFilter *Filter;
JZSong *Song;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
tSeqLengthDlg(JZEventFrame *win, JZFilter *f);
void AddProperties();
@@ -185,7 +187,7 @@
JZFilter *Filter;
JZSong *Song;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
tMidiDelayDlg(JZEventFrame *win, JZFilter *f);
void AddProperties();
@@ -196,7 +198,7 @@
class tDeleteDlg : public tPropertyListDlg
{
JZFilter *Filter;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
public:
static bool LeaveSpace; // 1
@@ -241,7 +243,7 @@
JZFilter *Filter;
JZSong *Song;
- JZEventFrame *EventWin;
+ JZEventFrame* mpEventWindow;
long Quantize(long);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-31 04:07:23
|
Revision: 377
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=377&view=rev
Author: pstieber
Date: 2008-03-30 21:07:20 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Removed some comments that mentioned JZEventFrame.
Modified Paths:
--------------
trunk/jazz/src/PianoFrame.cpp
trunk/jazz/src/PianoFrame.h
Modified: trunk/jazz/src/PianoFrame.cpp
===================================================================
--- trunk/jazz/src/PianoFrame.cpp 2008-03-30 18:25:05 UTC (rev 376)
+++ trunk/jazz/src/PianoFrame.cpp 2008-03-31 04:07:20 UTC (rev 377)
@@ -742,10 +742,6 @@
mpPianoWindow->SetVisibleAllTracks(Value);
}
-///////////////////////////////////////////////////////////////////////////////
-// Function slurped from JZEventFrame
-///////////////////////////////////////////////////////////////////////////////
-
void JZPianoFrame::NewPlayPosition(int Clock)
{
mpPianoWindow->NewPlayPosition(Clock);
Modified: trunk/jazz/src/PianoFrame.h
===================================================================
--- trunk/jazz/src/PianoFrame.h 2008-03-30 18:25:05 UTC (rev 376)
+++ trunk/jazz/src/PianoFrame.h 2008-03-31 04:07:20 UTC (rev 377)
@@ -124,7 +124,6 @@
void OnVisibleAllTracks(wxCommandEvent& Event);
void OnReset(wxCommandEvent& Event);
- // Functions slurped from JZEventFrame
public:
void NewPlayPosition(int Clock);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-30 18:25:11
|
Revision: 376
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=376&view=rev
Author: pstieber
Date: 2008-03-30 11:25:05 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Removed an unused forward declaration.
Modified Paths:
--------------
trunk/jazz/src/Harmony.h
Modified: trunk/jazz/src/Harmony.h
===================================================================
--- trunk/jazz/src/Harmony.h 2008-03-30 16:09:16 UTC (rev 375)
+++ trunk/jazz/src/Harmony.h 2008-03-30 18:25:05 UTC (rev 376)
@@ -26,7 +26,6 @@
#include "ToolBar.h"
class wxObject;
-class JZEventFrame;
class HBAnalyzer;
class HBCanvas;
class tGenMelody;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-30 16:09:20
|
Revision: 375
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=375&view=rev
Author: pstieber
Date: 2008-03-30 09:09:16 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Removed "Help | About" from the tool bar.
Modified Paths:
--------------
trunk/jazz/src/TrackFrame.cpp
Modified: trunk/jazz/src/TrackFrame.cpp
===================================================================
--- trunk/jazz/src/TrackFrame.cpp 2008-03-30 15:37:16 UTC (rev 374)
+++ trunk/jazz/src/TrackFrame.cpp 2008-03-30 16:09:16 UTC (rev 375)
@@ -175,7 +175,6 @@
{ wxID_REDO, false, redo_xpm, "redo"},
{ wxID_RESET, false, panic_xpm, "all notes off"},
{ wxID_HELP_CONTENTS, false, help_xpm, "help" },
- { wxID_ABOUT, false, help_xpm, "about" },
{ JZToolBar::eToolBarEnd }
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-30 15:37:22
|
Revision: 374
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=374&view=rev
Author: pstieber
Date: 2008-03-30 08:37:16 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Added some code for reading and writing MIDI files in ASCII format for
debug purposes. This was ported from version 4.1.3 in branches.
Modified Paths:
--------------
trunk/jazz/src/Makefile.am
trunk/jazz/vc8/JazzPlusPlus-VC8.vcproj
Added Paths:
-----------
trunk/jazz/src/AsciiMidiFile.cpp
trunk/jazz/src/AsciiMidiFile.h
Added: trunk/jazz/src/AsciiMidiFile.cpp
===================================================================
--- trunk/jazz/src/AsciiMidiFile.cpp (rev 0)
+++ trunk/jazz/src/AsciiMidiFile.cpp 2008-03-30 15:37:16 UTC (rev 374)
@@ -0,0 +1,192 @@
+//*****************************************************************************
+// The JAZZ++ Midi Sequencer
+//
+// Copyright (C) 1994-2000 Andreas Voss and Per Sigmond, all rights reserved.
+// Modifications Copyright (C) 2008 Peter J. Stieber
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//*****************************************************************************
+
+#include "WxWidgets.h"
+
+#include "AsciiMidiFile.h"
+
+//*****************************************************************************
+//*****************************************************************************
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int JZAsciiRead::Open(const char* pFileName)
+{
+ int TrackCount, TicksPerQuarter;
+ if (
+ fscanf(
+ mpFd,
+ "Tracks %d, TicksPerQuarter %d\n",
+ &TrackCount,
+ &TicksPerQuarter) != 2)
+ {
+ return 0;
+ }
+ return TrackCount;
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+JZEvent* JZAsciiRead::Read()
+{
+ JZEvent* pEvent = 0;
+
+ long Clock;
+ int sta, cha, Length;
+ if (fscanf(mpFd, "%6lu %02x %2d %d ", &Clock, &sta, &cha, &Length) != 4)
+ {
+ return pEvent;
+ }
+
+ unsigned char* pBuffer = new unsigned char[Length];
+ for (int i = 0; i < Length; ++i)
+ {
+ int d;
+ fscanf(mpFd, "%02x ", &d);
+ pBuffer[i] = (unsigned char)d;
+ }
+
+ switch (sta)
+ {
+ case StatUnknown:
+ break;
+
+ case StatKeyOff:
+ pEvent = new tKeyOff(Clock, cha, pBuffer[0]);
+ break;
+
+ case StatKeyOn:
+ pEvent = new tKeyOn(Clock, cha, pBuffer[0], pBuffer[1]);
+ break;
+
+ case StatControl:
+ pEvent = new tControl(Clock, cha, pBuffer[0], pBuffer[1]);
+ break;
+
+ case StatPitch:
+ pEvent = new tPitch(Clock, cha, pBuffer[0], pBuffer[1]);
+ break;
+
+ case StatProgram:
+ pEvent = new tProgram(Clock, cha, pBuffer[0]);
+ break;
+
+ case StatText:
+ pEvent = new tText(Clock, pBuffer, Length);
+ break;
+
+ case StatTrackName:
+ pEvent = new tTrackName(Clock, pBuffer, Length);
+ break;
+
+ case StatMarker:
+ pEvent = new tMarker(Clock, pBuffer, Length);
+ break;
+
+ case StatEndOfTrack:
+ break;
+
+ case StatSetTempo:
+ pEvent = new tSetTempo(Clock, pBuffer[0], pBuffer[1], pBuffer[2]);
+ break;
+
+ case StatTimeSignat:
+ pEvent = new tTimeSignat(
+ Clock,
+ pBuffer[0],
+ pBuffer[1],
+ pBuffer[2],
+ pBuffer[3]);
+ break;
+
+ case StatSysEx:
+ pEvent = new tSysEx(Clock, pBuffer, Length);
+ break;
+ }
+
+ delete [] pBuffer;
+
+ return pEvent;
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int JZAsciiRead::NextTrack()
+{
+ return fscanf(mpFd, "NextTrack\n") == 0;
+}
+
+//*****************************************************************************
+// Description:
+// Ascii-Output (debug)
+//*****************************************************************************
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int JZAsciiWrite::Open(
+ const char* pFileName,
+ int TrackCount,
+ int TicksPerQuarter)
+{
+ if (!JZWriteBase::Open(pFileName, TrackCount, TicksPerQuarter))
+ {
+ return 0;
+ }
+
+ fprintf(
+ mpFd,
+ "Tracks %d, TicksPerQuarter %d\n",
+ TrackCount,
+ TicksPerQuarter);
+
+ return TrackCount;
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+int JZAsciiWrite::Write(JZEvent* pEvent, unsigned char* pData, int Length)
+{
+ tChannelEvent *ce;
+
+ fprintf(mpFd, "%6ld %02x ", pEvent->GetClock(), pEvent->Stat);
+ if ((ce = pEvent->IsChannelEvent()) != 0)
+ {
+ fprintf(mpFd, "%2d ", ce->Channel);
+ }
+ else
+ {
+ fprintf(mpFd, "-1 ");
+ }
+
+ fprintf(mpFd, "%d ", Length);
+ for (int i = 0; i < Length; ++i)
+ {
+ fprintf(mpFd, "%02x ", pData[i]);
+ }
+ fprintf(mpFd, "\n");
+
+ return 0;
+}
+
+//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+void JZAsciiWrite::NextTrack()
+{
+ fprintf(mpFd, "NextTrack\n");
+}
Property changes on: trunk/jazz/src/AsciiMidiFile.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/jazz/src/AsciiMidiFile.h
===================================================================
--- trunk/jazz/src/AsciiMidiFile.h (rev 0)
+++ trunk/jazz/src/AsciiMidiFile.h 2008-03-30 15:37:16 UTC (rev 374)
@@ -0,0 +1,57 @@
+//*****************************************************************************
+// The JAZZ++ Midi Sequencer
+//
+// Copyright (C) 1994-2000 Andreas Voss and Per Sigmond, all rights reserved.
+// Modifications Copyright (C) 2008 Peter J. Stieber
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//*****************************************************************************
+
+#ifndef JZ_ASCIIMIDIFILE_H
+#define JZ_ASCIIMIDIFILE_H
+
+#include "Events.h"
+
+//*****************************************************************************
+//*****************************************************************************
+class JZAsciiRead : public JZReadBase
+{
+ public:
+
+ virtual int Open(const char* pFileName);
+
+ virtual JZEvent* Read();
+
+ virtual int NextTrack();
+};
+
+//*****************************************************************************
+//*****************************************************************************
+class JZAsciiWrite : public JZWriteBase
+{
+ public:
+
+ virtual int Open(
+ const char* pFileName,
+ int TrackCount,
+ int TicksPerQuarter);
+
+ virtual int Write(JZEvent* pEvent, unsigned char* pData, int Length);
+
+ virtual void NextTrack();
+};
+
+
+#endif // !defined(JZ_ASCIIMIDIFILE_H)
Property changes on: trunk/jazz/src/AsciiMidiFile.h
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/jazz/src/Makefile.am
===================================================================
--- trunk/jazz/src/Makefile.am 2008-03-30 15:21:52 UTC (rev 373)
+++ trunk/jazz/src/Makefile.am 2008-03-30 15:37:16 UTC (rev 374)
@@ -7,6 +7,7 @@
AlsaDriver.cpp \
AlsaPlayer.cpp \
AlsaThru.cpp \
+AsciiMidiFile.cpp \
Audio.cpp \
AudioDriver.cpp \
ClockDialog.cpp \
@@ -80,6 +81,7 @@
AlsaDriver.h \
AlsaPlayer.h \
AlsaThru.h \
+AsciiMidiFile.h \
Audio.h \
AudioDriver.h \
ClockDialog.h \
Modified: trunk/jazz/vc8/JazzPlusPlus-VC8.vcproj
===================================================================
--- trunk/jazz/vc8/JazzPlusPlus-VC8.vcproj 2008-03-30 15:21:52 UTC (rev 373)
+++ trunk/jazz/vc8/JazzPlusPlus-VC8.vcproj 2008-03-30 15:37:16 UTC (rev 374)
@@ -229,6 +229,14 @@
>
</File>
<File
+ RelativePath="..\src\AsciiMidiFile.cpp"
+ >
+ </File>
+ <File
+ RelativePath="..\src\AsciiMidiFile.h"
+ >
+ </File>
+ <File
RelativePath="..\src\Audio.cpp"
>
</File>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-30 15:21:55
|
Revision: 373
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=373&view=rev
Author: pstieber
Date: 2008-03-30 08:21:52 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
Changed pString to pData.
Modified Paths:
--------------
trunk/jazz/src/Events.cpp
trunk/jazz/src/Events.h
Modified: trunk/jazz/src/Events.cpp
===================================================================
--- trunk/jazz/src/Events.cpp 2008-03-30 15:07:26 UTC (rev 372)
+++ trunk/jazz/src/Events.cpp 2008-03-30 15:21:52 UTC (rev 373)
@@ -156,7 +156,7 @@
//*****************************************************************************
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-int tGetMidiBytes::Write(JZEvent* pEvent, unsigned char* pString, int Length)
+int tGetMidiBytes::Write(JZEvent* pEvent, unsigned char* pData, int Length)
{
int Stat = pEvent->Stat;
@@ -175,7 +175,7 @@
Buffer[nBytes++] = Stat | ((tChannelEvent *)pEvent)->Channel;
while(Length--)
{
- Buffer[nBytes++] = *pString++;
+ Buffer[nBytes++] = *pData++;
}
return 0;
Modified: trunk/jazz/src/Events.h
===================================================================
--- trunk/jazz/src/Events.h 2008-03-30 15:07:26 UTC (rev 372)
+++ trunk/jazz/src/Events.h 2008-03-30 15:21:52 UTC (rev 373)
@@ -114,7 +114,7 @@
virtual int Write(
JZEvent* pEvent,
- unsigned char* pString,
+ unsigned char* pData,
int Length) = 0;
virtual void NextTrack();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pst...@us...> - 2008-03-30 15:07:28
|
Revision: 372
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=372&view=rev
Author: pstieber
Date: 2008-03-30 08:07:26 -0700 (Sun, 30 Mar 2008)
Log Message:
-----------
1. Made some cosmetic indentation changes.
2. Changed FALSE to false and TRUE to true.
3. Changed some I/O code to avoid type conversion warnings.
4. Wrapped some single line conditional statements with curly braces.
Modified Paths:
--------------
trunk/jazz/src/SampleDialog.cpp
Modified: trunk/jazz/src/SampleDialog.cpp
===================================================================
--- trunk/jazz/src/SampleDialog.cpp 2008-03-30 14:55:50 UTC (rev 371)
+++ trunk/jazz/src/SampleDialog.cpp 2008-03-30 15:07:26 UTC (rev 372)
@@ -42,7 +42,8 @@
using namespace std;
tCommandPainter::tCommandPainter(tSampleWin &w, tPaintableCommand &c)
- : win(w), cmd(c)
+ : win(w),
+ cmd(c)
{
c.Initialize();
win.ClearSelection();
@@ -415,10 +416,16 @@
}
-int tSynthDlg::geo[4] = { 50, 80, 800, 400 };
-int tSynthDlg::num_synths = 1;
-int tSynthDlg::midi_key = 30;
-int tSynthDlg::duration = 50;
+int tSynthDlg::geo[4] =
+{
+ 50,
+ 80,
+ 800,
+ 400
+};
+int tSynthDlg::num_synths = 1;
+int tSynthDlg::midi_key = 30;
+int tSynthDlg::duration = 50;
bool tSynthDlg::fft_enable = 1;
bool tSynthDlg::vol_enable = 1;
@@ -441,13 +448,13 @@
#include "Bitmaps/play.xpm"
static JZToolDef syn_tdefs[] = {
- { SYN_LOAD, FALSE, open_xpm, "open synth settings" },
- { SYN_SAVE, FALSE, save_xpm, "save synth settings" },
+ { SYN_LOAD, false, open_xpm, "open synth settings" },
+ { SYN_SAVE, false, save_xpm, "save synth settings" },
{ JZToolBar::eToolBarSeparator },
- { SYN_GEN, FALSE, rrggen_xpm, "generate sound" },
- { SYN_PLAY, FALSE, play_xpm, "play sound" },
+ { SYN_GEN, false, rrggen_xpm, "generate sound" },
+ { SYN_PLAY, false, play_xpm, "play sound" },
{ JZToolBar::eToolBarSeparator },
- { SYN_HELP, FALSE, help_xpm, "help" },
+ { SYN_HELP, false, help_xpm, "help" },
{ JZToolBar::eToolBarEnd }
};
@@ -468,45 +475,94 @@
delete [] default_filename;
}
-ostream & operator << (ostream &os, tSynthDlg const &a)
+ostream& operator << (ostream& Os, tSynthDlg const &a)
{
- int i;
- os << 1000 << endl;
- os << (int)a.num_synths << " ";
- os << (int)a.midi_key << " ";
- os << (int)a.duration << " ";
- os << (int)a.vol_enable << " ";
- os << (int)a.pan_enable << " ";
- os << (int)a.frq_enable << " ";
- os << (int)a.fft_enable << " ";
- os << (int)a.noise_enable << " ";
- os << endl;
- for (i = 0; i < a.num_synths; i++)
- os << *a.synths[i] << endl;
- return os;
+ Os << 1000 << '\n';
+ Os << a.num_synths << ' ';
+ Os << a.midi_key << ' ';
+ Os << a.duration << ' ';
+ Os << (int)a.vol_enable << ' ';
+ Os << (int)a.pan_enable << ' ';
+ Os << (int)a.frq_enable << ' ';
+ Os << (int)a.fft_enable << ' ';
+ Os << (int)a.noise_enable << ' ';
+ Os << '\n';
+ for (int i = 0; i < a.num_synths; i++)
+ {
+ Os << *a.synths[i] << endl;
+ }
+ return Os;
}
-istream & operator >> (istream &is, tSynthDlg &a)
+istream& operator >> (istream& Is, tSynthDlg &a)
{
- int i, version;
- is >> version;
- if (version != 1000) {
+ int Version;
+ Is >> Version;
+ if (Version != 1000)
+ {
wxMessageBox("Wrong file format!", "Error", wxOK);
- return is;
+ return Is;
}
- is >> i; a.num_synths = i;
- is >> i; a.midi_key = i;
- is >> i; a.duration = i;
- is >> i; a.vol_enable = i;
- is >> i; a.pan_enable = i;
- is >> i; a.frq_enable = i;
- is >> i; a.fft_enable = i;
- is >> i; a.noise_enable = i;
+ Is >> a.num_synths;
+ Is >> a.midi_key;
+ Is >> a.duration;
+
+ int i;
+ Is >> i;
+ if (i)
+ {
+ a.vol_enable = true;
+ }
+ else
+ {
+ a.vol_enable = false;
+ }
+
+ Is >> i;
+ if (i)
+ {
+ a.pan_enable = true;
+ }
+ else
+ {
+ a.pan_enable = false;
+ }
+
+ Is >> i;
+ if (i)
+ {
+ a.frq_enable = true;
+ }
+ else
+ {
+ a.frq_enable = false;
+ }
+
+ Is >> i;
+ if (i)
+ {
+ a.fft_enable = true;
+ }
+ else
+ {
+ a.fft_enable = false;
+ }
+
+ Is >> i;
+ if (i)
+ {
+ a.noise_enable = true;
+ }
+ else
+ {
+ a.noise_enable = false;
+ }
+
for (i = 0; i < a.num_synths; ++i)
{
- is >> *a.synths[i];
+ Is >> *a.synths[i];
}
a.num_synths_slider->SetValue(a.num_synths);
@@ -518,7 +574,7 @@
a.chk_fft->SetValue(a.fft_enable);
a.chk_noise->SetValue(a.noise_enable);
- return is;
+ return Is;
}
@@ -629,61 +685,77 @@
if (vol_enable) sliders_per_row ++;
if (pan_enable) sliders_per_row ++;
if (frq_enable) sliders_per_row ++;
- if (sliders_per_row == 0) {
+ if (sliders_per_row == 0)
+ {
sliders_per_row = 1;
fft_enable = 1;
- chk_fft->SetValue(TRUE);
+ chk_fft->SetValue(true);
}
n_sliders = num_synths * sliders_per_row;
- for (i = 0, k = 0; i < num_synths; i++) {
+ for (i = 0, k = 0; i < num_synths; i++)
+ {
tAddSynth &s = *synths[i];
- if (fft_enable) {
+ if (fft_enable)
+ {
sliders[k++] = s.fft.edit;
- s.fft.Show(TRUE);
+ s.fft.Show(true);
}
else
- s.fft.Show(FALSE);
+ {
+ s.fft.Show(false);
+ }
- if (vol_enable) {
+ if (vol_enable)
+ {
sliders[k++] = s.vol.edit;
- s.vol.Show(TRUE);
+ s.vol.Show(true);
}
else
- s.vol.Show(FALSE);
+ {
+ s.vol.Show(false);
+ }
- if (pan_enable) {
+ if (pan_enable)
+ {
sliders[k++] = s.pan.edit;
- s.pan.Show(TRUE);
+ s.pan.Show(true);
}
else
- s.pan.Show(FALSE);
+ {
+ s.pan.Show(false);
+ }
- if (frq_enable) {
+ if (frq_enable)
+ {
sliders[k++] = s.frq.edit;
- s.frq.Show(TRUE);
+ s.frq.Show(true);
}
else
- s.frq.Show(FALSE);
-
+ {
+ s.frq.Show(false);
+ }
}
- for (; i < MAXSYNTHS; i++) {
+ for (; i < MAXSYNTHS; i++)
+ {
tAddSynth &s = *synths[i];
- s.fft.Show(FALSE);
- s.vol.Show(FALSE);
- s.pan.Show(FALSE);
- s.frq.Show(FALSE);
+ s.fft.Show(false);
+ s.vol.Show(false);
+ s.pan.Show(false);
+ s.frq.Show(false);
}
- if (noise_enable) {
+ if (noise_enable)
+ {
synths[0]->fft.edit->SetLabel("noise filter");
- synths[0]->frq.edit->Enable(FALSE);
+ synths[0]->frq.edit->Enable(false);
}
- else {
+ else
+ {
synths[0]->fft.edit->SetLabel("harmonics");
- synths[0]->frq.edit->Enable(TRUE);
+ synths[0]->frq.edit->Enable(true);
}
}
@@ -695,7 +767,8 @@
int resize = 0;
#if 0
- if (&item == action) {
+ if (&item == action)
+ {
wxBeginBusyCursor();
Action();
wxEndBusyCursor();
@@ -728,7 +801,8 @@
}
else if (&item == num_synths_slider) {
int n = num_synths_slider->GetValue();
- if (n != num_synths) { // avoid flashing
+ if (n != num_synths)
+ { // avoid flashing
num_synths = n;
resize = 1;
}
@@ -853,7 +927,7 @@
int tEchoForm::num_echos = 3;
int tEchoForm::delay = 50; // millisec
int tEchoForm::ampl = 25; // percent
-bool tEchoForm::rand = FALSE;
+bool tEchoForm::rand = false;
tEchoForm::tEchoForm(tSampleWin &w)
@@ -1113,7 +1187,7 @@
// -------------------------------------------------------------------------
tWahSettingsForm::tWahSettingsForm(tSampleWin &win, tWahWah &w)
- : tSplFilterForm(win, TRUE),
+ : tSplFilterForm(win, true),
wah(w)
{
type = (int)wah.filter_type;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|