21 May '13 - 11:01 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: how to use bass.net to play different music to different channel  (Read 424 times)
lpbinh
Posts: 27


« on: 31 Dec '11 - 09:27 »
Reply with quoteQuote

i want to write a program to play multiple music to multiple channel
example i have a mufti output sound card.

i want my program play a mp3  to left-front, another mp3 to right-front, another to left-rear/side, another to right-rear/side, ...
but i dont know exactly  if bass.net can do that

If it can i have some question
1. How to get mono channels such as left-front, right-front,  left-rear/side, ... of a sound card
2. if i install two sound card could i get all mono channels of two sound card
3. how to play a music to a mono channel, example play a mp3 toleft-front, onother mp3 to right-front, ... abnd set volume for these channel

Logged
Ian @ un4seen
Administrator
Posts: 15253


« Reply #1 on: 3 Jan '12 - 15:13 »
Reply with quoteQuote

1. How to get mono channels such as left-front, right-front,  left-rear/side, ... of a sound card

You would want to use the SPEAKER flags: BASS_SPEAKER_FRONTLEFT for the left-front speaker, BASS_SPEAKER_FRONTRIGHT for the right-front speaker, etc. Please see the "Speaker assignment flags" section of the documenation for details.

2. if i install two sound card could i get all mono channels of two sound card

Yes, you can use 2 cards at the same time by calling BASS_Init for each of them. Also see BASS_SetDevice for setting the "device context".

3. how to play a music to a mono channel, example play a mp3 toleft-front, onother mp3 to right-front, ... abnd set volume for these channel

You can use a channel's BASS_ATTRIB_VOL setting (with BASS_ChannelSetAttribute) to control its volume level.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines