forked from mia/Aegisub
Forgot to remove some debugging messages from the PCM audio provider, making using any other audio provider really annoying.
Originally committed to SVN as r1530.
This commit is contained in:
parent
128dd0df0f
commit
044f104a2e
1 changed files with 0 additions and 6 deletions
|
@ -276,29 +276,23 @@ public:
|
||||||
AudioProvider *CreatePCMAudioProvider(const wxString &filename)
|
AudioProvider *CreatePCMAudioProvider(const wxString &filename)
|
||||||
{
|
{
|
||||||
AudioProvider *provider = 0;
|
AudioProvider *provider = 0;
|
||||||
wxLogDebug(_T("Inside CreatePCMAudioProvider"));
|
|
||||||
|
|
||||||
// Try Microsoft/IBM RIFF WAV first
|
// Try Microsoft/IBM RIFF WAV first
|
||||||
// XXX: This is going to blow up if built on big endian archs
|
// XXX: This is going to blow up if built on big endian archs
|
||||||
wxLogDebug(_T("Trying to create RIFF WAV PCM provider"));
|
|
||||||
try { provider = new RiffWavPCMAudioProvider(filename); }
|
try { provider = new RiffWavPCMAudioProvider(filename); }
|
||||||
catch (const wxChar *e) { wxLogWarning(_T("Thrown creating RIFF PCM WAV provider: %s"), e); provider = 0; }
|
|
||||||
catch (...) { provider = 0; }
|
catch (...) { provider = 0; }
|
||||||
|
|
||||||
if (provider && provider->GetChannels() > 1) {
|
if (provider && provider->GetChannels() > 1) {
|
||||||
wxLogDebug(_T("Have a PCM provider with non-mono sound"));
|
|
||||||
// Can't feed non-mono audio to the rest of the program.
|
// Can't feed non-mono audio to the rest of the program.
|
||||||
// Create a downmixing proxy and if it fails, don't provide PCM.
|
// Create a downmixing proxy and if it fails, don't provide PCM.
|
||||||
try {
|
try {
|
||||||
provider = new DownmixingAudioProvider(provider);
|
provider = new DownmixingAudioProvider(provider);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
wxLogDebug(_T("Failed creating downmixer for PCM"));
|
|
||||||
delete provider;
|
delete provider;
|
||||||
provider = 0;
|
provider = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogDebug(_T("Returning from CreatePCMAudioProvider: %p"), provider);
|
|
||||||
return provider;
|
return provider;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue