< prev index next >

src/java.desktop/share/classes/com/sun/media/sound/AbstractMidiDevice.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 63,83 **** private final MidiDevice.Info info; // DEVICE STATE ! private boolean open = false; private int openRefCount; /** List of Receivers and Transmitters that opened the device implicitely. */ private List<Object> openKeepingObjects; /** * This is the device handle returned from native code */ ! protected long id = 0; // CONSTRUCTOR --- 63,83 ---- private final MidiDevice.Info info; // DEVICE STATE ! private volatile boolean open; private int openRefCount; /** List of Receivers and Transmitters that opened the device implicitely. */ private List<Object> openKeepingObjects; /** * This is the device handle returned from native code */ ! protected volatile long id; // CONSTRUCTOR
*** 477,487 **** contains magic necessary to manage implicit closing the device. This is necessary for Receivers retrieved via MidiSystem.getReceiver() (which opens the device implicitely). */ abstract class AbstractReceiver implements MidiDeviceReceiver { ! private boolean open = true; /** Deliver a MidiMessage. This method contains magic related to the closed state of a Receiver. Therefore, subclasses should not override this method. --- 477,487 ---- contains magic necessary to manage implicit closing the device. This is necessary for Receivers retrieved via MidiSystem.getReceiver() (which opens the device implicitely). */ abstract class AbstractReceiver implements MidiDeviceReceiver { ! private volatile boolean open = true; /** Deliver a MidiMessage. This method contains magic related to the closed state of a Receiver. Therefore, subclasses should not override this method.
< prev index next >