-rw-r--r-- | noncore/multimedia/powerchord/gs.cpp | 7 | ||||
-rw-r--r-- | noncore/multimedia/powerchord/gs.h | 1 | ||||
-rw-r--r-- | noncore/multimedia/powerchord/opie-powerchord.control | 8 | ||||
-rw-r--r-- | share/powerchord/acguitar.raw | bin | 0 -> 50000 bytes |
4 files changed, 10 insertions, 6 deletions
diff --git a/noncore/multimedia/powerchord/gs.cpp b/noncore/multimedia/powerchord/gs.cpp index a3e85c9..fdcfb74 100644 --- a/noncore/multimedia/powerchord/gs.cpp +++ b/noncore/multimedia/powerchord/gs.cpp | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | //#include <qpainter.h> | 19 | //#include <qpainter.h> |
20 | #include <qmessagebox.h> | 20 | #include <qmessagebox.h> |
21 | #include <qstring.h> | ||
21 | 22 | ||
22 | 23 | ||
23 | gs::gs() | 24 | gs::gs() |
@@ -73,7 +74,11 @@ gs::gs() | |||
73 | signed short *dsp_buf_ptr = dsp_buf; | 74 | signed short *dsp_buf_ptr = dsp_buf; |
74 | 75 | ||
75 | int raw_fd; | 76 | int raw_fd; |
76 | raw_fd = open(ACGUITAR_PATH_S, O_RDONLY); | 77 | |
78 | QString path = getenv( "OPIEDIR" ); | ||
79 | path.append( "/share/powerchord/acguitar.raw" ); | ||
80 | |||
81 | raw_fd = open( (const char*) path, O_RDONLY); | ||
77 | 82 | ||
78 | if (raw_fd < 0){ | 83 | if (raw_fd < 0){ |
79 | fprintf(stderr, "Failed to open raw file (%s)\n", strerror(errno)); | 84 | fprintf(stderr, "Failed to open raw file (%s)\n", strerror(errno)); |
diff --git a/noncore/multimedia/powerchord/gs.h b/noncore/multimedia/powerchord/gs.h index 3e4c04d..f2b309f 100644 --- a/noncore/multimedia/powerchord/gs.h +++ b/noncore/multimedia/powerchord/gs.h | |||
@@ -8,7 +8,6 @@ | |||
8 | 8 | ||
9 | #define BUFSIZE 256 | 9 | #define BUFSIZE 256 |
10 | #define NUMCHANS 7 | 10 | #define NUMCHANS 7 |
11 | #define ACGUITAR_PATH_S "/usr/local/projects/opie-head/noncore/multimedia/powerchord/acguitar.raw" | ||
12 | 11 | ||
13 | class gs : public QObject { | 12 | class gs : public QObject { |
14 | 13 | ||
diff --git a/noncore/multimedia/powerchord/opie-powerchord.control b/noncore/multimedia/powerchord/opie-powerchord.control index 7f45999..d295031 100644 --- a/noncore/multimedia/powerchord/opie-powerchord.control +++ b/noncore/multimedia/powerchord/opie-powerchord.control | |||
@@ -1,10 +1,10 @@ | |||
1 | Files: bin/powerchord apps/Applications/powerchord.desktop pics/powerchord sounds/powerchord | 1 | Files: bin/powerchord apps/Applications/powerchord.desktop pics/powerchord share/powerchord |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: qpe/applications | 3 | Section: Applications |
4 | Maintainer: Camilo Mesias <camilo@mesias.co.uk> | 4 | Maintainer: Camilo Mesias <camilo@mesias.co.uk> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: 0.0.7 | 6 | Version: 0.0.8 |
7 | Depends: qpe-base ($QPE_VERSION) | 7 | Depends: task-opie-minimal |
8 | Description: Guitar Chord generator application | 8 | Description: Guitar Chord generator application |
9 | Allows naming of chords using base note and key. Fretboard diagrams are | 9 | Allows naming of chords using base note and key. Fretboard diagrams are |
10 | produced illustrating ways to play the chord. | 10 | produced illustrating ways to play the chord. |
diff --git a/share/powerchord/acguitar.raw b/share/powerchord/acguitar.raw new file mode 100644 index 0000000..1452147 --- a/dev/null +++ b/share/powerchord/acguitar.raw | |||
Binary files differ | |||