 |
 |
|
 |
07-04-2009, 01:36 AM
|
#1 (permalink)
|
|
New Member
Join Date: Jul 2009
Posts: 4
|
how to change audiounit output buffer size?
I use AudioUnit to play sound stream, but the renderCallback just use 1024 bytes buffer, and I need 8 * 1024, how to change the buffer size, anyone can help me? Thaks a lot!
I open stream playback like this:
AudioUnitSetProperty (
io_unit_instance, // 5
kAudioUnitProperty_SetRenderCallback, // 6
kAudioUnitScope_Input, // 7
outputBus, // 8
&renderCallbackStruct, // 9
sizeof (renderCallbackStruct) // 10
);
|
|
|
07-05-2009, 09:00 AM
|
#2 (permalink)
|
|
New Member
Join Date: Jul 2009
Posts: 4
|
Any one an help me? Thank you!
Quote:
Originally Posted by liangsai
I use AudioUnit to play sound stream, but the renderCallback just use 1024 bytes buffer, and I need 8 * 1024, how to change the buffer size, anyone can help me? Thaks a lot!
I open stream playback like this:
AudioUnitSetProperty (
io_unit_instance, // 5
kAudioUnitProperty_SetRenderCallback, // 6
kAudioUnitScope_Input, // 7
outputBus, // 8
&renderCallbackStruct, // 9
sizeof (renderCallbackStruct) // 10
);
|
Any one an help me? Thank you!
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 544 |
| 42 members and 502 guests |
| !_UK@$, ackpth, atlwx, blex, checkright, codeflakes, coolman, Cubben2, delphipgmr, designomatt, eimanz, embedded, GeoLogTag, GreenApple, ianian, ihua, iPhoneSpain, Janek2004, JasonR, Johanovski, josechuis, jschorn, jumbo0, Kroupy, Kryckter, loganbest, lukeca, mr tickle, nathanp, nycos, pjlocko, pongteam2, Saurman, sbuchbin, SmallWonder, Stephane.tamis, striker, thomaswguy, x2on, z850, _Mac |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,490
Threads: 35,768
Posts: 156,681
Top Poster: smasher (2,448)
|
| Welcome to our newest member, pongteam2 |
|