mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-09-29 21:56:05 +00:00
remove buggy speaker sound, for now
This commit is contained in:
parent
bda6d62294
commit
08cc9f5f39
@ -89,7 +89,8 @@ SpeakerClicker::SpeakerClicker():
|
|||||||
SDL_AudioSpec obtained;
|
SDL_AudioSpec obtained;
|
||||||
obtained.callback = 0;
|
obtained.callback = 0;
|
||||||
obtained.userdata = 0;
|
obtained.userdata = 0;
|
||||||
if (SDL_OpenAudio(&audio,&obtained) != 0)
|
/*
|
||||||
|
* if (SDL_OpenAudio(&audio,&obtained) != 0)
|
||||||
{
|
{
|
||||||
done = true;
|
done = true;
|
||||||
std::cerr << "Unable to initialize audio: " << SDL_GetError() << std::endl;
|
std::cerr << "Unable to initialize audio: " << SDL_GetError() << std::endl;
|
||||||
@ -99,7 +100,7 @@ SpeakerClicker::SpeakerClicker():
|
|||||||
bufchg = SDL_CreateCond();
|
bufchg = SDL_CreateCond();
|
||||||
buflck = SDL_CreateMutex();
|
buflck = SDL_CreateMutex();
|
||||||
silence = obtained.silence;
|
silence = obtained.silence;
|
||||||
/*
|
|
||||||
std::cout << "initialized audio: " << std::endl;
|
std::cout << "initialized audio: " << std::endl;
|
||||||
std::cout << "freq: " << obtained.freq << std::endl;
|
std::cout << "freq: " << obtained.freq << std::endl;
|
||||||
std::cout << "format: " << obtained.format << std::endl;
|
std::cout << "format: " << obtained.format << std::endl;
|
||||||
@ -107,9 +108,9 @@ SpeakerClicker::SpeakerClicker():
|
|||||||
std::cout << "silence: " << (int)obtained.silence << std::endl;
|
std::cout << "silence: " << (int)obtained.silence << std::endl;
|
||||||
std::cout << "samples: " << obtained.samples << std::endl;
|
std::cout << "samples: " << obtained.samples << std::endl;
|
||||||
std::cout << "size: " << obtained.size << std::endl;
|
std::cout << "size: " << obtained.size << std::endl;
|
||||||
*/
|
|
||||||
SDL_PauseAudio(0);
|
SDL_PauseAudio(0);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user