Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Steve1_rm

@Steve1_rm
About
Posts
6
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • creating a circular array
    S Steve1_rm

    Hello, VS 2008 I am filling the buffer with the read method in the code below, using SlimDX to capture the audio input from the microphone. The problem I have is that the buffer will overrun. It there anyway to create a circuler buffer that once it gets to the the end it will start over again? Many thanks for any suggestions,

    private void bgwAudioInput_DoWork(object sender, DoWorkEventArgs e)
    {
    Int16[] samples = new Int16[8192 / sizeof(Int16)];
    Int16 audioValue = 0;
    int i = 0;
    captureBuff.Start(true);

            while (captureAudio)
            {
                if (!this.bgwAudioInput.CancellationPending)
                {
                    captureBuff.Read(samples, 0, true);
                    audioValue = Math.Abs(samples\[i++\]);
                    this.bgwAudioInput.ReportProgress(audioValue);
                }
            }
    

    }

    C# visual-studio data-structures help question

  • Testing audio input/ouput
    S Steve1_rm

    Hello, I want to test the audio input to make sure that the mic and speakers are working. I am thinking about using a progress bar to measure the audio input and the output with another progress bar. However, I am have looked at many tutorials, but I have never seen any samples of been able to do this. Does any one know of any tutorial for measuring the input and output audio? Many thanks,

    C# testing beta-testing tutorial question

  • Trying to show progress using DownloadDataAsync
    S Steve1_rm

    Hello, I am downloading from a http web server using IIS; Thanks,

    C# mobile visual-studio question announcement

  • Trying to show progress using DownloadDataAsync
    S Steve1_rm

    Hello, Thanks for the reply. According to this msdn. http://msdn.microsoft.com/en-us/library/system.net.webclient.downloadprogresschanged.aspx The DownloadDataAysnc does show progress. Not sure why mine doesn't. Many thanks for any other suggestions,

    C# mobile visual-studio question announcement

  • mciSendString cannot save wave file
    S Steve1_rm

    Hello, VS 2008 SP1 I have a created a small application that records and plays audio. However, my application needs to save the wave file to the application data directory on the users computer. The mciSendString takes a C style string as a parameter and has to be in 8.3 format. However, my problem is I can't get it to save. And what is strange is sometime it does and sometimes it doesn't. However, most of the time it failes. However, if I save directly to the C drive it works first time everything. I have used 3 different methods that I have coded below. The error number that I get when it fails is 286."The file was not saved. Make sure your system has sufficient disk space or has an intact network connection"

    \[DllImport("winmm.dll",CharSet=CharSet.Auto)\]
            private static extern uint mciSendString(\[MarshalAs(UnmanagedType.LPTStr)\] string command,
                                                     StringBuilder returnValue,
                                                     int returnLength,
                                                     IntPtr winHandle);
    
            \[DllImport("winmm.dll", CharSet = CharSet.Auto)\]
            private static extern int mciGetErrorString(uint errorCode, StringBuilder errorText, int errorTextSize);
    
    \[DllImport("Kernel32.dll", CharSet=CharSet.Auto)\]
            private static extern int GetShortPathName(\[MarshalAs(UnmanagedType.LPTStr)\] string longPath,
                                                       \[MarshalAs(UnmanagedType.LPTStr)\] StringBuilder shortPath,
                                                        int length);
    
     // Stop recording
            private void StopRecording()
            {
                // Save recorded voice
                string shortPath = this.shortPathName();
                string formatShortPath = string.Format("save recsound \\"{0}\\"", shortPath);
                uint result = 0;
                StringBuilder errorTest = new StringBuilder(256);
                
                // C:\\DOCUME~1\\Steve\\APPLIC~1\\Test.wav
                // Fails
                result = mciSendString(string.Format("{0}", formatShortPath), null, 0, IntPtr.Zero);
                mciGetErrorString(result, errorTest, errorTest.Length);
    
                // command line convention - fails
                result = mciSendString("save recsound \\"C:\\\\DOCUME~1\\\\Steve\\\\APPLIC~1\\\\Test.wav\\"", null, 0, IntPtr.Zero);
                mciGetErrorString(result, errorTest, errorTest.Le
    
    C# help visual-studio sysadmin question

  • inserting images into access database
    S Steve1_rm

    Hello I am creating a database which will be used to display information and pictures for houses. I have done everything but be able to insert the pictures and retrieve them from the database. This is the code l am using to make the connection with the database //Example Connection m_cnADONetConnection.ConnectionString = @"Provider=Microsoft.jet.OLEDB.4.0;data source=C:\Houses"; m_daDataAdapter = new OleDbDataAdapter("Select * From Houses",m_cnADONetConnection); OleDbCommandBuilder m_cbCommandBuilder = new OleDbCommandBuilder(m_daAdapter); m_daDataAdapeter.Fill(m_dtContacts); //This is what i am using to retrieve from the database, not sure how to do this for a image control. txtHouseID.text = Rows[rowPosition]["HouseID"].ToString(); To select the picture l want to add to the database, l am using a open dialog box, which works, but l can't add it to the database. Many thanks in advance Steve

    C# tutorial database
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups