diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2010-09-10 15:23:37 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2010-09-10 15:23:37 +0000 |
commit | d613851fa2aa6f19b1ab5c8d89f471398f0168c0 (patch) | |
tree | 3582f303f559fb3d611dfe8fb0f5eedc294b513e /src/net/java/sip/communicator/impl/neomedia/device/AudioMixerMediaDevice.java | |
parent | 21c58834fb806aacd5ad154f803ec2ef17a0923e (diff) | |
download | jitsi-d613851fa2aa6f19b1ab5c8d89f471398f0168c0.zip jitsi-d613851fa2aa6f19b1ab5c8d89f471398f0168c0.tar.gz jitsi-d613851fa2aa6f19b1ab5c8d89f471398f0168c0.tar.bz2 |
- Fixes call recording-related issues reported off-list by Emil Ivov.
- Adds javadocs, fixes warnings.
Diffstat (limited to 'src/net/java/sip/communicator/impl/neomedia/device/AudioMixerMediaDevice.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/neomedia/device/AudioMixerMediaDevice.java | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/net/java/sip/communicator/impl/neomedia/device/AudioMixerMediaDevice.java b/src/net/java/sip/communicator/impl/neomedia/device/AudioMixerMediaDevice.java index 307bab1..2d92cfa 100644 --- a/src/net/java/sip/communicator/impl/neomedia/device/AudioMixerMediaDevice.java +++ b/src/net/java/sip/communicator/impl/neomedia/device/AudioMixerMediaDevice.java @@ -206,83 +206,6 @@ public class AudioMixerMediaDevice } /** - * Create a new recording session. - * - * @param contentDescriptor the content descriptor for the session. - * @return a new <tt>MediaDeviceSession</tt> - */ - public synchronized MediaDeviceSession createRecordingSession( - final ContentDescriptor contentDescriptor) - { - if (deviceSession == null) - deviceSession = new AudioMixerMediaDeviceSession(); - - return new MediaStreamMediaDeviceSession(deviceSession) - { - /** - * Starts a specific <tt>Processor</tt> if this - * <tt>MediaDeviceSession</tt> has been started and the specified - * <tt>Processor</tt> is not started. Does not check the - * <tt>MediaDirection</tt> of this session when starting. - * - * @param processor the <tt>Processor</tt> to start - */ - @Override - protected void startProcessorInAccordWithDirection( - Processor processor) - { - if (processor.getState() != Processor.Started) - { - processor.start(); - if (logger.isTraceEnabled()) - { - logger.trace( - "Started Processor with hashCode " - + processor.hashCode()); - } - } - } - - /** - * Overrides the method to set the processor's content descriptor - * to <tt>FileTypeDescriptor.MPEG_AUDIO</tt>. - * - * @param event the <tt>ControllerEvent</tt> specifying the - * <tt>Controller</tt> which is the source of the event and the very - * type of the event - */ - @Override - protected void processorControllerUpdate(ControllerEvent event) - { - super.processorControllerUpdate(event); - - if (event instanceof ConfigureCompleteEvent) - { - Processor processor = (Processor) event. - getSourceController(); - - if (processor != null) - { - try - { - processor.setContentDescriptor(contentDescriptor); - } - catch (NotConfiguredError nce) - { - logger.error( - "Failed to set ContentDescriptor to Processor.", - nce); - } - - if (format != null) - setProcessorFormat(processor, format); - } - } - } - }; - } - - /** * Notifies all currently registered <tt>SimpleAudioLevelListener</tt>s * that our local media now has audio level <tt>level</tt>. * |