Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java Sound & OpenAL / Re: Visualising sound on: 2005-12-07 10:41:14
Thanks erikd.

I'm a little troubled by not being able to find anything similar that anyone else has done - it seems like such an obvious thing to do that its absence makes me wonder if there's some good reason why it won't work right...!
2  Java Game APIs & Engines / Java Sound & OpenAL / Visualising sound on: 2005-12-05 18:17:39
Hello,

 Does anyone have any experience with visualising sounds based on microphone input (or CDs, or whatever), preferably in an applet? I'm just trying to figure out where to start, really. It doesn't need to do anything complicated in terms of analysing the signal, I mostly just want to grab bits of the waveform and use them to make a display. I might also want to do something with the overall volume of the incoming sound.

 I thought I'd surely be able to find some sample code somewhere to get an idea how it can work, but I can't seem to find anything remotely similar! This may be because I'm being dense, I just don't know.

 Anyway - any thoughts or helpful links would be much appreciated - I'm okay for general-purpose documentation of Java Sound, I just have nothing about using sound to make anything besides more sound!

 Is Java Sound pretty much my only option for this, without expecting my visitors to download a plugin? I will soon be wanting to output sound, as well, if that makes a difference.

Cheers

 - f.
3  Java Game APIs & Engines / Java 2D / Re: avoid clearing the screen in JComponent on: 2005-12-03 11:53:42
I should have specified that I only get this weird behaviour for the settings where super.paintComponent doesn't get called - that is, it's fine except for the 'with trails' settings (in the 'history' menu). Does it still seem okay on the Mac?

I am realising that Swing implementations are not quite as consistent as I had been led to believe, in any case... :/
4  Java Game APIs & Engines / Java 2D / Re: avoid clearing the screen in JComponent on: 2005-11-30 23:13:06
Harrum... well, I did some more re-reading, and thought maybe overriding the
1  
update
method so that it does nothing but call
1  
paint
would help... and it kinda does, except that I now get any Swing component I interact with drawn in the top left-hand corner of the drawing area.

What?!

Here's a link to the weirdly broken version of the applet , so you can see what I'm talking about. The GUI is supposed to be in a separate JPanel from the drawing, in the east border of the main contentPane...
5  Java Game APIs & Engines / Java 2D / Re: avoid clearing the screen in JComponent on: 2005-11-30 14:51:11
Thanks - I think I read the tutorial you're talking about, which is probably one of the places I got the idea that overriding paintComponent without super.paintComponent in it ought to do the trick - it suggests calling the super version to clear the component, but in practice it still seems to get cleared even when you don't. I was surprised that setDoubleBuffered(false) doesn't seem to help either. :-/

I'll try re-reading the java docs for that, anyway, maybe I missed something... cheers!
6  Java Game APIs & Engines / Java 2D / Re: avoid clearing the screen in JComponent on: 2005-11-30 10:40:01
Before I go ahead and implement this - is there really no way to convince Java to just not clear my JPanel? I used to use that strategy to avoid significant amounts of processor use when double-buffering really wasn't necessary and I wanted to leave trails. Granted, not so many people have processors slow enough for it make an enormous difference these days, but still...

(I thought from what I'd read that simply not calling super.paintComponent() from my paintComponent() method would do it, but no, and neither does turning double-buffering off...   Undecided )
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (28 views)
2014-04-15 18:08:23

BurntPizza (25 views)
2014-04-15 03:46:01

UprightPath (40 views)
2014-04-14 17:39:50

UprightPath (22 views)
2014-04-14 17:35:47

Porlus (38 views)
2014-04-14 15:48:38

tom_mai78101 (62 views)
2014-04-10 04:04:31

BurntPizza (121 views)
2014-04-08 23:06:04

tom_mai78101 (221 views)
2014-04-05 13:34:39

trollwarrior1 (188 views)
2014-04-04 12:06:45

CJLetsGame (195 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org 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‑gaming.org
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!