25#include <AudioToolbox/AudioToolbox.h>
26#include <CoreServices/CoreServices.h>
void ca_create_url_ref(JNIEnv *, jstring, CFURLRef &)
Returns true if an error occurred.
void throwUnsupportedAudioFileExceptionIfError(JNIEnv *, int, const char *)
Throws an UnsupportedAudioFileException exception.
void throwIOExceptionIfError(JNIEnv *, int, const char *)
Throws an IOException.
void throwFileNotFoundExceptionIfError(JNIEnv *, int, const char *)
Throws an IllegalArgumentException.
void throwIllegalArgumentExceptionIfError(JNIEnv *, int, const char *)
Throws an IllegalArgumentException.
Central context representing the native peer to the Java CACodecInputStream object.
jobject sourceStream
Source stream object (Java)
AudioConverterRef acref
The used AudioConverter.
CAAudioIO * sourceAudioIO
CAAudioIO of the stream that we want to convert.
Central context representing the native peer to the Java CAURLInputStream object.
Central context representing the native peer to the Java CANativePeerInputStream object.
JNIEnv * env
JNI environment.
SInt64 lastPos
Last position (in packets)
UInt32 numPacketsPerRead
Number of packets per read.
jobject javaInstance
Calling java object.
char * srcBuffer
Source buffer.
UInt32 frameOffset
Frame offset (needed for seeking to the middles of a packet)
UInt32 srcSizePerPacket
Source size per packet.
AudioStreamBasicDescription srcFormat
Source format.
UInt32 cookieSize
Cookie size.
SInt64 pos
Current position (in packets)
UInt32 srcBufferSize
Source buffer size.
AudioStreamPacketDescription * pktDescs
Packet descriptions.
Central context representing the native peer to the Java CAStreamInputStream object.
AudioFileStreamID asid
Stream id.