libgdx / gdx-video

A libGDX cross platform video rendering extension
Apache License 2.0
147 stars 50 forks source link

No such method in RawMusic on libgdx 1.13.0 #97

Open jetzack opened 3 days ago

jetzack commented 3 days ago
    public RawMusic (VideoDecoder decoder, ByteBuffer buffer, int channels, int sampleRate) {
        super((OpenALLwjgl3Audio)Gdx.audio, null);
        this.decoder = decoder;
        backBuffer = buffer;
        backBuffer.position(backBuffer.limit());
        setup(channels, sampleRate); // <- here we need additional param 
    }
SimonIT commented 1 day ago

You're absolutely right! Thanks for the report. I'm thinking about how to handle this, as I don't want to force everyone to use the latest libGDX version. Maybe we should do a release before the update?

Frosty-J commented 1 day ago

Hello, I'm the one who broke it. Didn't realise gdx-video relies on this. A release would be very much appreciated, since SNAPSHOT builds don't provide a solid foundation for developing a semi-serious game upon. Alternatively, I wouldn't be against adding an overload into libGDX if it makes life easier:

protected void setup (int channels, int sampleRate) {
    setup(channels, 16, sampleRate);
}