Problems enjoying audio from PCM file

Problems enjoying audio from PCM file

I generate a listing of PCM information after which click on on the specified line. I learn the file identify via TAG. I can not perceive why there’s a drawback enjoying sound from a PCM file. Sometimes the file performs efficiently, typically not. Perhaps the reason being within the atmosphere and the standing of objects associated to stream processing and participant operation


PCM information:


    If File.Exists(File.DirInternal,fName)=True Then
        inFile = File.OpenInput(File.DirInternal, fName)
        If lstBuffer.IsInitialized Then
            lstBuffer.clear
            Else
            lstBuffer.Initialize
        End If

        Do While inFile.BytesAvailable > 0
            Dim buffer(bufferSize) As Byte
            Dim bytesRead As Int
            bytesRead = inFile.ReadBytes(buffer, 0, bufferSize)
            If bytesRead < bufferSize Then
                Dim actualBuffer(bytesRead) As Byte
                bc.ArrayCopy(buffer, 0, actualBuffer, 0, bytesRead)
                lstBuffer.Add(actualBuffer)...

Read extra

HI-FI News

by way of B4X Programming Forum https://ift.tt/E6eTXnm

November 12, 2024 at 05:42PM