Mercurial > sdl-ios-xcode
comparison src/audio/macosx/SDL_coreaudio.c @ 2057:c2fed8bb6700
Oh for crying out loud...
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 28 Oct 2006 07:49:19 +0000 |
parents | 72cc2226d6a3 |
children | 866052b01ee5 |
comparison
equal
deleted
inserted
replaced
2056:ba0a03843db4 | 2057:c2fed8bb6700 |
---|---|
558 strdesc.mBitsPerChannel * strdesc.mChannelsPerFrame / 8; | 558 strdesc.mBitsPerChannel * strdesc.mChannelsPerFrame / 8; |
559 strdesc.mBytesPerPacket = | 559 strdesc.mBytesPerPacket = |
560 strdesc.mBytesPerFrame * strdesc.mFramesPerPacket; | 560 strdesc.mBytesPerFrame * strdesc.mFramesPerPacket; |
561 | 561 |
562 if (!prepare_audiounit(this, devname, iscapture, &strdesc)) { | 562 if (!prepare_audiounit(this, devname, iscapture, &strdesc)) { |
563 COREAUDIO_CloseDevice(this); \ | 563 COREAUDIO_CloseDevice(this); |
564 return 0; /* prepare_audiounit() will call SDL_SetError()... */ | 564 return 0; /* prepare_audiounit() will call SDL_SetError()... */ |
565 } | 565 } |
566 | 566 |
567 return 1; /* good to go. */ | 567 return 1; /* good to go. */ |
568 } | 568 } |