RFR: 8356049: Need a simple way to play back a sound clip [v5]
Sergey Bylokhov
serb at openjdk.org
Fri May 16 21:05:58 UTC 2025
On Tue, 13 May 2025 21:00:20 GMT, Phil Race <prr at openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/sound/SoundClip.java line 78:
>>
>>> 76: * of this class is a no-op.
>>> 77: */
>>> 78: public synchronized boolean canPlay() {
>>
>> Should we perhaps document the multithreaded use of Clip? Do we really need all these synchronized keywords in the file?
>
> The API calls are best protected this way just like the ones in AudioClip were. There's no advantage in removing them. I don't think there's anything to document.
Hmm I did not see all this responses for yesterday...
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24991#discussion_r2093674887
More information about the client-libs-dev
mailing list