DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
Go Back  Xtreme Visual Basic Talk > > > > DirectSound, multiple sounds in vb .net


Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2005, 11:03 PM
Rintaro Rintaro is offline
Newcomer
 
Join Date: Sep 2005
Posts: 1
Default DirectSound, multiple sounds in vb .net


hi guys,
i'm pretty much a noob at vb and so im having probs getting mutliple sounds 2 play thru directsound. basically my program is a mix machine which plays sounds on keypress then records what youve done.

any help is very much appreciated as i've been running into brick walls all over the net =/

thx, Rin.

*i've been reading up a bit more and i need 2 create multiple sound buffers, and i tried 'my' version of multiple buffers
Code:
Public Class Form1
    Inherits System.Windows.Forms.Form
    Private _dev As Device
    Private _dev1 As Device
    Private _buffer As SecondaryBuffer
    Private _buffer2 As SecondaryBuffer

Private Sub Form4_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        _dev = New Device
        _dev.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority)
        _dev1 = New Device
        _dev1.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority)
    End Sub
but it only seemed 2 result in the buffer containing the last selected file. (theyre selected using an open file dialog that sets the buffer
Code:
    Private Sub btnSelFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSelFile.Click
        If ofd.ShowDialog Then
            _buffer = New SecondaryBuffer(ofd.FileName, _dev)
        End If
    End Sub
    Private Sub btnSelFile1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSelFile1.Click
        If ofd1.ShowDialog Then
            _buffer2 = New SecondaryBuffer(ofd1.FileName, _dev1)
        End If
    End Sub
**found a resource that im finding hard 2 implement into this project http://www.springeronline.com/sgw/cd...88685-0,00.pdf
it has a method for multiple sound but i dont quite understand it...

Last edited by Rintaro; 09-06-2005 at 06:53 AM.
Reply With Quote
  #2  
Old 11-09-2005, 01:15 AM
ardman ardman is offline
Contributor
 
Join Date: Jan 2002
Posts: 126
Default

Why are you creating 2 devices? You don't need to create 2 devices in order to play multiple sounds.
__________________
Cheers
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
 
DirectSound, multiple sounds in vb .net
DirectSound, multiple sounds in vb .net
 
-->