Revision 801b4c12
server/src/AudioPlayerLibAO.cpp | ||
---|---|---|
104 | 104 |
throw runtime_error("AudioPlayerLibAO::extract_ao_format() unsupported number of audio channels given in AudioData"); |
105 | 105 |
} |
106 | 106 |
|
107 |
printf("> AudioPlayerLibAO: format=%d rate=%d endianess=%d channels=%d\n", ao_format.bits, ao_format.rate, ao_format.byte_format, ao_format.channels); |
|
108 |
|
|
107 | 109 |
return ao_format; |
108 | 110 |
} |
109 | 111 |
|
... | ... | |
153 | 155 |
//enter actual playing state |
154 | 156 |
playback_state = PLAYING; |
155 | 157 |
playback_active = true; |
158 |
|
|
156 | 159 |
ao_play(device, audio_data.samples.data(), audio_data.samples.size()); |
157 | 160 |
printf("> AudioPlayer: finished playback\n"); |
158 | 161 |
} |
Also available in: Unified diff