Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"


Can someone explain to me exactly how this works? And more importantly, has anyone used it?


Product Version: Not Selected
more ▼

asked Sep 05 '14 at 12:45 AM in C++ Programming

avatar image

34 6 8 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This is part of the new audio streaming system and probably shouldn't be exposed as openly as this. It's currently only used to load the first chunk of audio from a sound that has been marked for streaming, so that playback can be instantaneous.

more ▼

answered Sep 08 '14 at 08:56 AM

avatar image Gibdion Sep 08 '14 at 07:18 PM

Can this not be used to step through the data as it's being played? I'm actually looking for something similar to this function call in Unity. http://docs.unity3d.com/ScriptReference/AudioSource.GetOutputData.html I'd like to have access to the chunk of data in the wav file that is currently being output.

avatar image IdentityCrisisUK STAFF Sep 09 '14 at 07:50 AM

It's not really designed for use like that as it's a blocking function, you'd cause hitches while it loads the chunk you want. This is also compressed data, so you would need to use the same decompression code that's used for streaming.

The only code we have to expose PCM data at present is in the SoundVisualization plugin, I don't know if that might be similar to what you're looking for?

avatar image Gibdion Sep 09 '14 at 02:49 PM

Ok, I will look in to that. I need access to uncompressed data, so I can just create a standard uncompressed WAV file. I'm not sure yet if the API allows me to create my own audio source in code. This may work though. Is the documentation for that also listed into the API docs?

I believe Unity only had that one function as well that gave me access to that data, and from all the community discussion I could find on it, it was mainly used in audio visualizations. Hopefully they function similar enough.

But leave it to me to be different and use these functions in odd peculiar ways. So I'm not using this for a visualization.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question