project: music plugin

This commit is contained in:
Owain van Brakel
2019-10-30 05:46:45 +01:00
parent ad68bc0d1f
commit b3991f219d
17 changed files with 97 additions and 30 deletions

View File

@@ -449,6 +449,9 @@ public interface RSClient extends RSGameShell, Client
@Import("SpriteBuffer_spritePalette")
void setIndexedSpritePalette(int[] indexedSpritePalette);
@Import("archive6")
RSAbstractArchive getMusicTracks();
@Import("archive8")
@Override
RSAbstractArchive getIndexSprites();
@@ -1047,8 +1050,7 @@ public interface RSClient extends RSGameShell, Client
int getMusicVolume();
@Import("musicVolume")
@Override
void setMusicVolume(int volume);
void setClientMusicVolume(int volume);
@Import("areaSoundEffectVolume")
@Override
@@ -1066,9 +1068,21 @@ public interface RSClient extends RSGameShell, Client
@Override
void setSoundEffectVolume(int volume);
@Import("musicTrackVolume")
void setMusicTrackVolume(int volume);
@Import("viewportWalking")
void setViewportWalking(boolean viewportWalking);
@Import("playMusicTrack")
void playMusicTrack(RSAbstractArchive var0, int var1, int var2, int var3, boolean var4);
@Import("midiPcmStream")
RSMidiPcmStream getMidiPcmStream();
@Import("currentTrackGroupId")
int getcurrentTrackGroupId();
@Import("crossSprites")
@Override
RSSprite[] getCrossSprites();

View File

@@ -0,0 +1,33 @@
/*
* Copyright (c) 2018, trimbe <github.com/trimbe>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.runelite.rs.api;
import net.runelite.mapping.Import;
public interface RSMidiPcmStream
{
@Import("setPcmStreamVolume")
void setPcmStreamVolume(int volume);
}