He's always done this. I'm lucky I only see two cross-postings, I used to get four
or five. On 10/25/2010 10:44 PM, Bryan Schulz wrote:
now are you going to flood this list with your errors as well? Bryan Schulz ----- Original Message ----- *From:* Marvin Hunkin <mailto:startrekcafe@xxxxxxxxx> *To:* programmingblind@xxxxxxxxxxxxx <mailto:programmingblind@xxxxxxxxxxxxx> *Sent:* Monday, October 25, 2010 9:53 PM *Subject:* help hi. doing a audio programming project using low level wav technology. getting errors. and looked at the tutorial. but cannot seem to see any thing wrong. can you help. not liking the size and saying it is not in the context. can you help. marvin from australia. ps: will paste the code and the error messages below. using c# express 2008. atevoidFillWaveBuffer() { byte[] b = newbyte[size]; if(audioStream != null) { intpos = 0; while(pos < size) { inttoget = size - pos; intgot = audioStream.Read(b, pos, toget); if(got < toget) audioStream.Position = 0; // loop if the file ends pos += got; } } else { b[i] = 0; } System.Runtime.InteropServices.Marshal.Copy(b, 0, data, size); } privatevoidbtnLoad_Click(objectsender, EventArgse) { LoadSong(); } privatevoidFillWaveBuffer() { byte[] b = newbyte[size]; if(audioStream != null) { intpos = 0; while(pos < size) { inttoget = size - pos; intgot = audioStream.Read(b, pos, toget); if(got < toget) audioStream.Position = 0; // loop if the file ends pos += got; } } else { b[i] = 0; } System.Runtime.InteropServices.Marshal.Copy(b, 0, data, size); } Error 1 The name 'size' does not exist in the current context C:\Docs\Programming\BlindGeeks\BasicAudio\ChapterOne\BGLowLevelMCI\BGLowLevelMCI\Main.cs 28 33 BGLowLevelMCI Error 2 The name 'size' does not exist in the current context C:\Docs\Programming\BlindGeeks\BasicAudio\ChapterOne\BGLowLevelMCI\BGLowLevelMCI\Main.cs 32 30 BGLowLevelMCI Error 3 The name 'size' does not exist in the current context C:\Docs\Programming\BlindGeeks\BasicAudio\ChapterOne\BGLowLevelMCI\BGLowLevelMCI\Main.cs 34 33 BGLowLevelMCI Error 4 The name 'i' does not exist in the current context C:\Docs\Programming\BlindGeeks\BasicAudio\ChapterOne\BGLowLevelMCI\BGLowLevelMCI\Main.cs 46 23 BGLowLevelMCI Error 5 The name 'data' does not exist in the current context C:\Docs\Programming\BlindGeeks\BasicAudio\ChapterOne\BGLowLevelMCI\BGLowLevelMCI\Main.cs 48 63 BGLowLevelMCI Error 6 The name 'size' does not exist in the current context C:\Docs\Programming\BlindGeeks\BasicAudio\ChapterOne\BGLowLevelMCI\BGLowLevelMCI\Main.cs 48 69 BGLowLevelMCI ps: how to fix this. any help would be appreciative. tried rewriting this function three times. and it is to load the wav file. what the application is it opens a open dialog box, and then you open the wav and it plays. then you have a menu and buttons to control, stop. pause, and play.