Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Urgen] Audio input from SequenceGrabber



Hi,

I am new to QT for Java. For my learning of QT, I try to write a very
simple program to play the voice recorded by the microphone directly.
Unfortunately, I think I don't have enough knowledge, can someone pls
give me some hint what have i done wrong so that i can learn from
mistake.

<-------------------------------------------------------------------------------------------------------->
QTSession.open();
SequenceGrabber audioGrabber = new SequenceGrabber();
SGSoundChannel audioChannel = new SGSoundChannel(audioGrabber);
			
audioGrabber.prepare(true, true);
			
// Create Movie object
audioPlayer = Movie.fromSequenceGrabber(audioGrabber);
audioPlayer.setActive(true);
						
MovieController controller = new MovieController(audioPlayer);
Component cmp = QTFactory.makeQTComponent(controller).asComponent();
add(cmp, BorderLayout.SOUTH); 
<-------------------------------------------------------------------------------------------------------->

Please help me, I am stuck for 2 days now. >.<

Best Regards
Ferdinand Ng
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.