17#ifndef OBOE_UTILITIES_H
18#define OBOE_UTILITIES_H
23#include "oboe/Definitions.h"
34void convertFloatToPcm16(
const float *source, int16_t *destination, int32_t numSamples);
43void convertPcm16ToFloat(
const int16_t *source,
float *destination, int32_t numSamples);
48int32_t convertFormatToSizeInBytes(AudioFormat format);
59template <
typename FromType>
60const char * convertToText(FromType input);
66std::string getPropertyString(
const char * name);
73int getPropertyInteger(
const char * name,
int defaultValue);
93bool isAtLeastPreReleaseCodename(
const std::string& codename);
95int getChannelCountFromChannelMask(ChannelMask channelMask);