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

чтение аудиокодирования

У меня есть волновые файлы, в заголовках которых я хочу прочитать.Мне просто было интересно, есть ли быстрая библиотека, которую я могу использовать, или какое-либо бесплатное программное обеспечение, с помощью которого я могу открыть свой звук, и дает мне некоторую полезную информацию заголовка.

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

iPhone - получить продолжительность аудиофайла линейного PCM

В моем приложении есть линейный файл PCM (.wav), и я хотел бы получить его продолжительность программно.Я смог найти следующее, используя AudioStreamBasicDescription, но не смог понять, как получить продолжительность в секундах. mFormatID mSampleRate mChannelsPerFrame mBytesPerPacket mFramesP...

0
голосов
3ответов
377 просмотров

iPhone - много шума в аудиофайле

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

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

Sounds effects in iPhone game

I'm making an opengl game for iPhone. And I'm about to start adding sound effects to the app. I wonder what's the best framework for this purpose. Is AV foundation my best option? Any others I'm missing, like Open AL perhaps?

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

A simple way to generate tones / sine waves on mac? (ruby would be nice)

I'm writing a program that involves playing back sine waves and combinations of sine waves... it must run on Mac, and I'm looking for a simple API that I can use. I'm open to ObjC, C, C++, Ruby, Python, etc.... I don't care what language as long as it's just a few lines of code. But Ruby would be...

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

IPhone SDK: Audio Session Error: -12986 .... after upgrade to 3.1

I am building an iPhone audio app using Audio Sessions. Prototype was functioning till I decided to upgrade to 3.1 After a lot of hunting I finally found that the session activation call was failing with error code 12986. I havent been able to find the reason for this anywhere. The NSError obj...

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

Can Xcode build against older versions of frameworks, statically?

Some MP3 files can't be opened by CoreAudio in OS X and iPhone OS 3.x. This was a bug that I submitted to Apple and has been fixed in 10.6.2. Unfortunately, I must still support iPhone OS 3.x, so I need to test for these files that mess up CoreAudio. I check them with a simple command line tool ...

7
голосов
4ответов
2509 просмотров

How to get iPhone OS 3.1 muffled keyboard sound?

I have added the iPhone's Tock sound to my own custom keyboard like this: NSString *path = [[NSBundle bundleWithIdentifier:@"com.apple.UIKit"] pathForResource:@"Tock" ofType:@"aiff"]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID); A...

5
голосов
3ответов
4791 просмотров

iPhone - AVAudioPlayer - convert decibel level into percent

I like to update an existing iPhone application which is using AudioQueue for playing audio files. The levels (peakPowerForChannel, averagePowerForChannel) were linear form 0.0f to 1.0f. Now I like to use the simpler class AVAudioPlayer which works fine, the only issue is that the levels which ...

3
голосов
1ответов
3486 просмотров

Keep playing sound with MPMoviePlayerController and locked screen?

When you're watching a video with MPMoviePlayerController and the user presses the top button to lock the screen, the app goes to sleep and so does the sound from the video. Is there any way to prevent the lock from stopping the sound? If not, is there a way to intercept the lock, to create a...

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

J2ME/Blackberry - get audio signal amplitude level?

Is it possible in j2me to measure signal amplitude of audio record made by JSR-135 Player? I know I can access buffer, but then what? Target model Bold 9000, supported formats PCM and AMR. Which format I should use? See also Blackberry Audio Recording Sample Code How To - Record Audio on a ...

8
голосов
1ответов
9559 просмотров

AVAudioPlayer initialization error

I initialize my AVAudioPlayer instance like: [self.audioPlayer initWithContentsOfURL:url error:&err]; url contains the path of an .m4a file The following error is displayed in the console when this line is called :"Error Domain=NSOSStatusErrorDomain Code=1685348671 "Operation could not be...

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

iPhone - convert mp3 to wav?

Is there a way I can convert an mp3 file into a wav/aiff in my iPhone app? I have an mp3 but I want to combine it with other files and the only way I know this can be done is when using PCM formats. Can anyone help me out here? Thanks. Some things I tried I tried using the AudioConverterFillC...

1
голосов
3ответов
4353 просмотров

How can I add an 'enhancement' sound filter in win7?

In windows 7, if one right clicks on the speaker icon in the taskbar, clicks playback devices, opens properties for one of the devices tab, then clicks the enhancements tab, one gets a list of filters ("Bass Boost" etc) that can be applied to that sound device. How can I register my own custom fi...

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

Avoiding floating point arithmetic

I wrote a small software synth for the iPhone. To further tune performance I measured my application with Shark and found that I am loosing a lot of time in float/SInt16 conversions. So I rewrote some parts to get around the conversions by pre-calculating lookup tables that return "ready-to-use"...

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

CoreAudio Playing Sounds out of Left and Right Channels

Is it possible with coreaudio to play a sound out of the left or right channel. For example I want to play one out of the left channel and one out of the right. At the moment I'm successfully using the following code to play a sound out of both channels: NSSound *mySound = [[NSSound alloc] ini...

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...

17
голосов
3ответов
9396 просмотров

How do I synthesize sounds with CoreAudio on iPhone/Mac

I'd like to play a synthesised sound in an iPhone. Instead of using a pre-recorded sound and using SystemSoundID to play an existing binary, I'd like to synthesise it. Partially, that's because I want to be able to play the sound continuously (e.g. when the user's finger is on the screen) instead...

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

Playing audio files on the iPhone

I've made a simple app, where I have a list of songs. The user taps a list entry and the song begins playing. I've lifted the SoundEffect class from Apple's sample projects (e.g. Metronome, BubbleLevel). It seems to work fine with the following code: // declare in the .h file SoundEffect *aud...

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

How to get the uncompressed file size of an MP3 file using CoreAudio API

Using CoreAudio, I am able to get the sampleRate (frames per second) and the file size, but in order to get the "total" time of the song, I need to know the Real file size of that compressed mp3. AudioStreamBasicDescription asbd; UInt32 asbdSize = sizeof(asbd); // get th...

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

Recommended Apple iPhone Audio Recording Settings and what file extension to use

I would like to get your recommendation on what settings to use for audio recording using AVAudioRecorder. Below is the settings I am using currently. Also, what file extension should I save it as so users on Mac or Windows can play it without difficulties? Right now I am saving the file out as...

6
голосов
2ответов
1723 просмотров

Mac libraries for audio processing/sound file splitting

I'm working on a quick application for my church to assist their recording of services. As of right now, they record the service with protools (LE 6.5 to be specific), run a compressor, normalizer, and limiter to the track, and export it as a wav. Prior to me helping them, they used another too...

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

Is there a way to render IPhone mic input directly into memory without working with files?

I see that the IPhone core audio does not include audioDevice objects to render audio input directly into RAM. I hear people talking about using files to do this(like speak here) but I am thinking there must be a way to do this otherwise. Your thoughts would be appreciated.

3
голосов
2ответов
4423 просмотров

How to obtain accurate decibel level with Cocoa?

We are creating an application which records the surrounding sound and take necessary action if the sound crosses specified Decibel. In order to achieve the application objective we are using following method from AudioQueueObject.h - (void) getAudioLevels: (Float32 *) levels peakLevels: (Fl...

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
голосов
5ответов
3977 просмотров

How can I detect if headphones are connected to an iPod touch G1?

There are many articles on how to detect if a microphone is connected to an iPod touch G2 via AudioSessionGetProperty / kAudioSessionProperty_AudioInputAvailable, but I have not seen any articles related to detection of headphones connected to an iPod touch G1. To review: iPod touch G2 hardware ...

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

What is the setup proceedure for an AUConverter for use in an Core Audio AUGraph

I want to convert from pcm 44100khz 16bit signed 2 channel interleaved (packed) format to 44100khz floats 2 channel non-interleaved (2 buffers) format for use in an AUGraph. I have been messing with it for a few days. whats the best way to set up an AUConverter to do this

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...

16
голосов
3ответов
9592 просмотров

AVAudioPlayer resetting currently playing sound and playing it from beginning

I'm having an issue using AVAudioPlayer where I want to reset a player if it's currently playing and have it play again. I try the following with no luck: The sound plays once but then the second time i select the button it stops the sound, the third time starts the sound up again. //Stop the ...

5
голосов
2ответов
4080 просмотров

HAL - how to monitor audio output on a mac

There is an application called wiretap available at http://www.ambrosiasw.com/utilities/wiretap/ This application can record the system audio. I would like to be able to do the same in my program. Any insights on what I need to do this? I am familiar with Core Audio but havent found anything ...