summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2005-01-19 10:52:02 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2005-01-19 10:52:02 (GMT)
commitcc78e6490fefe97364ddd93533b213d938de2e37 (patch)
treeadf4c16892992df17a8c8ad86ce55a84d53e73fa
parentcfd7dc8caa85d56ee7f0be11b5b003f64d942cae (diff)
downloadTASS-cc78e6490fefe97364ddd93533b213d938de2e37.zip
TASS-cc78e6490fefe97364ddd93533b213d938de2e37.tar.gz
TASS-cc78e6490fefe97364ddd93533b213d938de2e37.tar.bz2
Audio input from Smartmedia works.
-rw-r--r--Graphic_Equalizer/src/smartmedia.hcc6
1 files changed, 3 insertions, 3 deletions
diff --git a/Graphic_Equalizer/src/smartmedia.hcc b/Graphic_Equalizer/src/smartmedia.hcc
index a69c79e..0fa0c97 100644
--- a/Graphic_Equalizer/src/smartmedia.hcc
+++ b/Graphic_Equalizer/src/smartmedia.hcc
@@ -339,7 +339,6 @@ unsigned 1 load_audio_samples(signed 18 *samples, unsigned 27 blockoffset, unsig
retval = 0;
if (!blockoffset) {
-// print_string("Setting Address");
if (physical_format)
{
RC200SmartMediaSetAddress(READ, SMARTMEDIA_ADDRESS_AUDIO_START);
@@ -361,7 +360,6 @@ unsigned 1 load_audio_samples(signed 18 *samples, unsigned 27 blockoffset, unsig
RC200SmartMediaRead(&samplebyte, TRUE);
RC200SmartMediaOperationEnd(&result);
retval = 1;
-// print_string("Operation end");
}
return retval;
}
@@ -369,10 +367,12 @@ unsigned 1 load_audio_samples(signed 18 *samples, unsigned 27 blockoffset, unsig
void smartmedia_read_bytes(unsigned 8 *data, unsigned 8 bytecount)
{
unsigned 8 byteindex;
+ unsigned 8 temp;
byteindex = 0;
while (byteindex != bytecount) {
- RC200SmartMediaRead(&data[byteindex], FALSE);
+ RC200SmartMediaRead(&temp, FALSE);
+ data[byteindex] = temp;
byteindex++;
}
// print_eol();