Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Commented Unassigned: Unsupported Wave Format issues [16479]

$
0
0
I'm trying to mix IEEE signals with an app in exclusive mode, but on some devices it doesn't seem to play sound at all.

Some details:
Bitrates of 16 or 24 work equally well with any sample rate.
The app attempts to use 44.1kHz sample rate. If it fails, it switches to 48kHz.
However, the playback is higher pitched when switching to 48kHz.
The app is runs in exclusive mode by default in an attempt to force 44.1kHz.

So on this device:
http://www.officedepot.com/a/products/488121/HP-Pavilion-X2-2-in-1/
exclusive mode can't find 44.1kHz so it switches to 48kHz upon which it immediately fails and does not play sound at all.

The exception I get is similar to the one I receive when attempting to use the NAudio demo:
https://i.imgur.com/xRLvTEo.png

Any insight would be extremely helpful. Thanks!

Comments: Yes, you can't assume your soundcard will necessarily support all wave formats in exclusive mode You need to resample your audio to play at 48kHz if it is 44.1kHz audio

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>