≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Can recorder.RecordedAudioData be accessed from memory?
Posted by:
(you are not logged in)
Enter the missing letter in: "?nternational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Thanks niko. 'af' stands for audioFormat, which I define via the recorder.AudioFormat method. I got it working by declaring engine = new ISoundEngine() in the method which handles the array copying etc. I didn't hit on this solution straight away because when it comes to playing back sound directly from a recording using engine.Play2D(rec_sound, loop_flag) with no further arrays in between, in other words adding the sound from memory to the engine, the engine can be declared globally after initialising the window (ie, after InitializeComponent()). But when using AddSoundSourceFromPCMData it seems the engine has to be declared inside the actual method handling the array creation and the playback from that. Which is not a problem in this case, but there could be a time when a global declaration might be the thing to do. Unless of course there is some way around it which I haven’t discovered yet. And yes, I do use a unique name for every soundsource.[/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