< prev index next >
src/java.desktop/share/classes/com/sun/media/sound/RealTimeSequencer.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -104,21 +104,21 @@
private final MidiUtils.TempoCache tempoCache = new MidiUtils.TempoCache();
/**
* True if the sequence is running.
*/
- private boolean running = false;
+ private volatile boolean running;
/** the thread for pushing out the MIDI messages */
private PlayThread playThread;
/**
* True if we are recording
*/
- private boolean recording = false;
+ private volatile boolean recording;
/**
* List of tracks to which we're recording
*/
< prev index next >