Revision 888a909b server/src/AudioPlayerLibAO.cpp
| server/src/AudioPlayerLibAO.cpp | ||
|---|---|---|
| 53 | 53 |
|
| 54 | 54 |
|
| 55 | 55 |
//this will return once we start playing |
| 56 |
void AudioPlayerLibAO::play(boost::shared_ptr<AudioData> audio){
|
|
| 56 |
void AudioPlayerLibAO::play(std::shared_ptr<AudioData> audio){
|
|
| 57 | 57 |
audio_data = audio; |
| 58 | 58 |
|
| 59 | 59 |
printf("> AudioPlayerLibAO: play() %d samples requested\n",(int)audio_data->samples.size());
|
| ... | ... | |
| 83 | 83 |
} |
| 84 | 84 |
|
| 85 | 85 |
|
| 86 |
ao_sample_format AudioPlayerLibAO::extract_ao_format(boost::shared_ptr<AudioData> audio){
|
|
| 86 |
ao_sample_format AudioPlayerLibAO::extract_ao_format(std::shared_ptr<AudioData> audio){
|
|
| 87 | 87 |
ao_sample_format ao_format; |
| 88 | 88 |
|
| 89 | 89 |
//get bits per sample |
Also available in: Unified diff