|
a/mpd2src/mpd2sc.cpp |
|
b/mpd2src/mpd2sc.cpp |
|
... |
|
... |
243 |
bool PcmSender::Start(TBool aEnabled)
|
243 |
bool PcmSender::Start(TBool aEnabled)
|
244 |
{
|
244 |
{
|
245 |
iDriver->SetAudioFormat(m_audio->sampleRate(), m_audio->byteRate() * 8,
|
245 |
iDriver->SetAudioFormat(m_audio->sampleRate(), m_audio->byteRate() * 8,
|
246 |
m_audio->numChannels(),
|
246 |
m_audio->numChannels(),
|
247 |
m_audio->bitsPerSample(), true, Brn("WAV"));
|
247 |
m_audio->bitsPerSample(), true, Brn("WAV"));
|
248 |
iSender->SetEnabled(true);
|
248 |
iSender->SetEnabled(aEnabled);
|
249 |
|
249 |
|
250 |
iSender->SetTrack(iUri, Brx::Empty(), m_audio->sampleCount(), 0);
|
250 |
iSender->SetTrack(iUri, Brx::Empty(), m_audio->sampleCount(), 0);
|
251 |
iSender->SetMetatext(Brn("PcmSender repeated play"));
|
251 |
iSender->SetMetatext(Brn("PcmSender repeated play"));
|
252 |
|
252 |
|
253 |
// It seems that both hijacking the main thread and using the
|
253 |
// It seems that both hijacking the main thread and using the
|