Esempio n. 1
0
    void ModifySound()
    {
        // These aren't necessary, but show how you could work with a loaded sound.

        AndroidNativeAudio.pause(SoundID);
        AndroidNativeAudio.resume(SoundID);
        AndroidNativeAudio.stop(SoundID);

        AndroidNativeAudio.pauseAll();
        AndroidNativeAudio.resumeAll();

        AndroidNativeAudio.setVolume(SoundID, 0.5f);
        AndroidNativeAudio.setLoop(SoundID, 3);
        AndroidNativeAudio.setPriority(SoundID, 5);
        AndroidNativeAudio.setRate(SoundID, 0.75f);
    }