≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
getSampleData() returning NULL
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b]ders[/b] wrote: I'm getting the ISoundSource of some audio sources in my application like this: [code]irrklang::ISoundSource* soundSource = irrKlangEngine->getSoundSource(fullsoundName.c_str(), true);[/code] After that is done (and I checked if soundSource isn't NULL) I try to get the sample data like this, together with some other information: [code]short* data = (short*)soundSource->getSampleData(); int channels = soundSource->getAudioFormat().ChannelCount; int frames = soundSource->getAudioFormat().FrameCount;[/code] Now, sometimes data seems to be NULL for some reason. I'm sure that the source I get this from are not streamed and that seemed to be the only exception when getSampleData() would return NULL. Am I forgetting something? Or is there something I should check? EDIT: I've did some more tests and I found that if the data wasn't preloaded it seems to be a problem.[/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