Fix a bug (introduced when support for w64 was added) that caused the PCM provider to never get used.
Originally committed to SVN as r2682.
This commit is contained in:
parent
811505ee83
commit
5e6253831a
1 changed files with 5 additions and 1 deletions
|
@ -522,6 +522,8 @@ AudioProvider *CreatePCMAudioProvider(const wxString &filename)
|
|||
// Try Microsoft/IBM RIFF WAV
|
||||
try {
|
||||
provider = new RiffWavPCMAudioProvider(filename);
|
||||
// don't bother trying with anything else if this works
|
||||
return provider;
|
||||
}
|
||||
catch (const wxChar *msg) {
|
||||
provider = 0;
|
||||
|
@ -531,11 +533,13 @@ AudioProvider *CreatePCMAudioProvider(const wxString &filename)
|
|||
// Try Sony Wave64
|
||||
try {
|
||||
provider = new Wave64AudioProvider(filename);
|
||||
return provider;
|
||||
}
|
||||
catch (const wxChar *msg) {
|
||||
provider = 0;
|
||||
wxLogDebug(_T("Creating Wave64 reader failed with message: %s\nProceeding to try other providers."), msg);
|
||||
}
|
||||
|
||||
return provider;
|
||||
// no providers could be created
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue