AudaciousTunes/Audacious/Wav.cs
/// <summary>
/// Overwrites the wave object from the sampleNum of a loaded wave file.
/// Appends data to the original.
/// </summary>
/// <param name="path">The path and filename.</param>
Overwrites the wave object from the sampleNum of a loaded wave file.
Appends data to the original.
Overwrites the wave object from the sampleNum of a loaded wave file . Appends data to the original .
private void Load(string path)
        {
            byte[] fileData;
            if (Path.GetExtension(path) == ".wav")
            {
                fileData = File.ReadAllBytes(path);
            }
            else
            {
                fileData = File.ReadAllBytes(path + ".wav");
            }
            Load(new MemoryStream(fileData, false));
        }
private void Load ( string path ) { byte [ ] fileData ; if ( Path . GetExtension ( path ) == " " ) { fileData = File . ReadAllBytes ( path ) ; } else { fileData = File . ReadAllBytes ( path + " " ) ; } Load ( new MemoryStream ( fileData , false ) ) ; }
Overwrites the wave object from the sampleNum of a loaded wave file.
Overwrites the wave object from the sampleNum of a loaded wave file .
//Reads all of the data into a byte array. //Loads the data from a constructed memory stream.
path
string
The path and filename.
The path and filename .