Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Problem in playing audio data...  (Read 2386 times)
0 Members and 1 Guest are viewing this topic.
Offline vinodpatel2006

Junior Devvie

« Posted 2007-09-15 05:17:44 »


       I am porting C++ sound application in to JAVA. I have a problem sound decoding in JAVA. The problem is that when i decode sound data in c++ and JAVA, both gives me different size buffer. The size of the JAVA buffer is almost HALF of C++. The sound quality is also different.

       Please give me siggestion what parameter might be affecting to decode sound in JAVA.

Thanks In Advance
Offline erikd

JGO Ninja

Medals: 16
Projects: 4
Exp: 14 years


« Reply #1 - Posted 2007-09-20 13:21:30 »

I'm not sure what you're after.
What do you mean by 'decoding sound'? Getting sound from an audio input or something (for example to analyze or process it)?

javax.sound.sampled.AudioFormat defines the format of the stream; i.e. quality, number of channels.
You can define the buffer size in javax.sound.sampled.DataLine.Info

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Archive (50 views)
2017-02-27 19:41:49

Riven (57 views)
2017-02-27 17:26:59

numerical (430 views)
2017-02-21 07:32:16

numerical (431 views)
2017-02-21 07:31:46

theagentd (545 views)
2017-02-18 13:42:33

theagentd (541 views)
2017-02-18 13:35:16

h.pernpeintner (1705 views)
2017-01-24 22:39:11

h.pernpeintner (1679 views)
2017-01-24 22:38:32

Galdo (2259 views)
2017-01-12 13:44:09

Archive (2181 views)
2017-01-02 05:31:41
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!