Red Gate forums :: View topic - win CE device play sound in two channels
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

win CE device play sound in two channels

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
multis



Joined: 22 Jun 2010
Posts: 2

PostPosted: Tue Jun 22, 2010 9:38 am    Post subject: win CE device play sound in two channels Reply with quote

Dear All,
I would like to play two WMV streams together and record two streams at the same time. In HW is Realtec HD audio codec ALC888, which supports 7.1+2 standard. ALC888 include 2(input/otput) configurable stereo Lines. Line1 is defaultly set as output, Line2 is defaultly set as input.
How can I configure Line2 as another stereo output? ALC888 includes two stereo microphone inputs Mic1 and Mic2.

I try to use AygShell / SndPlaySync and CoreDll / WaveOut / WaveIn, it goes well, but only in one stereo channel.

Thank you for your reply.
_________________
David
Back to top
View user's profile Send private message
Paul.Martin



Joined: 03 Feb 2010
Posts: 83
Location: Cambridgeshire

PostPosted: Tue Jun 22, 2010 6:06 pm    Post subject: Reply with quote

I've not had any experience myself (the closest I've done is multiple streams to multiple sound card devices).

How does the ALC888 drivers display itself to the operating system - it is a single 10 channel device, or does it have separate deviceIDs for the separate stereo lines?

If it has seperate deviceIDs then WaveOut can be supplied the deviceID.

If the driver exposes the 2 separate lines as just an extra set of channels on the same deviceID, one nasty hack way would be to pass the PCM data with lots of channels, only providing data for the relevant channels.
Or a cleaner way is that various audio frameworks (PortAudio, XAudio2 / DirectSound) let you specify a channel mask and mapping.
Back to top
View user's profile Send private message
multis



Joined: 22 Jun 2010
Posts: 2

PostPosted: Thu Jun 24, 2010 12:13 pm    Post subject: Reply with quote

thank you Paul for repply, I will try it
_________________
David
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group