setStringChannel() public method

public setStringChannel ( string channel, string val ) : void
channel string
val string
return void
Esempio n. 1
0
    void checkForString()
    {
        switch (checkTestString)
        {
        case 0:
            songToPlayLeft = "Symphony.ogg";
            break;

        case 1:
            songToPlayLeft = "Everyday.ogg";
            break;

        case 2:
            songToPlayLeft = "Calvin.ogg";
            break;

        case 3:
            songToPlayLeft = "Test.ogg";
            break;

        case 4:
            songToPlayLeft = "Yellow.ogg";
            break;

        case 5:
            songToPlayLeft = "TestPitch.ogg";
            break;

        case 6:
            songToPlayLeft = "testingPitch.wav";
            break;

        case 7:
            songToPlayLeft = "testingPitch.ogg";
            break;

        case 8:
            songToPlayLeft = "Enigma.ogg";
            break;

        case 9:
            songToPlayLeft = "LR.ogg";
            break;

        default:
            print("pls select a song");
            break;
        }
        csoundunity.setStringChannel("SongPlay", songToPlayLeft);
    }
Esempio n. 2
0
    void checkForString()
    {
        switch (checkTestString)
        {
        case 0:
            songToPlayLeft = "Symphony.ogg";
            break;

        case 1:
            songToPlayLeft = "Everyday.ogg";
            break;

        case 2:
            songToPlayLeft = "Calvin.ogg";
            break;

        case 3:
            songToPlayLeft = "Test.ogg";
            break;

        case 4:
            songToPlayLeft = "Yellow.ogg";
            break;

        case 5:
            songToPlayLeft = "TestPitch.ogg";
            break;

        case 6:
            songToPlayLeft = "testingPitch.wav";
            break;

        case 7:
            songToPlayLeft = "testingPitch.ogg";
            break;

        case 8:
            songToPlayLeft = "Enigma.ogg";
            break;

        case 9:
            songToPlayLeft = "L_R_Mono.wav";
            break;

        default:
            print("pls select a song");
            break;
        }
        audioPaths = Application.dataPath + "/Resources" + "/Audio/" + songToPlayLeft; //Duplicated
        print(audioPaths);
        csoundunity.setStringChannel("SongPlay", audioPaths);                          //Duplicated
        //csoundunity.setStringChannel ("SongPlay", songToPlayLeft);
    }