From cc78e6490fefe97364ddd93533b213d938de2e37 Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Wed, 19 Jan 2005 10:52:02 +0000 Subject: Audio input from Smartmedia works. --- Graphic_Equalizer/src/smartmedia.hcc | 6 +++--- 1 file 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(); -- cgit v0.12