carb/audio/AudioUtils.h¶
↰ Parent directory: carb/audio/
Inline utility functions for audio processing.
Source: carb/audio/AudioUtils.h
Included By¶
carb/audio/AudioStreamerUtils.h: Helper classes for streaming data from carb::audio::IAudioPlayback.
Namespaces¶
carb: The main Carbonite namespace.
carb::audio: Audio playback and capture.
Functions¶
carb::audio::alignBytesToFrameCeil: aligns a byte count to a frame boundary for an audio data format.
carb::audio::alignBytesToFrameCeil: aligns a byte count to a frame boundary for an audio data format.
carb::audio::alignBytesToFrameCeil: aligns a byte count to a frame boundary for an audio data format.
carb::audio::alignBytesToFrameFloor: aligns a byte count to a frame boundary for an audio data format.
carb::audio::alignBytesToFrameFloor: aligns a byte count to a frame boundary for an audio data format.
carb::audio::alignBytesToFrameFloor: aligns a byte count to a frame boundary for an audio data format.
carb::audio::bitsPerSampleToIntegerPcmSampleFormat: converts a bits per sample count to an integer PCM sample format.
carb::audio::bytesToFrames: converts a byte count to a frame count.
carb::audio::bytesToFrames: converts a byte count to a frame count.
carb::audio::bytesToFrames: converts a byte count to a frame count.
carb::audio::bytesToMicroseconds: converts a byte count to an approximate time in microseconds.
carb::audio::bytesToMicroseconds: converts a byte count to an approximate time in microseconds.
carb::audio::bytesToMicroseconds: converts a byte count to an approximate time in microseconds.
carb::audio::bytesToMilliseconds: converts a byte count to an approximate time in milliseconds.
carb::audio::bytesToMilliseconds: converts a byte count to an approximate time in milliseconds.
carb::audio::bytesToMilliseconds: converts a byte count to an approximate time in milliseconds.
carb::audio::calculateGainFromLinearScale: Calculate a decibel gain value from a linear volume scale.
carb::audio::calculateLinearScaleFromGain: Calculate the linear volume scale from a decibel gain level.
carb::audio::calculateOpusGain: Calculate the gain parameter for an Opus encoder from a floating point gain.
carb::audio::convertSoundFormat: Convert a sound to a new sample format.
carb::audio::convertToFlac: Convert a sound to FLAC.
carb::audio::convertToVorbis: Convert a sound to Vorbis.
carb::audio::convertUnits: converts an input value from one unit to another.
carb::audio::createEmptySound: Create an empty carb::audio::SoundData of a specific length.
carb::audio::createSoundFromBlob: create a sound data object from a blob in memory.
carb::audio::createSoundFromFile: create a sound data object from a file on disk.
carb::audio::createSoundFromRawPcmBlob: Creates a sound data object from a blob of memory.
carb::audio::decrementWithWrap: Decrement a counter with a non-power-of-2 modulo.
carb::audio::degreesToRadians: converts an angle in degrees to an angle in radians.
carb::audio::degreesToRadians: converts an angle in degrees to an angle in radians.
carb::audio::estimateVideoLatency: Calculates an estimate of the current level of video latency.
carb::audio::framesToBytes: converts a frame count to a byte offset.
carb::audio::framesToBytes: converts a frame count to a byte offset.
carb::audio::framesToBytes: converts a frame count to a byte offset.
carb::audio::framesToMicroseconds: converts a frame count at a given frame rate to a time in microseconds.
carb::audio::framesToMicroseconds: converts a frame count at a given frame rate to a time in microseconds.
carb::audio::framesToMilliseconds: converts a frame count at a given frame rate to a time in milliseconds.
carb::audio::framesToMilliseconds: converts a frame count at a given frame rate to a time in milliseconds.
carb::audio::generateSoundFormat: Generates a carb::audio::SoundFormat based on the 4 parameters given.
carb::audio::getConeDefaults: fills a cone descriptor with the default cone values.
carb::audio::getPlaySoundDescDefaults: Initialize a carb::audio::PlaySoundDesc to its defaults.
carb::audio::getRolloffDefaults: fills a rolloff descriptor with the default rolloff values.
carb::audio::getSetBitCount: counts the number of set bits in a bit flag set.
carb::audio::getSoundDataLoadDescDefaults: Initialize a carb::audio::SoundDataLoadDesc to its defaults.
carb::audio::getSpeakerCountForMode: Retrieves the total number of speakers for a given speaker mode.
carb::audio::getSpeakerFlagsForCount: calculates a set of speaker flags for a channel count.
carb::audio::getSpeakerFromSpeakerFlag: retrieves a speaker name from a single speaker mode flag.
carb::audio::getSpeakerFromSpeakerMode: retrieves an indexed speaker name from a speaker mode mask.
carb::audio::getSpeakerModeForCount: retrieves a default speaker mode for a given channel count.
carb::audio::incrementWithWrap: Increment a counter with a non-power-of-2 modulo.
carb::audio::microsecondsToBytes: converts a time in microseconds to a byte count.
carb::audio::microsecondsToBytes: converts a time in microseconds to a byte count.
carb::audio::microsecondsToBytes: converts a time in microseconds to a byte count.
carb::audio::microsecondsToFrames: converts a time in microseconds to a frame count.
carb::audio::microsecondsToFrames: converts a time in microseconds to a frame count.
carb::audio::millisecondsToBytes: converts a time in milliseconds to a byte count.
carb::audio::millisecondsToBytes: converts a time in milliseconds to a byte count.
carb::audio::millisecondsToBytes: converts a time in milliseconds to a byte count.
carb::audio::millisecondsToFrames: converts a time in milliseconds to a frame count.
carb::audio::millisecondsToFrames: converts a time in milliseconds to a frame count.
carb::audio::muteVoice: Mute a voice.
carb::audio::pauseVoice: Pause a voice.
carb::audio::playLoopingSound: Play a sound sound that loops.
carb::audio::playOneShotSound: Play a sound with no special parameters.
carb::audio::radiansToDegrees: converts an angle in radians to an angle in degrees.
carb::audio::radiansToDegrees: converts an angle in radians to an angle in degrees.
carb::audio::sampleFormatToBitsPerSample: retrieves the number of bits per channel for a given sample format.
carb::audio::saveSoundToDisk: Save a sound to disk.
carb::audio::saveToDiskAsFlac: Convert a sound to FLAC.
carb::audio::saveToDiskAsOpus: Convert a sound to Opus.
carb::audio::saveToDiskAsVorbis: Save a sound to disk as Vorbis.
carb::audio::setVoiceFrequencyRatio: Set the frequencyRatio of a voice.
carb::audio::setVoiceMatrix: Set the matrix of a voice.
carb::audio::setVoiceVolume: Set the volume of a voice.
carb::audio::unmuteVoice: Unmute a voice.
carb::audio::unpauseVoice: Unpause a voice.