#include <audiooutpututil.h>
Static Public Member Functions | |
| static bool | has_hardware_fpu () |
| Returns true if platform has an FPU. | |
| static int | toFloat (AudioFormat format, void *out, void *in, int bytes) |
| Convert integer samples to floats. | |
| static int | fromFloat (AudioFormat format, void *out, void *in, int bytes) |
| Convert float samples to integers. | |
| static void | MonoToStereo (void *dst, void *src, int samples) |
| Convert a mono stream to stereo by copying and interleaving samples. | |
| static void | AdjustVolume (void *buffer, int len, int volume, bool music, bool upmix) |
| Adjust the volume of samples. | |
| static void | MuteChannel (int obits, int channels, int ch, void *buffer, int bytes) |
| Mute individual channels through mono->stereo duplication. | |
| static char * | GeneratePinkFrames (char *frames, int channels, int channel, int count, int bits=16) |
Definition at line 9 of file audiooutpututil.h.
| bool AudioOutputUtil::has_hardware_fpu | ( | ) | [static] |
Returns true if platform has an FPU.
for the time being, this test is limited to testing if SSE2 is supported
Definition at line 468 of file audiooutpututil.cpp.
Referenced by AvFormatDecoder::DecoderWillDownmix().
| int AudioOutputUtil::toFloat | ( | AudioFormat | format, | |
| void * | out, | |||
| void * | in, | |||
| int | bytes | |||
| ) | [static] |
Convert integer samples to floats.
Consumes 'bytes' bytes from in and returns the numer of bytes written to out
Definition at line 482 of file audiooutpututil.cpp.
Referenced by AudioOutputBase::AddData().
| int AudioOutputUtil::fromFloat | ( | AudioFormat | format, | |
| void * | out, | |||
| void * | in, | |||
| int | bytes | |||
| ) | [static] |
Convert float samples to integers.
Consumes 'bytes' bytes from in and returns the numer of bytes written to out
Definition at line 511 of file audiooutpututil.cpp.
Referenced by AudioOutputDigitalEncoder::Encode(), and AudioOutputBase::GetAudioData().
| void AudioOutputUtil::MonoToStereo | ( | void * | dst, | |
| void * | src, | |||
| int | samples | |||
| ) | [static] |
Convert a mono stream to stereo by copying and interleaving samples.
Definition at line 537 of file audiooutpututil.cpp.
Referenced by AudioOutputBase::CopyWithUpmix().
| void AudioOutputUtil::AdjustVolume | ( | void * | buf, | |
| int | len, | |||
| int | volume, | |||
| bool | music, | |||
| bool | upmix | |||
| ) | [static] |
Adjust the volume of samples.
Makes a crude attempt to normalise the relative volumes of PCM from mythmusic, PCM from video and upmixed AC-3
Definition at line 554 of file audiooutpututil.cpp.
Referenced by AudioOutputBase::AddData().
| void AudioOutputUtil::MuteChannel | ( | int | obits, | |
| int | channels, | |||
| int | ch, | |||
| void * | buffer, | |||
| int | bytes | |||
| ) | [static] |
Mute individual channels through mono->stereo duplication.
Mute given channel (left or right) by copying right or left channel over.
Definition at line 631 of file audiooutpututil.cpp.
Referenced by AudioOutputBase::GetAudioData().
| char * AudioOutputUtil::GeneratePinkFrames | ( | char * | frames, | |
| int | channels, | |||
| int | channel, | |||
| int | count, | |||
| int | bits = 16 | |||
| ) | [static] |
Definition at line 652 of file audiooutpututil.cpp.
Referenced by AudioTestThread::run().
1.6.3