Click here to Skip to main content
15,897,518 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: fill a webpage from vb.net 2010 Pin
Paul Conrad24-Sep-12 15:47
professionalPaul Conrad24-Sep-12 15:47 
GeneralRe: fill a webpage from vb.net 2010 Pin
alejx24-Sep-12 16:16
alejx24-Sep-12 16:16 
GeneralRe: fill a webpage from vb.net 2010 Pin
Paul Conrad24-Sep-12 16:19
professionalPaul Conrad24-Sep-12 16:19 
GeneralRe: fill a webpage from vb.net 2010 Pin
alejx24-Sep-12 16:47
alejx24-Sep-12 16:47 
GeneralRe: fill a webpage from vb.net 2010 Pin
Paul Conrad24-Sep-12 16:53
professionalPaul Conrad24-Sep-12 16:53 
GeneralRe: fill a webpage from vb.net 2010 Pin
alejx24-Sep-12 16:57
alejx24-Sep-12 16:57 
GeneralRe: fill a webpage from vb.net 2010 Pin
Paul Conrad24-Sep-12 17:00
professionalPaul Conrad24-Sep-12 17:00 
QuestionSocket Voice Chat Pin
Sally samy24-Sep-12 4:33
Sally samy24-Sep-12 4:33 
hi all experts
i'm try to Make voice chat by this example in the site
but i use vb not C# every thing is good with C# but in vb the send Voice not Work i dont know why if you want to send my sample its ok

this is part of the Code

/////////////////////////////////////////////////////
C#
void SendVoiceBuffer(object VoiceBuffer, EventArgs e)
       {
           try
           {
              byte[] PCM_Buffer = (byte[])VoiceBuffer;
          //byte[] Encoded =VoiceEncoder .G711Audio.ALawEncoder.ALawEncode(PCM_Buffer);
              byte[] Encoded =ALawEncoder.ALawEncode(PCM_Buffer);
           Send_Bytes(Encoded);
           this.Dispatcher.BeginInvoke(new ShowMessagedelegate(ShowBufferSize), Encoded.Length.ToString());
           }
           catch (Exception ex) { ShowMessageBox(ex.Message); }
       }



VB
Public Overloads Shared Function ALawEncode(ByVal data() As Byte) As Byte()

            Dim size As Integer = data.Length / 2
            Dim encoded As Byte() = New Byte(size - 1) {}
            For i As Integer = 0 To size - 1
                Dim _part1 As Integer = data(2 * i + 1)
                Dim _part2 As Integer = data(2 * i)
                Dim _test As Byte = BitConverter.GetBytes((_part1 << 8) Or _part2)(0)
                encoded(i) = ALawEncode(_test)
            Next
            Return encoded
        End Function

VB
Public Overloads Shared Function ALawEncode(ByVal pcm As Short) As Byte
            Return pcmToALawMap(pcm And &HFFFF)
        End Function


/////////////////////////////////////////////////////
Hint:
The Buffer filled with data in (SendVoiceBuffer) in vb is totally different with this one in C#

i appreciate every answer
thank you
AnswerRe: Socket Voice Chat Pin
Eddy Vluggen24-Sep-12 4:49
professionalEddy Vluggen24-Sep-12 4:49 
GeneralRe: Socket Voice Chat Pin
Sally samy24-Sep-12 5:03
Sally samy24-Sep-12 5:03 
AnswerRe: Socket Voice Chat Pin
Eddy Vluggen24-Sep-12 5:08
professionalEddy Vluggen24-Sep-12 5:08 
QuestionHow can I do to make my vb player be able to play in a specific portion of time Pin
sosthenes paul21-Sep-12 0:52
sosthenes paul21-Sep-12 0:52 
AnswerRe: How can I do to make my vb player be able to play in a specific portion of time Pin
Eddy Vluggen21-Sep-12 3:07
professionalEddy Vluggen21-Sep-12 3:07 
QuestionVisable Line Draw Pin
Member 939749920-Sep-12 21:25
Member 939749920-Sep-12 21:25 
AnswerRe: Visable Line Draw Pin
Eddy Vluggen21-Sep-12 3:02
professionalEddy Vluggen21-Sep-12 3:02 
GeneralRe: Visable Line Draw Pin
Member 939749921-Sep-12 8:56
Member 939749921-Sep-12 8:56 
GeneralRe: Visable Line Draw Pin
Richard MacCutchan21-Sep-12 21:19
mveRichard MacCutchan21-Sep-12 21:19 
GeneralRe: Visable Line Draw Pin
Eddy Vluggen21-Sep-12 22:53
professionalEddy Vluggen21-Sep-12 22:53 
AnswerRe: Visable Line Draw Pin
Richard MacCutchan21-Sep-12 3:20
mveRichard MacCutchan21-Sep-12 3:20 
Questionvb 6.0 API Pin
Ainnop20-Sep-12 4:15
Ainnop20-Sep-12 4:15 
AnswerRe: vb 6.0 API Pin
Wes Aday20-Sep-12 4:26
professionalWes Aday20-Sep-12 4:26 
GeneralRe: vb 6.0 API Pin
Ainnop20-Sep-12 4:46
Ainnop20-Sep-12 4:46 
AnswerRe: vb 6.0 API Pin
Eddy Vluggen20-Sep-12 4:48
professionalEddy Vluggen20-Sep-12 4:48 
GeneralRe: vb 6.0 API Pin
Wes Aday20-Sep-12 4:52
professionalWes Aday20-Sep-12 4:52 
GeneralRe: vb 6.0 API Pin
Member 939749921-Sep-12 8:51
Member 939749921-Sep-12 8:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.