Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIF: add ".aif" extension in AudioFileReader.cs #216

Closed
kristofen opened this issue Jul 27, 2017 · 0 comments
Closed

AIF: add ".aif" extension in AudioFileReader.cs #216

kristofen opened this issue Jul 27, 2017 · 0 comments

Comments

@kristofen
Copy link

Hi,

Opening ".aif" file with AudioFileReader fails with a MediaFoundationException.

changing line 60 of AudioFileReder.cs from

else if (fileName.EndsWith(".aiff"))

to

else if (fileName.EndsWith(".aiff") || fileName.EndsWith(".aif"))

solve the problem and the file plays well

Regards,

Christophe

ArclightSA added a commit to ArclightSA/NAudio that referenced this issue Sep 19, 2017
* AudioFileReader supports filenames ending with .aif, resolves naudio#216

* v1.8.2 release

* Added "Data" property

Added "Data" property to allow for non Unicode decoding of text.

* Fixed typos

* With Directsound, when another playback is started after the playback has completely stopped, the problem of mixing noise is solved.

* Based on the advice of markheath, clearing processing of the secondary buffer is converted into a helper method.

* PropVariant fields now public

Changed field access modifiers from private to public to allow creation of custom variants for settings MMDevice instances property values.

* Addition of missing IPropertyStore methods for PropertyStore class.

Added SetValue and Commit methods to allow one to write new property values for MMDevice instance.

* Addition of new PropertyKeys class members

Declaration of new static PropertyKey fields:
- PKEY_Device_DeviceDesc, description property
- PKEY_Device_ControllerDeviceId, contains device id of controller device for given endpoint
- PKEY_Device_InterafaceKey, contains interface key path
for PropertyKeys static class.

* StorageAccessMode enum now public

* Blob struct now public

* Modified GetPropertyInformation for public use

Method GetPropertyInformation now public. Access flag can now be changed when accessing property store for given MMDevice.

* Fixed description

* Added XML documentation for new public members

* improved support for mono AAC, fixes naudio#223

* Improved support for mono AAC

Multiplying the SampleRate & ChannelCount will cause exception with aac_lc mono _(it's only required with HE-AAC)_.

* Fix different behavior between Win7 and Win10.

* fix NullReferenceException opening AsioOut by index. resolves naudio#234

* v1.8.3 release

* Prevent audio files from staying locked

Fixing an issue that caused audio files used by the MediaFoundationReader class to stay locked after the class instance is disposed, due to unreleased COM object.

* additional constructor for MultiplexingWaveProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant