AudioSession API 간단 사용법

내가 개발한 앱이 실행중일때 오디오가 어떻게 작동하는지를 설정할 수 있는 API로 앱내에서의 오디오가 어떻게 작동하는지를 설정할 수 있습니다.

1. 아이팟 오디오와 앱의 오디오가 같이 작동하는지

2. 아이팟 오디오를 끄고 앱의 오디오만 작동하는지

3. 녹음이 가능할 것인지

4. 오디오 플레이는 안하면서 오디오 처리만 할 것인지 등등을

 

세션 카테고리를 이용해서 설정하여 사용할 수 있습니다.

기본적으로 세션을 초기화 하는 코드는 다음과 같습니다.

 

디버깅이나 OSStatus 화인없이 꼭 필요한 부분만 작성된 코드입니다.

 

코드상에 번호가 매겨져있습니다. 번호대로 설명드립니다.

1. 앱 실행중에 전화가 오거나 문자가 오면 전화벨이 울립니다. 이때 앱의 오디오가 어떻게 작동하는지 설정합니다.

2. 이어폰으로 아이팟 음악을 듣다가 이어폰을 뽑으면 자동으로 음악이 정지됩니다 이렇게 오디오의 하드웨어 변경에 따른 앱의 오디오를 설정하는 부분입니다.

3. 다른 앱(아이팟)에서 오디오를 사용하고 있는지 체크해주는 부분입니다. 사용여부에 따라 4번과 같이 카테고리를 설정해주면 됩니다.

4. 앱의 오디오 Behavior를 설정하는 부분입니다. Behavior에 따라 iOS에서 제공하는 몇가지 카테고리가 있는데 다음과 같습니다.

– kAudioSessionCategory_SoloAmbientSound : 디폴트로 앱이 실행되면 아이팟 오디오가 꺼지고 앱의 오디오만 작동됩니다.

– kAudioSessionCategory_AmbientSound : 앱이 실행되면 아이팟 오디오는 계속 실행되면서 앱의 오디오도 같이 작동합니다. (오디오 세션설정을 안한 상태에서 앱을 실행하면 이상태더군요)

– kAudioSessionCategory_MediaPlayBack : 앱이 실행되면 아이팟 오디오가 꺼지고 앱의 오디오만 작동합니다. 더불어 하드웨어의 음소거기능이나 락을 걸어도 앱의 오디오가 계속 실행됩니다.

– kAudioSessionCategory_PlayAndRecord : 디폴트인 SoloAmbientSound와 같지만 녹음이 가능합니다.

– kAudioSessionCategory_AudioProcessing : 오디오 플레이는 안되고 오디오의 처리만 가능합니다.

These are usually good for paired and team exercises. Trivia and quiz icebreakers require your team to answer questions or solve problems. De final a Super BowlEste mega evento no fue as desde el principio. Se disput por primera vez en 1967 en el Memorial Coliseum de Los ngeles entre los Green Bay Packers y los Kansas City Chiefs, con victoria para el equipo de los “Cheeseheads” (cabezas de queso) que diriga un tcnico memorable: Vicent Lombardi.. This weekend, he said, there will be two. So it goes with a grass roots movement that hopes to use Tillman’s life as an inspiration for young people.. And last but not least you must receive the Key Card for steve young, by collecting 35 members of a team fake Oakleys for the collection pertaining to Steve young. That seems like a lot of work, and it is, but to receive a two star Steve young may make it worth it for you.. Louis Cardinals Bleacher CushionStadiums aren’t exactly known for having the most comfortable seats in the world. Busch stadium seats are reasonably comfortable, but if you’d like a bit oakley outlet of extra padding, or plan to sit in the bleachers, one of these seat cushions can make ray ban sunglasses your stay a bit more comfortable.. 2, the first time the Patriots were shut out at home since 1993.And don’t think that loss didn’t still sting.”You know, they like to talk all that. They got that win,” said tight end Rob Gronkowski, who had 109 yards receiving and a touchdown. So just lie on your back comfortably, take a nice deep breath in. And exhale. This should take you all of three seconds because the images are everywhere. For you fans of terrorism out there, you may be disappointed to learn that your home team has once Fake Oakleys again failed to bring home a victory.. The problem we had was the appropriate medical attention wasn’t given. We’re trying to make cheap jordan changes to that. Braces to protect the knee have never worked, despite the brace manufacturers’ best efforts to market them as “protective gear.” The braces strap onto the large muscles of the thigh and calf in an attempt to limit ligament rupturing during extremes of motion. The knee joint must bend and rotate to function normally; however, there simply is no external brace that can control the motion of the femur on the tibia without being screwed into the bone itself. ‘They’ll say things about wives, about girlfriends,’ he told me, ‘things that should really be off limits. Then they’ll all laugh. Fumbled the ensuing kickoff, Carolina recovered at the Cardinals three yard line and four plays later Newton found Mike Tolbert for a one yard score. The Panthers expected win probability increased Cheap Jerseys from 57 percent Cheap Jerseys to 96 percent after scoring two touchdowns in one minute and 32 seconds..

Watch Movie Online Logan (2017)

iOS에서 로컬 한글 폴더명 처리

한글 스트링을 처리하는 것은 생각보다 까다롭다.

특히나 앱내에서 파일시스템을 보여줄때 한글폴더 리스트를 가져와서 뿌려주게 되는 경우 사용상의 문제는 없지만 보여지는 부분에서 문제가 발생한다.

예를 들면, 테스트 -> ㅌㅔㅅㅡㅌㅡ

 

이렇게 자음과 모음들이 분리되어 사용되어집니다. 시뮬레이터에서 한글을 사용하면 볼 수 있는 현상과 동일합니다.

이게 웃긴게 NSLog에서 찍을때는 정상적으로 나오지만 앱에서 보여질때 분리가 안되어 보여지기때문에 헷갈릴 수 있습니다.

첨엔 인코딩 문제인지 알고 해결법을 찾느라 많이 헤맸습니다.

하지만 간단한 문제였습니다. 인코딩이 아니라 iOS상에서 파일/폴더명이 Canonical Mapping되어 사용되고 있는거였습니다. xCode에서는 NSString에 관련 처리를 해주는 메소드가 있었습니다.

[text decomposedStringWithCanonicalMapping] : 매핑적용

[text precomposedStringWithCanonicalMapping] : 매핑해제

 

하면 할 수록 묘한 매력이 있는 세계~

5 brutal realities of high school football from a coachExcluding cells that died over the 36 h experiment also cheap jerseys prolonged half life (cyan line, R2 = 0.7171; P 0.0001, extra sum of squares F test). Values were pooled from eight wells per condition, with experiments performed in quadruplicate.. (That’s some relief!) Relieved he reaches the factory gate and knocks at the huge gates. The guard opens the peephole and asks why he was cheap oakleys sunglasses being disturbed? (What now?) The thirsty traveler asks for water. The biggest fight of his professional career, the caramel bomber failed to solve the Ukrainian riddle in an action packed fight at the O2 World Arena in Berlin, Germany. Plagued with injuries throughout his entertaining and illustrious career, one of David’s most memorable moments on the hit reality show I’m cheap football jerseys A Celebrity, Get Me Out Of Here, is bathing in a waterfall and showing off his backside to the world.. It’s not like cheap jerseys I’m the only recruiter cheap jordan in the whole United States Army. I’m part of a recruiting unit. X rays were negative. C injured his right ankle on Smith’s TD.Ravens: Travel to Dallas on Nov. 20 to face the Cowboys, a team they’re 4 0 against since the series began in wholesale nfl jerseys 2000.. Hi I’m Evan from Gregg’s Greenway Cycles, and I’m going to talk to you a little bit about how to replace a spoke on a wheel. The first thing you want to do is get the wheel off the cheap nfl jerseys bike and strip it. This is not a revisionist story to suggest there has been no fault on Steffensen’s part. There has been. Like the Big 10 which, by the way, is up to 11 teams now, going on 12. It is going to call its six team subgroups the Legends Division and the Leaders Division. Enjoy unlimited play of all your favorite games. You can get an unlimited pass and play all month long 24/7. Trump insisted on making up for his busy schedule with a super swanky wedding gift: He removed his (as he described them) “platinum, diamond Harry Winston” cuff links and gave them to Sheen like it was nothing. Because that’s exactly what it was.. Construction of a building is an example of essential causality. Here, a builder constructing a house and the house built during this process are the cause and effect respectively. While it did not get the exclusive package for the 2007 season, do not rule it out next year. Sports fans of all ilk can get their favorites on DirecTV’s services and the company is luring international viewers with it foreign language stations. The ultimate guide for how to flirt with a girl and how to seduce women. Shoddy New Nike Basketball Shoes hand Nike Shoes Running baggage that they simply exercise with out in the open.