Skip to content

Commit

Permalink
8282463: javax/sound/sampled/Clip/DataPusherThreadCheck.java fails
Browse files Browse the repository at this point in the history
Reviewed-by: prr, serb
  • Loading branch information
Andrey Turbanov committed Oct 30, 2022
1 parent f3ca0ca commit 2e71637
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/jdk/javax/sound/sampled/Clip/DataPusherThreadCheck.java
Expand Up @@ -28,6 +28,8 @@
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;
import java.applet.AudioClip;
import java.io.ByteArrayInputStream;
import java.io.File;
Expand All @@ -49,6 +51,10 @@ public static void main(String[] args) throws Exception {
try {
AudioFormat format =
new AudioFormat(PCM_SIGNED, 44100, 8, 1, 1, 44100, false);
DataLine.Info info = new DataLine.Info(Clip.class, format);
if (!(AudioSystem.isLineSupported(info)) ) {
return; // the test is not applicable
}
int dataSize = 6000*1000 * format.getFrameSize();
InputStream in = new ByteArrayInputStream(new byte[dataSize]);
AudioInputStream audioStream = new AudioInputStream(in, format, NOT_SPECIFIED);
Expand Down

3 comments on commit 2e71637

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aivanov-jdk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk19u

@openjdk
Copy link

@openjdk openjdk bot commented on 2e71637 Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aivanov-jdk the backport was successfully created on the branch aivanov-jdk-backport-2e716375 in my personal fork of openjdk/jdk19u. To create a pull request with this backport targeting openjdk/jdk19u:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 2e716375 from the openjdk/jdk repository.

The commit being backported was authored by Andrey Turbanov on 30 Oct 2022 and was reviewed by Phil Race and Sergey Bylokhov.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk19u:

$ git fetch https://github.com/openjdk-bots/jdk19u aivanov-jdk-backport-2e716375:aivanov-jdk-backport-2e716375
$ git checkout aivanov-jdk-backport-2e716375
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk19u aivanov-jdk-backport-2e716375

Please sign in to comment.