comparison audioio/AudioCallbackPlaySource.cpp @ 57:eb596ef12041

* Factor out uses of "Sonic Visualiser" in "common" code to applicationName() * Add ability to show work title + artist in top-left of pane (thinking of Vect but may be useful in SV in future) * A few other generalisations useful for Vect
author Chris Cannam
date Fri, 09 Nov 2007 17:46:58 +0000
parents 3c5756fb6a68
children 7b71da2d0631 89a689720ee9
comparison
equal deleted inserted replaced
56:75ad3f8f65aa 57:eb596ef12041
33 //#define DEBUG_AUDIO_PLAY_SOURCE 1 33 //#define DEBUG_AUDIO_PLAY_SOURCE 1
34 //#define DEBUG_AUDIO_PLAY_SOURCE_PLAYING 1 34 //#define DEBUG_AUDIO_PLAY_SOURCE_PLAYING 1
35 35
36 const size_t AudioCallbackPlaySource::m_ringBufferSize = 131071; 36 const size_t AudioCallbackPlaySource::m_ringBufferSize = 131071;
37 37
38 AudioCallbackPlaySource::AudioCallbackPlaySource(ViewManager *manager) : 38 AudioCallbackPlaySource::AudioCallbackPlaySource(ViewManager *manager,
39 QString clientName) :
39 m_viewManager(manager), 40 m_viewManager(manager),
40 m_audioGenerator(new AudioGenerator()), 41 m_audioGenerator(new AudioGenerator()),
42 m_clientName(clientName),
41 m_readBuffers(0), 43 m_readBuffers(0),
42 m_writeBuffers(0), 44 m_writeBuffers(0),
43 m_readBufferFill(0), 45 m_readBufferFill(0),
44 m_writeBufferFill(0), 46 m_writeBufferFill(0),
45 m_bufferScavenger(1), 47 m_bufferScavenger(1),