SpeechSynthesizer中断IMFMediaEngine背景音乐 [英] SpeechSynthesizer Interrupts IMFMediaEngine Background Music

查看:71
本文介绍了SpeechSynthesizer中断IMFMediaEngine背景音乐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Windows Phone 8应用程序中,我在DirectX组件中使用IMFMediaEngine播放背景音乐。 (msdn.microsoft.com/en-us/library/windows/desktop/hh447918(v=vs.85).aspx)

In my Windows Phone 8 app, I have background music playing using IMFMediaEngine in my DirectX component. (msdn.microsoft.com/en-us/library/windows/desktop/hh447918(v=vs.85).aspx)

但是当我使用  Windows.Phone.Speech.Synthesizer,合成器说话时暂停背景音乐。合成器完成后,背景音乐将再次播放。我不希望这种情况发生。我希望音乐继续播放,
但我不知道如何控制它。

But when I use  Windows.Phone.Speech.Synthesizer, the background music is paused while the Synthesizer speaks. The background music will then play again after the Synthesizer finishes. I don't want this to happen. I want the music to continue playing, but I don't know how to control this.

我检查了我的代码以确保它不会调用IMFMediaEngine: :暂停()和SetVolume()。

I've checked my code to make sure it doesn't call IMFMediaEngine::Pause() nor SetVolume().

有谁知道如何解决这个问题?

Does anyone know how to fix this problem?

谢谢

推荐答案

我认为这是语音引擎的限制......
I think this is a limitation in the speech engine...


这篇关于SpeechSynthesizer中断IMFMediaEngine背景音乐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆