#include <SDL_audio.h>#include <SDL_timer.h>#include "Audio.h"#include "Configuration.h"#include "Flex.h"#include "conv.h"#include "exult.h"#include "fnames.h"#include "game.h"#include "utils.h"#include <csignal>#include <cstdio>#include <cstdlib>#include <cstring>#include <iostream>#include <fcntl.h>#include <unistd.h>#include <sys/stat.h>#include <sys/types.h>Include dependency graph for Audio.cc:

Go to the source code of this file.
Classes | |
| struct | Chunk |
| class | CubicInterpolator |
| class | SFX_cached |
Defines | |
| #define | TRAILING_VOC_SLOP 32 |
| #define | LEADING_VOC_SLOP 32 |
| #define | RANGE_REDUX(x) (((x) * 27) >> 5) |
| #define | RANGE_REDUX(x) (((x) * 27) >> 5) |
Functions | |
| static size_t | calc_sample_buffer (uint16 _samplerate) |
| static uint8 * | chunks_to_block (vector< Chunk > &chunks) |
| static sint16 * | resample_new (uint8 *sourcedata, size_t sourcelen, size_t &destlen, int current_rate, int wanted_rate) |
| static sint16 * | resample_new_mono (uint8 *sourcedata, size_t sourcelen, size_t &destlen, int current_rate, int wanted_rate) |
| static void | resample (uint8 *sourcedata, uint8 **destdata, size_t sourcelen, size_t *destlen, int current_rate, int wanted_rate) |
| static void | decode_ADPCM_4 (uint8 *inBuf, int bufSize, uint8 *outBuf, int &reference, int &scale) |
| int | decode_ADPCM_4_sample (uint8 sample, int &reference, int &scale) |
| #define LEADING_VOC_SLOP 32 |
| #define RANGE_REDUX | ( | x | ) | (((x) * 27) >> 5) |
| #define RANGE_REDUX | ( | x | ) | (((x) * 27) >> 5) |
Referenced by resample_new(), and resample_new_mono().
| #define TRAILING_VOC_SLOP 32 |
| static size_t calc_sample_buffer | ( | uint16 | _samplerate | ) | [static] |
| static void decode_ADPCM_4 | ( | uint8 * | inBuf, | |
| int | bufSize, | |||
| uint8 * | outBuf, | |||
| int & | reference, | |||
| int & | scale | |||
| ) | [static] |
Definition at line 1208 of file Audio.cc.
References decode_ADPCM_4_sample().
Referenced by Audio::convert_VOC().
Here is the call graph for this function:

| int decode_ADPCM_4_sample | ( | uint8 | sample, | |
| int & | reference, | |||
| int & | scale | |||
| ) | [inline] |
| static sint16 * resample_new | ( | uint8 * | sourcedata, | |
| size_t | sourcelen, | |||
| size_t & | destlen, | |||
| int | current_rate, | |||
| int | wanted_rate | |||
| ) | [static] |
Definition at line 567 of file Audio.cc.
References CubicInterpolator::feedData(), CubicInterpolator::interpolate(), and RANGE_REDUX.
Referenced by Audio::convert_VOC().
Here is the call graph for this function:

| static sint16 * resample_new_mono | ( | uint8 * | sourcedata, | |
| size_t | sourcelen, | |||
| size_t & | destlen, | |||
| int | current_rate, | |||
| int | wanted_rate | |||
| ) | [static] |
Definition at line 643 of file Audio.cc.
References CubicInterpolator::feedData(), CubicInterpolator::interpolate(), and RANGE_REDUX.
Referenced by Audio::convert_VOC().
Here is the call graph for this function:

1.5.1