Class ClientTests.SineStream
java.lang.Object
net.neoforged.neoforge.debug.client.ClientTests.SineStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AudioStream
- Enclosing class:
ClientTests
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double
private static final AudioFormat
private static double
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FORMAT
-
DT
private static final double DT- See Also:
-
value
private static double value
-
-
Constructor Details
-
SineStream
private SineStream()
-
-
Method Details
-
getFormat
- Specified by:
getFormat
in interfaceAudioStream
-
read
Description copied from interface:AudioStream
Reads audio data from the stream and returns a byte buffer containing at most the specified number of bytes. The method reads audio frames from the stream and adds them to the output buffer until the buffer contains at least the specified number of bytes or the end fo the stream is reached.- Specified by:
read
in interfaceAudioStream
- Parameters:
capacity
- the maximum number of bytes to read- Returns:
- a byte buffer containing at most the specified number of bytes to read
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-