Revision 58 ccxAudioOutputModule.cpp

ccxAudioOutputModule.cpp (revision 58)
1
//
2
//  ccxAudioOutputModule.cpp
3
//  fusion
4
//
5
//  Created by Scott Halstvedt on 8/8/11.
6
//  Copyright 2011 __MyCompanyName__. All rights reserved.
7
//
1
/////////////////////////////////////////////////////////////////////////////
2
// Name:        modules/ccxAudioOutputModule.cpp
3
// Purpose:     Uses RtAudio library to collect audio input
4
// Author:      Scott Halstvedt
5
// Copyright:   (c) 2011 NUI Group
6
/////////////////////////////////////////////////////////////////////////////
8 7

9 8
#include "ccxAudioOutputModule.h"
10 9

......
48 47
AudioDataStream* ccxAudioOutputModule::recordAudioEnd() {
49 48
    unsigned int channels = 1, fs = AUDIO_HARDWARE_SAMPLE_RATE_I, bufferFrames, offset = 0;
50 49
    if(bRecording) {
51
        LOG(CCX_INFO, "done recording");
50
        LOG(CCX_DEBUG, "done recording");
52 51
        recorder.stopStream();
53
        LOG(CCX_INFO, "stopped stream");
52
        LOG(CCX_DEBUG, "stopped stream");
54 53
        recorder.closeStream();
55
        LOG(CCX_INFO, "closed input stream");
54
        LOG(CCX_DEBUG, "closed input stream");
56 55
        
57 56
        bRecording = false;
58 57
        
......
73 72
         
74 73
         recorder.closeStream();
75 74
         
76
         LOG(CCX_INFO, "done playing");
75
         LOG(CCX_DEBUG, "done playing");
77 76
         
78 77
         */
79 78
        
......
166 165
    }
167 166
    
168 167
    
169
	if(bRecording) LOG(CCX_INFO, "started recording");
168
	if(bRecording) LOG(CCX_DEBUG, "started recording");
170 169
    
171 170
    
172 171
}
173 172

174 173
void ccxAudioOutputModule::update() {
175 174
    
176
    LOG(CCX_INFO, "got update call");
175
    LOG(CCX_DEBUG, "got update call");
177 176
    
178 177
    if(this->input->getData() != NULL) {
179 178
    
......
223 222
    return 0;
224 223
}
225 224

226
// Interleaved buffers
227 225
int gotAudioOutput( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
228 226
                   double streamTime, RtAudioStreamStatus status, void *data )
229 227
{

Also available in: Unified diff