Playing media with 2 different channels in stereo file using NAudio library
-
Hi, I am using NAudio library to play songs using an ASIO Soundcard. Currently, AsioOut class exposes 'ChannelOffset' property to select the channel. If we are playing a Stereo file with ChannelOffset as 4, the media will be played at Channel 4 and 5. The Stereo file will have Left and Right Channel which will play the media at Channel 4 and 5. So, whatever user specifies, right channel will be assigned to a channel incremented by 1. I need to provide the flexibility to the user to specify the channel number for both the Left and Right Channel. So, if user specifies 4 and 7, the left channel will play media at 4 and right channel at 7. Is there a way to achieve this using NAudio and specifically for ASIO soundcard ? Any suggestion or workaround is welcome!
Praveen Raghuvanshi Software Developer
-
Hi, I am using NAudio library to play songs using an ASIO Soundcard. Currently, AsioOut class exposes 'ChannelOffset' property to select the channel. If we are playing a Stereo file with ChannelOffset as 4, the media will be played at Channel 4 and 5. The Stereo file will have Left and Right Channel which will play the media at Channel 4 and 5. So, whatever user specifies, right channel will be assigned to a channel incremented by 1. I need to provide the flexibility to the user to specify the channel number for both the Left and Right Channel. So, if user specifies 4 and 7, the left channel will play media at 4 and right channel at 7. Is there a way to achieve this using NAudio and specifically for ASIO soundcard ? Any suggestion or workaround is welcome!
Praveen Raghuvanshi Software Developer