Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - CreativeMD

Pages: [1]
1
Other Support / SoundEngine loop stream sound
« on: May 02, 2017, 04:50:20 PM »
Hey,
I'm having issues to loop a streaming source using the sound engine. I'm currently programming a mod for minecraft. Somehow the sound will not be repeat, but instead end after playing once. I'm not sure if that's an issue from minecraft or a bug of the sound engine. I tried to find out the cause of it, but unfortunately couldn't find anything.
So maybe you can help out?

In Regards
CreativeMD

2
Other Support / Using audio streams causes lags
« on: July 17, 2015, 04:02:27 AM »
Hello,

yes it is minecraft related, but it's about the sound engine from paulscode. I want to play audio file which are about 1-3 min long. If i'm using streams the FPS drops from 40 to 20 and this is unexpectable.
Maybe i'm doing something wrong? If i'm not using streams, the game will freeze until the sound has finished loading, so about 2-3 secs.

I would be very happy for any help :D

3
Other Support / Sound System - VoiceChat?
« on: June 30, 2014, 08:49:58 AM »
Hello :),
i'm working on a VoiceChat mod for minecraft. Everything is done so far, but i have problems to play the recorded sound :(. I can't use the java api for playing the sound because the write method of SourceDataLine blocks until everything is played. So now i'm trying to use the paulscode sound libary, but it's not working :(.
I tried almost every combination of:
Code: [Select]
system.rawDataStream(VoiceChat.format, true, name, 0, 0, 0, SoundSystemConfig.ATTENUATION_ROLLOFF, SoundSystemConfig.getDefaultRolloff());
system.feedRawAudioData(name, data);
system.play(name);
But it didn't work at well, sometimes i have the problem that the stream is kind of replayed :O and sometimes the sound is cut off.
So i would be very happy if someone can tell me how this fix this problem.

This is my current handler of the packet:
Code: [Select]
public void executeClient(EntityPlayer player)
{
    if(system == null)
    system = getSoundSystem();

    String name = this.player;
   
    if(!system.playing(name))
    {
    system.rawDataStream(VoiceChat.format, true, name, 0, 0, 0, SoundSystemConfig.ATTENUATION_ROLLOFF, SoundSystemConfig.getDefaultRolloff());
    system.feedRawAudioData(name, data);

    System.out.println("Playing sound");
    }else{
    system.feedRawAudioData(name, data);
    }
}

Pages: [1]