Example #1
0
    //public void SaveFile(AudioClip clip)
    //{

    //    print("SAVING");

    //    uiManager.StartSave();



    //    string wavFile = SaveWav.Save("recording.wav", clip);

    //    mp3Bytes = null;

    //    FindObjectOfType<NetworkingHandler>().SendFileToConvert(wavFile);

    //    checkIfConversionDone = true;


    //}

    //public void UploadAudioFile()
    //{
    //    string name = ConstructName() + ".mp3";

    //    FindObjectOfType<NetworkingHandler>().SendAudioFileToServer(mp3Bytes, name);

    //    uiManager.StartUpload();
    //    print("UPLOAD AWAY! >>>>>>>>>>>>>>>>>>>>>>>");

    //}

    public string ConstructName()
    {
        Vector3 localLocation = myLocation.GetLocalLocation();
        string  name          = NameUtility.CreateNameFromCoord(localLocation, DateTime.UtcNow.ToLongTimeString());

        return(name);
    }