@@ -16,7 +16,7 @@ static AudioUnit au;
1616
1717#ifndef HAVE_AUDIOUNIT_AUDIOCOMPONENT_H
1818#define AudioComponent Component
19- #define AudioComponentDescription ComponentDescription
19+ #define AudioComponentDescription ComponentDescription
2020#define AudioComponentFindNext FindNextComponent
2121#define AudioComponentInstanceNew OpenAComponent
2222#define AudioComponentInstanceDispose CloseComponent
@@ -162,7 +162,7 @@ static int init(struct options *options)
162162 ad .mBytesPerPacket = ad .mBytesPerFrame ;
163163 ad .mFramesPerPacket = 1 ;
164164
165- packet_size = ad .mFramesPerPacket * ad .mChannelsPerFrame *
165+ packet_size = ad .mFramesPerPacket * ad .mChannelsPerFrame *
166166 (ad .mBitsPerChannel / 8 );
167167
168168 cd .componentType = kAudioUnitType_Output ;
@@ -190,17 +190,17 @@ static int init(struct options *options)
190190 goto err1 ;
191191
192192 chunk_size = max_frames ;
193- num_chunks = (options -> rate * ad .mBytesPerFrame * latency / 1000
193+ num_chunks = (options -> rate * ad .mBytesPerFrame * latency / 1000
194194 + chunk_size - 1 ) / chunk_size ;
195- buffer_len = (num_chunks + 1 ) * chunk_size ;
195+ buffer_len = (num_chunks + 1 ) * chunk_size ;
196196 if ((buffer = calloc (num_chunks + 1 , chunk_size )) == NULL )
197197 goto err ;
198198
199199 rc .inputProc = render_proc ;
200200 rc .inputProcRefCon = 0 ;
201201
202- buf_read_pos = 0 ;
203- buf_write_pos = 0 ;
202+ buf_read_pos = 0 ;
203+ buf_write_pos = 0 ;
204204 paused = 1 ;
205205
206206 if ((status = AudioUnitSetProperty (au ,
@@ -231,7 +231,7 @@ static void play(void *b, int i)
231231 delay_ms (100 );
232232
233233 while (i ) {
234- if ((j = write_buffer (b , i )) > 0 ) {
234+ if ((j = write_buffer (b , i )) > 0 ) {
235235 i -= j ;
236236 b += j ;
237237 } else
0 commit comments