Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: How does ISampleProvider.Read(float[] buffer, int offset, int count) work?

$
0
0
Really? Even for a file that starts instantaneously? Sorry, I'm not exactly an expert with sound related programming or anything related to sound at all...

Edit:
 while(mysample.Read(sampleData, 0, 8) != 0){
                    mysample.Read(sampleData, 0, 8);
                }
This seems to solve the problem based on your earlier post, anyhow how would I find the first possible sample in an audio file? Would I do something like multiply the time (in seconds) * samples per second and divide that by a certain number which becomes our read method's sample count?

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>