Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i want to convert wav format to flac format in vb.net and for this, after digging the internet, decided to use CUEtoolFlack03 api here is the code :

VB
Imports CUETools.Codecs.FLAKE
Imports CUETools.Codecs
Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim fl2 As FlakeWriter
        Dim fil As New IO.FileStream("c:\MISSION2\rr.wav", IO.FileMode.Open, IO.FileAccess.ReadWrite)
        fl2 = New FlakeWriter("c:\MISSION2\ttl.flac", 16, 2, 8000, fil)
        Dim audioSource = New WAVReader(Nothing, fil)
        Dim buff = New CUETools.Codecs.AudioPipe(audioSource, 65536)
       fl2.Write() 
    End Sub
End Class




confusion comes when i use write method of
VB
flakeWriter
as it requires
VB
buff(,) as integer
but i cant figure out what it is....please help me to implement this
Posted
Updated 9-Aug-13 19:58pm
v2

1 solution

Typically that would indicate a multi-dimensional array. If this link is correct, there may be a helper class in your API called AudioBuffer that you can use to produce it: https://bitbucket.org/josephcooney/cloudspeech/src/8619cf699541/CloudSpeech/SpeechToText.cs[^]
 
Share this answer
 
Comments
kounserkhalid2 10-Aug-13 0:05am    
there is no audioBuffer class in the dll that i am using the link you suggested has no compiled dll


audiopipe class i am using has a method called read which returns integer(,) but again requires integer (,) as a input parameter.... :(
kounserkhalid2 10-Aug-13 1:56am    
here is the dll i am using http://www.hydrogenaudio.org/forums/index.php?s=dbcfec1daebb37c994c65e0cd76a6e2a&act=attach&type=post&id=5358
woopsydoozy 12-Aug-13 15:02pm    
I took a quick glance, but see no documentation of this package. There is a link to source code, but that's not likely to help you. I suggest you ask your question in the hydrogenaudo forum, as that's where you got this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900