Code Monkey home page Code Monkey logo

Comments (8)

dubenko avatar dubenko commented on August 31, 2024

so i try do this:

// Create processing tap
UInt32 maxFrames = 0;
AudioStreamBasicDescription tapFormat = {0};
AudioQueueProcessingTapRef tapRef;
error = AudioQueueProcessingTapNew(audioQueue, AudioQueueProcessingTapProc, (__bridge void*)self, kAudioQueueProcessingTap_PreEffects, &maxFrames, &tapFormat, &tapRef);

if (error)
{
    return;
}
  • implement callback in createAudioQueue method

then add:

static void AudioQueueProcessingTapProc(void \* inClientData, AudioQueueProcessingTapRef inAQTap, UInt32 inNumberFrames, AudioTimeStamp \* ioTimeStamp, UInt32 \* ioFlags, UInt32 \* outNumberFrames, AudioBufferList \* ioData) { AudioPlayer\* player = (__bridge AudioPlayer*)inClientData;
UInt32 getSourceFlags = 0;
UInt32 getSourceFrames = 0;
OSStatus error;
error = AudioQueueProcessingTapGetSourceAudio(inAQTap, inNumberFrames, ioTimeStamp, &getSourceFlags, &getSourceFrames, ioData);

if (error)
{
    return;
}
// code for equaliser }

i right understand???

from streamingkit.

dubenko avatar dubenko commented on August 31, 2024

No one comment? Where is library support guys???

from streamingkit.

tumtumtum avatar tumtumtum commented on August 31, 2024

It's an open source project dude. If there was an answer that was reasonably apparent you would have an answer. Otherwise the source is there for you and the features it has are what it has. If you would like to add support for dsp or reading buffer size then please go ahead.

I put this here to share with fellow devs what I've done; not as an indication that I have free time to implement every new feature request.

from streamingkit.

dubenko avatar dubenko commented on August 31, 2024

I just wanted to find the right direction... This library support buffering, but can't show buffer size - its really strange, so thanks dude for replay.

from streamingkit.

tumtumtum avatar tumtumtum commented on August 31, 2024

Part of the reason the buffering information is left out at the moment is that it can (and should) be done at the DataSource level. I did start writing a DataSource that supports advance buffering but have not had the time to make any significant progress with it. It shouldn't be hard to add buffering information to AudioPlayer now but I expect it will be deprecated at some point in the future (which is why I left it out for now).

Cheers.

from streamingkit.

tumtumtum avatar tumtumtum commented on August 31, 2024

WRT to the DSP stuff, I know as much as you...the time it would take me to research enough to be helpful to you would be almost as much time as would be needed to do it myself :)

from streamingkit.

robertoferraz avatar robertoferraz commented on August 31, 2024

@dubenko I am trying to do the same, did you have some success on it? For instance I didn't.. =/

from streamingkit.

tsheaff avatar tsheaff commented on August 31, 2024

Any progress on this? I'd like to show the portion that has buffered on my own playback view so the user knows if they're about to run out of buffer. @tumtumtum how would this be implemented in 0.1.29?

from streamingkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.