Revision 888a909b server/src/AudioPlayerRSB.cpp
| server/src/AudioPlayerRSB.cpp | ||
|---|---|---|
| 63 | 63 |
|
| 64 | 64 |
|
| 65 | 65 |
//this will return once we start playing |
| 66 |
void AudioPlayerRSB::play(boost::shared_ptr<AudioData> _audio_data){
|
|
| 66 |
void AudioPlayerRSB::play(std::shared_ptr<AudioData> _audio_data){
|
|
| 67 | 67 |
audio_data = _audio_data; |
| 68 | 68 |
|
| 69 | 69 |
printf("> AudioPlayerRSB: play() %d samples requested\n",(int)audio_data->samples.size());
|
| ... | ... | |
| 75 | 75 |
} |
| 76 | 76 |
|
| 77 | 77 |
//ok, we can play the audio. copy/setup data: |
| 78 |
//audio_data_ptr = boost::shared_ptr<rst::audition::SoundChunk>(boost::make_shared<rst::audition::SoundChunk>(*audio_chunk));
|
|
| 78 |
//audio_data_ptr = std::shared_ptr<rst::audition::SoundChunk>(boost::make_shared<rst::audition::SoundChunk>(*audio_chunk));
|
|
| 79 | 79 |
playback_requested = true; |
| 80 | 80 |
} |
| 81 | 81 |
|
| ... | ... | |
| 154 | 154 |
} |
| 155 | 155 |
|
| 156 | 156 |
void AudioPlayerRSB::publish_audio_data(){
|
| 157 |
boost::shared_ptr<rst::audition::SoundChunk> request(new rst::audition::SoundChunk());
|
|
| 157 |
std::shared_ptr<rst::audition::SoundChunk> request(new rst::audition::SoundChunk());
|
|
| 158 | 158 |
|
| 159 | 159 |
request->set_channels(audio_data->sample_channels); |
| 160 | 160 |
request->set_data(audio_data->samples.data()); |
Also available in: Unified diff