#How do I get raw PCM data rather than play audio directly

1 messages · Page 1 of 1 (latest)

uncut sedge
#

Sorry if am asking the wrong people, I've been looking at the same old code for 3 weeks now and I cannot figure out anything and this is literally the only place I've been able to find to ask for help ;-;

Am currently trying to use this library for a Minecraft mod but issues arise for people on Pojavlauncher as the library uses libjsound to play the sound itself, which the custom JRE made for the Pojavlauncher project does not and will not implement.

I am now attempting to find out how to get raw PCM data using this lib and play it with OpenAL instead.

I cannot find where or what is responsible for actually playing the sound/providing PCM data so here I am

uncut sedge
lunar junco
#

well it does start the audio

#

but thats not what returns the pcm

uncut sedge
#

i thought when that was called it does everything automagically in the library

so what is L58-59 doing with stream.read(buffer)?

lunar junco
#

well no
lavaplayer just returns pcm/opus

#

it has no means of proving actual playback

uncut sedge
#

what

what is playTrack for then

lunar junco
#

it starts fetching the track from the source & transcoding it if required

#

ready for you to grab the audio

uncut sedge
#

so the demo grabs the pcm audio and puts into into javas AudioSystem which plays the audio?

#

oh my god

#

its so much more simpler than whatever the fuck I was doing thank you