개발/미디어개발
[iOS] AudioQueueInputCallback buffer 오디오 데이터 자르기hagulu 하구루2017.02.25 16:45
AudioToolbox 에 AudioQueue 를 사용해서 레코딩을 하게 되는데,
void (*AudioQueueInputCallback)( void * inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer, const AudioTimeStamp * inStartTime, UInt32 inNumberPacketDescriptions, const AudioStreamPacketDescription *inPacketDescs);
struct AudioStreamPacketDescription { SInt64 mStartOffset; UInt32 mVariableFramesInPacket; UInt32 mDataByteSize; }; typedef struct AudioStreamPacketDescription AudioStreamPacketDescription;
'개발 > 미디어개발' 카테고리의 다른 글
[iOS] AudioQueueInputCallback buffer 오디오 데이터 자르기 (0) | 2017.02.25 |
---|---|
[미디어] ACC ADTS 생성하기 (0) | 2017.02.25 |
댓글
개발/미디어개발
[미디어] ACC ADTS 생성하기hagulu 하구루2017.02.25 16:44
AAC 는 최근 가장 많이 쓰이는 음성 코덱중에 하나이다.
Byte packet[7]; // fill in ADTS data packet[0] = (Byte)0xFF; packet[1] = (Byte)0xF9; packet[2] = (Byte)(((audioProfile-1)<<6) + (sampleIndex<<2) +(channels>>2)); packet[3] = (Byte)(((channels&0x3)<<6) + (dataLength>>11)); packet[4] = (Byte)((dataLength&0x7FF) >> 3); packet[5] = (Byte)(((dataLength&0x7)<<5) + 0x1F); packet[6] = (Byte)0xFC;
'개발 > 미디어개발' 카테고리의 다른 글
[iOS] AudioQueueInputCallback buffer 오디오 데이터 자르기 (0) | 2017.02.25 |
---|---|
[미디어] ACC ADTS 생성하기 (0) | 2017.02.25 |
댓글
개발/기타
[Git] git-svn을 이용하여 subversion git로 옮기기hagulu 하구루2017.02.25 16:43
기존 subversion 사용자들 중에 git로 옮기려는 수요가 꽤 많은 것으로 알고 있다.
'개발 > 기타' 카테고리의 다른 글
[Git] git-svn을 이용하여 subversion git로 옮기기 (0) | 2017.02.25 |
---|
댓글
2013 이전/기타
[UNIX] cat 리다이렉션 주의 사항hagulu 하구루2017.02.25 16:43
간단한 파일 입출력을 위해서 cat을 이용하는 경우가 종종 있을 것이다. 간단한 명령어기 때문에 별 생각 없이 써왔던 명령어였는데, 실수를 통해서 좀 깊이 알게되어 정리 해보려 한다.
'2013 이전 > 기타' 카테고리의 다른 글
[UNIX] cat 리다이렉션 주의 사항 (0) | 2017.02.25 |
---|---|
옛날 웹페이지를 찾아 보자! (0) | 2017.02.25 |
손쉽게 개발서버 구축하기 (0) | 2017.02.25 |
내 도메인을 활용한 무료 ddns 설정 dnsEver (0) | 2017.02.25 |
iOS6의 화려한 변신은 국내 사용자에겐 그림의 떡(?) (0) | 2017.02.25 |
[클라우드 서비스] 클라우드 서비스별 장단점 (0) | 2017.02.25 |
댓글
2013 이전/일단까고보자
[일단까고보자] 네이트 모바일앱hagulu 하구루2017.02.25 16:42
평소 뉴스 기사를 볼때 네이트 앱을 많이 사용한다. 시사, 스포츠, 연예 세개의 카테고리로 각각의 뉴스에 순위를 매겨서 보여준다. 일단 이슈가 되는 뉴스를 쉽게 한 눈에 볼 수 있기 때문에 많이 사용하게 된다. 그리고 베스트 리플이 잘 정리 되있어서 재치있는 리플을 쉽게 불 수 있다. 가끔 기사내용은 읽지 않고 베플만 보는 경우도 많다. 그리고 여자친구의 영향으로 가끔 톡이라는 것을 심심할때 보게 되는데 이것을 볼 때도 사용하게 된다. 출 퇴근 시간에 항상 보는 사용 빈도가 높은 앱 중의 하나이다.
.
'2013 이전 > 일단까고보자' 카테고리의 다른 글
[일단까고보자] 네이트 모바일앱 (0) | 2017.02.25 |
---|---|
[일단까고보자] 겔럭시 카메라 (0) | 2017.02.25 |
댓글
2013 이전/기타
옛날 웹페이지를 찾아 보자!hagulu 하구루2017.02.25 16:40
인터넷을 예전 모뎀시절 부터 사용해 왔다면, 예전 hanmail, empas 등의 예전 웹페이지들이 그리울때가 있을 것이다. 또는 자료 수집이나 참고용으로 예전 90년대 후반 2000년대 초반의 웹페이지가 필요할 때가 있을 수 있다.
'2013 이전 > 기타' 카테고리의 다른 글
[UNIX] cat 리다이렉션 주의 사항 (0) | 2017.02.25 |
---|---|
옛날 웹페이지를 찾아 보자! (0) | 2017.02.25 |
손쉽게 개발서버 구축하기 (0) | 2017.02.25 |
내 도메인을 활용한 무료 ddns 설정 dnsEver (0) | 2017.02.25 |
iOS6의 화려한 변신은 국내 사용자에겐 그림의 떡(?) (0) | 2017.02.25 |
[클라우드 서비스] 클라우드 서비스별 장단점 (0) | 2017.02.25 |
댓글
2013 이전/node.js
[node.js] Socket.io 맛보기 (웹 채팅 만들기)hagulu 하구루2017.02.25 16:34
node.js 가 나타나면서 가장 주목 받았던 모듈중에 하나였던 Socket.io를 소개 해보려고 한다.
var app = require('http').createServer(handler) , io = require('socket.io').listen(app) , fs = require('fs') app.listen(8005); function handler (req, res) { fs.readFile(__dirname + '/index.html', function (err, data) { if (err) { res.writeHead(500); return res.end('Error loading index.html'); } res.writeHead(200); res.end(data); }); } io.sockets.on('connection', function (socket) { socket.on('my other event', function (data) { console.log(data); socket.emit("my_message", data); socket.broadcast.emit("message", data); }); });
'2013 이전 > node.js' 카테고리의 다른 글
[node.js] Socket.io 맛보기 (웹 채팅 만들기) (0) | 2017.02.25 |
---|---|
[node.js] npm을 이용한 module 설치 (0) | 2017.02.25 |
[node.js] mac에서 node.js 설치 하기 (0) | 2017.02.25 |
댓글
2013 이전/iOS개발
[iOS 개발] UIButton title, image 위치 정리hagulu 하구루2017.02.25 16:32
UIButton을 사용하다 보면 title, image등을 버튼위에 올려서 사용하게 된다.
[btn setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft]; [btn setContentVerticalAlignment:UIControlContentVerticalAlignmentBottom];
[btn setContentEdgeInsets:UIEdgeInsetsMake(0, 10, 0, 0)]; [btn setImageEdgeInsets:UIEdgeInsetsMake(0, 10, 0, 0)]; [btn setTitleEdgeInsets:UIEdgeInsetsMake(0, 10, 0, 0)];
'2013 이전 > iOS개발' 카테고리의 다른 글
[iOS 개발] UIButton title, image 위치 정리 (0) | 2017.02.25 |
---|---|
[iPad 개발] PopoverController contentSize 문제 (0) | 2017.02.25 |
[iOS 개발] 안정적이고 flexible 한 UITableViewCell UI 구현하기 (0) | 2017.02.25 |
[iOS 개발] UIPopoverController 의 EKEventEditViewController 키보드 문제 (0) | 2017.02.25 |
[iOS 개발] 현재 view의 모든 text editing 중단하기 (0) | 2017.02.25 |
[iOS 개발] 유용한 각종 UI controller open source 정리 사이트 (0) | 2017.02.25 |
댓글
2013 이전/iOS개발
[iPad 개발] PopoverController contentSize 문제hagulu 하구루2017.02.25 16:32
PopoverController 를 사용하다보면 사이즈 때문에 골머리를 썩을 경우가 많을 것이다.
- (CGSize)contentSizeForViewInPopover { return CGSizeMake(320, 480); }
- (void) forcePopoverSize { CGSize currentSetSizeForPopover = self.contentSizeForViewInPopover; CGSize fakeMomentarySize = CGSizeMake(currentSetSizeForPopover.width - 1.0f, currentSetSizeForPopover.height - 1.0f); self.contentSizeForViewInPopover = fakeMomentarySize; } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self forcePopoverSize]; } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; CGSize currentSetSizeForPopover = self.contentSizeForViewInPopover; self.contentSizeForViewInPopover = currentSetSizeForPopover; }
'2013 이전 > iOS개발' 카테고리의 다른 글
[iOS 개발] UIButton title, image 위치 정리 (0) | 2017.02.25 |
---|---|
[iPad 개발] PopoverController contentSize 문제 (0) | 2017.02.25 |
[iOS 개발] 안정적이고 flexible 한 UITableViewCell UI 구현하기 (0) | 2017.02.25 |
[iOS 개발] UIPopoverController 의 EKEventEditViewController 키보드 문제 (0) | 2017.02.25 |
[iOS 개발] 현재 view의 모든 text editing 중단하기 (0) | 2017.02.25 |
[iOS 개발] 유용한 각종 UI controller open source 정리 사이트 (0) | 2017.02.25 |
댓글
2013 이전/iOS개발
[iOS 개발] 안정적이고 flexible 한 UITableViewCell UI 구현하기hagulu 하구루2017.02.25 16:31
UITableView 를 이용할때 Cell을 Customize 하여 사용하는 경우가 많을 것이다.
'2013 이전 > iOS개발' 카테고리의 다른 글
[iOS 개발] UIButton title, image 위치 정리 (0) | 2017.02.25 |
---|---|
[iPad 개발] PopoverController contentSize 문제 (0) | 2017.02.25 |
[iOS 개발] 안정적이고 flexible 한 UITableViewCell UI 구현하기 (0) | 2017.02.25 |
[iOS 개발] UIPopoverController 의 EKEventEditViewController 키보드 문제 (0) | 2017.02.25 |
[iOS 개발] 현재 view의 모든 text editing 중단하기 (0) | 2017.02.25 |
[iOS 개발] 유용한 각종 UI controller open source 정리 사이트 (0) | 2017.02.25 |
댓글
hagulu.com
.....
VISITED
Today : 3
Total : 178,411
Lately Post
Lately Comment