Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Cache time for streaming audio? And where i can implement Audio Units for example iPodEQ? #20

Closed
dubenko opened this issue Nov 1, 2013 · 2 comments

Comments

@dubenko
Copy link

dubenko commented Nov 1, 2013

Hello man, nice library, but how i can get cache time for streaming audio or mb present value of cached time? And second, where i can implement Audio Units for example iPodEQ or Reverb2? Sorry for my broken english and thanks for this library!

ap4y pushed a commit that referenced this issue Nov 5, 2013
@ap4y
Copy link
Owner

ap4y commented Nov 5, 2013

Hey, sorry for the late response.

Regarding the caching. Right now there is no dedicated caching policy, you can think about current caches as temporary files. Since it's impossible to download large files (like FLAC) into memory and I didn't want to block HTTP connection, I'm storing downloaded files into application cache folder(NSCachesDirectory). So OS will manage this caches for us, it will be cleaned once system requires resources, this process is totally nondeterministic. If you want to implement dedicated caching strategy I recommend to take a look into NSURLCache.

About nodes and constructing graphs. I just pushed small change in b943430, which adds new method- (void)playUrl:(NSURL *)url withOutputUnitClass:(Class)outputUnitClass. You can subclass ORGMOutputUnit, define your graph there. Example implementation can be found in ORGMOutputUnit.m (which is default output right now), it is basically simple OutputUnit for Remote I/O node.

@ap4y
Copy link
Owner

ap4y commented Nov 10, 2013

I'm closing this issue, feel free to reopen it if you have questions.

@ap4y ap4y closed this as completed Nov 10, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants