Comments (8)
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.
No one comment? Where is library support guys???
from streamingkit.
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.
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.
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.
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.
@dubenko I am trying to do the same, did you have some success on it? For instance I didn't.. =/
from streamingkit.
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)
- StreamingKit stopped working in iOS. HOT 1
- After seeking, PlayerState becomes "buffering" when a song finished playing. HOT 2
- Can I play MPEG-2 Transport Stream?
- Deadlock with playerMutex
- Weird bleeps and no metadata available when playing a SHOUTcast stream HOT 17
- cannot play .m4a files from remote url HOT 1
- play after seek time
- AUGraphStart crashes on simulator below iOS 14 HOT 1
- the player can't start use the network HOT 3
- didFinishPlayingQueueItemId never called sometimes HOT 3
- Crash HOT 5
- Just a question… HighRes audio
- 可以播放本地文件的音频吗 HOT 1
- Can I sync the StreamingKit player with lock screen player?
- Dose it support pitch ? HOT 1
- DSD Playback? HOT 5
- Very beginning of audio cut off [UPDATED with examples] HOT 2
- Failed to play audio url
- https://github.com/tumtumtum/StreamingKit
- Player cache issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from streamingkit.