Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.audiotoolbox;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.corefoundation.*;
import com.bugvm.apple.audiounit.*;
import com.bugvm.apple.coreaudio.*;
import com.bugvm.apple.coremidi.*;
/**/
/**/
/**/
/**/@Marshaler(ValuedEnum.AsMachineSizedUIntMarshaler.class) @Library("AudioToolbox")/**/
public enum /**/AudioFormatProperty/**/ implements ValuedEnum {
/**/
FormatInfo(1718449257L),
FormatName(1718509933L),
EncodeFormatIDs(1633906534L),
DecodeFormatIDs(1633904998L),
FormatList(1718383476L),
ASBDFromESDS(1702064996L),
ChannelLayoutFromESDS(1702060908L),
OutputFormatList(1868983411L),
FirstPlayableFormatFromList(1718642284L),
FormatIsVBR(1719034482L),
FormatIsExternallyFramed(1717925990L),
FormatIsEncrypted(1668446576L),
Encoders(1635149166L),
Decoders(1635148901L),
AvailableEncodeBitRates(1634034290L),
AvailableEncodeSampleRates(1634038642L),
AvailableEncodeChannelLayoutTags(1634034540L),
AvailableEncodeNumberChannels(1635151459L),
ASBDFromMPEGPacket(1633971568L),
BitmapForLayoutTag(1651340391L),
MatrixMixMap(1835884912L),
ChannelMap(1667788144L),
NumberOfChannelsForLayout(1852008557L),
AreChannelLayoutsEquivalent(1667786097L),
ChannelLayoutHash(1667786849L),
ValidateChannelLayout(1986093932L),
ChannelLayoutForTag(1668116588L),
TagForChannelLayout(1668116596L),
ChannelLayoutName(1819242093L),
ChannelLayoutSimpleName(1819504237L),
ChannelLayoutForBitmap(1668116578L),
ChannelName(1668178285L),
ChannelShortName(1668509293L),
TagsForNumberOfChannels(1952540515L),
PanningMatrix(1885433453L),
BalanceFade(1650551910L),
ID3TagSize(1768174451L),
ID3TagToDictionary(1768174436L);
/**/
/**/static { Bro.bind(AudioFormatProperty.class); }/**/
/**//**/
/**
* @throws OSStatusException
* @since Available in iOS 2.0 and later.
*/
public int getPropertySize(Struct> specifier) throws OSStatusException {
IntPtr ptr = new IntPtr();
OSStatus status = getPropertyInfo0(this, specifier == null ? 0 : Struct.sizeOf(specifier), specifier == null ? null : specifier.as(VoidPtr.class), ptr);
OSStatusException.throwIfNecessary(status);
return ptr.get();
}
/**
* @throws OSStatusException
* @since Available in iOS 2.0 and later.
*/
public > T getProperty(Struct> specifier, Class type) throws OSStatusException {
T data = Struct.allocate(type);
IntPtr dataSize = new IntPtr(Struct.sizeOf(data));
OSStatus status = getProperty0(this, specifier == null ? 0 : Struct.sizeOf(specifier), specifier == null ? null : specifier.as(VoidPtr.class), dataSize, data.as(VoidPtr.class));
OSStatusException.throwIfNecessary(status);
return data;
}
/**/
/**
* @since Available in iOS 2.0 and later.
*/
@Bridge(symbol="AudioFormatGetPropertyInfo", optional=true)
protected static native OSStatus getPropertyInfo0(AudioFormatProperty inPropertyID, int inSpecifierSize, VoidPtr inSpecifier, IntPtr outPropertyDataSize);
/**
* @since Available in iOS 2.0 and later.
*/
@Bridge(symbol="AudioFormatGetProperty", optional=true)
protected static native OSStatus getProperty0(AudioFormatProperty inPropertyID, int inSpecifierSize, VoidPtr inSpecifier, IntPtr ioPropertyDataSize, VoidPtr outPropertyData);
/**/
private final long n;
private /**/AudioFormatProperty/**/(long n) { this.n = n; }
public long value() { return n; }
public static /**/AudioFormatProperty/**/ valueOf(long n) {
for (/**/AudioFormatProperty/**/ v : values()) {
if (v.n == n) {
return v;
}
}
throw new IllegalArgumentException("No constant with value " + n + " found in "
+ /**/AudioFormatProperty/**/.class.getName());
}
}