mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 00:13:53 +02:00
remove some leftover walking sound stuff
This commit is contained in:
parent
e7fb7d05f0
commit
2a47d8955a
1 changed files with 1 additions and 22 deletions
|
@ -71,11 +71,6 @@ float flangeIntensity = 0;
|
|||
float flangeRate = 0;
|
||||
float flangeWeight = 0;
|
||||
|
||||
int16_t *walkingSoundArray;
|
||||
int walkingSoundSamples;
|
||||
int samplesLeftForWalk = 0;
|
||||
int16_t *sampleWalkPointer;
|
||||
|
||||
timeval firstPlaybackTimer;
|
||||
int packetsReceivedThisPlayback = 0;
|
||||
float usecsAtStartup = 0;
|
||||
|
@ -364,23 +359,7 @@ bool Audio::getMixerLoopbackFlag() {
|
|||
* @return Returns true if successful or false if an error occurred.
|
||||
Use Audio::getError() to retrieve the error code.
|
||||
*/
|
||||
Audio::Audio(Oscilloscope *s, Avatar *linkedAvatar)
|
||||
{
|
||||
// read the walking sound from the raw file and store it
|
||||
// in the in memory array
|
||||
|
||||
switchToResourcesParentIfRequired();
|
||||
FILE *soundFile = fopen("resources/audio/walking.raw", "r");
|
||||
|
||||
// get length of file:
|
||||
std::fseek(soundFile, 0, SEEK_END);
|
||||
walkingSoundSamples = std::ftell(soundFile) / sizeof(int16_t);
|
||||
walkingSoundArray = new int16_t[walkingSoundSamples];
|
||||
std::rewind(soundFile);
|
||||
|
||||
std::fread(walkingSoundArray, sizeof(int16_t), walkingSoundSamples, soundFile);
|
||||
std::fclose(soundFile);
|
||||
|
||||
Audio::Audio(Oscilloscope* s, Avatar* linkedAvatar) {
|
||||
paError = Pa_Initialize();
|
||||
if (paError != paNoError) goto error;
|
||||
|
||||
|
|
Loading…
Reference in a new issue