Sign in to follow this  
rhinogamedev

[java] Audio Formats HELP!

Recommended Posts

Hello everybody, I have a problem with the Java AudioFormat class, can you help me please? The thing is Im working on a voice chat using the following audio format settings: AudioFormat(AudioFormat.Encoding.PCM_SIGNED, sampleRate, sampleSize, 1, 1, frameRate, false); Where: audioReadBytes = 1024; sampleRate = 8000.0F; frameRate = 8000.0F; sampleSize = 8; My problem is that these settings can cause incrementing voice delay and sometimes even block the application. It works fine on a LAN but on the internet it never works. I wanted to ask you if there’s a better audioformat setting that can decrease the size and quality of the sound, so it works on low bandwidths. I’m new to audio formats so I don’t understand them much and when I tried to change the settings by decreasing the sample rate I didn’t get what I expected. Please help me... Thanks a lot, Dan.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this