Все вопросы: [audioqueueservices]

11 вопросов

похожие теги:
0
голосов
1ответов
694 просмотров

How to play next file using Audio Queue Services

What is the right way to play next file using Audio Queue Services? When "play next" button is pressed should I first call AudioQueueStop and then AudioQueuePrime/AudioQueueStart or it is enough to just fill buffers with next file data? The problem is that the latter gives me sound glitches on ...

3
голосов
3ответов
1904 просмотров

How to lower sound on the iphone's sdk Audioqueue?

I'm using Aran Mulhollan' RemoteIOPlayer, using audioqueues in the SDK iphone. I can without problems: - adding two signals to mix sounds - increasing sound volume by multiplying the UInt32 I get from the wav files BUT every other operation gives me warped and distorted sound, and in particula...

1
голосов
2ответов
936 просмотров

Building better positional audio [AudioQueue manipulation]

I'm building an app that has a requirement for really accurate positional audio, down to the level of modelling inter-aural time difference (ITD), the slight delay difference between stereo channels that varies with a sound's position relative to a listener. Unfortunately, the iPhone's implementa...

1
голосов
1ответов
500 просмотров

AudioQueueOfflineRender returning empty data

I'm having problems using AudioQueueOfflineRender to decode AAC data. When I examine the buffer after the call, it is always filled with empty data. I made sure the input buffer is valid and packet descriptions are provided. I searched and found that a few others have had the same problem: http...

0
голосов
2ответов
1444 просмотров

Using audioqueue to stream audio. How to get the length of the audio file before playback ends?

Already finished implementing the player. I want to implement the progress bar. But I wonder if that's possible to do since we are streaming the music. Unless we are provided the length of the song before hand. Please, I need your advice on this.

6
голосов
1ответов
3861 просмотров

Reading audio buffer data with AudioQueue

I am attempting to read audio data via AudioQueue. When I do so, I can verify that the bit depth of the file is 16-bit. But when I get the actual sample data, I'm only seeing values from -128 to 128. But I'm also seeing suspicious looking interleaved data, which makes me pretty sure that I'm just...

1
голосов
1ответов
1098 просмотров

Missing chunks when creating file with AudioQueue

So a .wav file has a few standard chunks. In most of the files I work with, the "RIFF" chunk is first, then a "fmt " chunk, then the "DATA" chunk. When recording using AVAudioRecorder, those chunks are created (although an extra "FLLR" is created before the "DATA" chunk.) When creating a file wi...

4
голосов
2ответов
14614 просмотров

How do I get the filesystem path for a resource on iPhone?

On the iPhone I need to get the path for the resource. OK, done that, but when it comes to CFURLCreateFromFileSystemRepresentation thing, I just don't know how to solve this. Why does this error occur? Any solution or workaround would be highly appreciated. Thank you in advance. I have taken a l...

3
голосов
4ответов
11189 просмотров

How to deal with forward declaration / #import in Cocoa Touch (Objective-C cross C++) correctly?

I am trying to write this header file: //@class AQPlayer; //#import "AQPlayer.h" @interface AQ_PWN_iPhoneViewController : UIViewController { AQPlayer* player; } @end AQPlayer is a .mm file written in C++. I tried to make a class forward declaration here, but it complains to me: erro...

2
голосов
2ответов
875 просмотров

Is there a FSRef in iPhone SDK or is there something that can be FSRef's alternative?

The question may sound stupid, but the thing is this: I am learning how to use a Audio Queue, and the example I've taken (aqtest) has been a nice guide for me until I recently found out that aqtest is not for iPhone. (stupid me) I served around the Internet and found out that there is no FSRef fo...

0
голосов
1ответов
901 просмотров

извлечение длительности файла mp3 с помощью AudioQueueServices

Я реализовал потоковый mp3-плеер с помощью AudioQueueServices, который загружает mp3-файлы через NSURLConnection. Воспроизведение, пауза и поиск работают отлично, однако я не могу понять, как извлечь продолжительность звука из файлов mp3, пока они все еще загружаются. Я хотел бы получить информа...