≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
C Recording audio with IrrKlang
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]zbyhu[/b] wrote: Hi all, Is possible to record audio with Irrklang on C? i try do it, and on thread i get sample data,but is always zero-size, is possible to do this? i wrote somethink like this void IrrKlangRecv() { while (true) { if (engine == null || recorder == null) { Thread.Sleep(10); continue; } if (recorder.AudioFormat.SampleDataSize <= 0) {continue;} Debug.Print("DataS: {0}", recorder.AudioFormat.SampleDataSize); Thread.Sleep(10); if (FileChkBox.Checked && recorder != null && writer != null) writer.Write(recorder.RecordedAudioData, 0, recorder.AudioFormat.SampleDataSize); recorder.ClearRecordedAudioDataBuffer(); // bufferedWaveProvider.AddSamples(recorder.RecordedAudioData, 0, recorder.RecordedAudioData.Length); // meteringSampleProvider.Read(recorder.RecordedAudioData, 0, recorder.RecordedAudioData.Length); } }[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact