Rename a number of old tq methods that are no longer tq specific

pull/1/head
Timothy Pearson 13 years ago
parent a5de6a933b
commit 6e637ec10f

@ -116,9 +116,9 @@ AudioIOAIX::AudioIOAIX()
int fd = openDevice(); int fd = openDevice();
if( fd >= 0 ) if( fd >= 0 )
{ {
audio_status audiotqStatus; audio_status audioStatus;
memset( &audiotqStatus, 0, sizeof(audio_status) ); memset( &audioStatus, 0, sizeof(audio_status) );
ioctl(fd, AUDIO_STATUS, &audiotqStatus); ioctl(fd, AUDIO_STATUS, &audioStatus);
audio_buffer audioBuffer; audio_buffer audioBuffer;
memset( &audioBuffer, 0, sizeof(audio_buffer) ); memset( &audioBuffer, 0, sizeof(audio_buffer) );
@ -129,14 +129,14 @@ AudioIOAIX::AudioIOAIX()
/* /*
* default parameters * default parameters
*/ */
param(samplingRate) = audiotqStatus.srate; param(samplingRate) = audioStatus.srate;
param(fragmentSize) = audiotqStatus.bsize; param(fragmentSize) = audioStatus.bsize;
param(fragmentCount) = audioBuffer.write_buf_cap / audiotqStatus.bsize; param(fragmentCount) = audioBuffer.write_buf_cap / audioStatus.bsize;
param(channels) = audiotqStatus.channels; param(channels) = audioStatus.channels;
param(direction) = 2; param(direction) = 2;
param(format) = ( audiotqStatus.bits_per_sample==8 ) ? 8 param(format) = ( audioStatus.bits_per_sample==8 ) ? 8
: ( ( audiotqStatus.flags & AUDIO_BIG_ENDIAN ) ? 17 : 16 ); : ( ( audioStatus.flags & AUDIO_BIG_ENDIAN ) ? 17 : 16 );
} }
} }

@ -470,7 +470,7 @@ void AudioIOCSL::setParam(AudioParam p, int& value)
int AudioIOCSL::getParam(AudioParam p) int AudioIOCSL::getParam(AudioParam p)
{ {
CslErrorType error; CslErrorType error;
CslPcmtqStatus status; CslPcmStatus status;
switch(p) switch(p)
{ {

@ -664,7 +664,7 @@ gsl_engine_init (gboolean run_threaded,
gsl_engine_threaded = run_threaded; gsl_engine_threaded = run_threaded;
gsl_externvar_bsize = block_size; gsl_externvar_bsize = block_size;
gsl_externvar_sample_freq = sample_freq; gsl_externvar_sample_freq = sample_freq;
gsl_externvar_sub_sample_mask = sub_sample_mask << 2; /* shift out sizeof (float) tqalignment */ gsl_externvar_sub_sample_mask = sub_sample_mask << 2; /* shift out sizeof (float) alignment */
gsl_externvar_sub_sample_steps = sub_sample_mask + 1; gsl_externvar_sub_sample_steps = sub_sample_mask + 1;
_gsl_tick_stamp_set_leap (block_size); _gsl_tick_stamp_set_leap (block_size);

@ -26,14 +26,14 @@ extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
/* IEEE 754 single precision floating point tqlayout: /* IEEE 754 single precision floating point layout:
* 31 30 23 22 0 * 31 30 23 22 0
* +--------+---------------+---------------+ * +--------+---------------+---------------+
* | s 1bit | e[30:23] 8bit | f[22:0] 23bit | * | s 1bit | e[30:23] 8bit | f[22:0] 23bit |
* +--------+---------------+---------------+ * +--------+---------------+---------------+
* B0------------------->B1------->B2-->B3--> * B0------------------->B1------->B2-->B3-->
* *
* IEEE 754 double precision floating point tqlayout: * IEEE 754 double precision floating point layout:
* 63 62 52 51 32 31 0 * 63 62 52 51 32 31 0
* +--------+----------------+----------------+ +---------------+ * +--------+----------------+----------------+ +---------------+
* | s 1bit | e[62:52] 11bit | f[51:32] 20bit | | f[31:0] 32bit | * | s 1bit | e[62:52] 11bit | f[51:32] 20bit | | f[31:0] 32bit |

@ -201,7 +201,7 @@ typedef struct
static GslErrorType static GslErrorType
wav_read_data_header (gint fd, wav_read_data_header (gint fd,
DataHeader *header, DataHeader *header,
guint byte_tqalignment) guint byte_alignment)
{ {
guint n_bytes; guint n_bytes;
@ -241,12 +241,12 @@ wav_read_data_header (gint fd,
WAV_DEBUG ("failed to seek while skipping sub-chunk"); WAV_DEBUG ("failed to seek while skipping sub-chunk");
return GSL_ERROR_IO; return GSL_ERROR_IO;
} }
return wav_read_data_header (fd, header, byte_tqalignment); return wav_read_data_header (fd, header, byte_alignment);
} }
if (header->data_length < 1 || header->data_length % byte_tqalignment != 0) if (header->data_length < 1 || header->data_length % byte_alignment != 0)
{ {
WAV_DEBUG ("invalid data length (%u) or tqalignment (%u)", WAV_DEBUG ("invalid data length (%u) or alignment (%u)",
header->data_length, header->data_length % byte_tqalignment); header->data_length, header->data_length % byte_alignment);
return GSL_ERROR_FORMAT_INVALID; return GSL_ERROR_FORMAT_INVALID;
} }

@ -158,7 +158,7 @@ static void
_engine_schedule_grow (EngineSchedule *sched, _engine_schedule_grow (EngineSchedule *sched,
guint leaf_level) guint leaf_level)
{ {
guint ll = 1 << g_bit_storage (leaf_level); /* power2 growth tqalignment, ll >= leaf_level+1 */ guint ll = 1 << g_bit_storage (leaf_level); /* power2 growth alignment, ll >= leaf_level+1 */
if (sched->leaf_levels < ll) if (sched->leaf_levels < ll)
{ {

@ -1127,7 +1127,7 @@ Object_stub::Object_stub(Connection *connection, long objectID)
Object_stub::~Object_stub() Object_stub::~Object_stub()
{ {
/* /*
* tqinvalidate method lookup cache entries of this object, as it might * invalidate method lookup cache entries of this object, as it might
* happen, that another Object_stub is created just at the same position * happen, that another Object_stub is created just at the same position
*/ */
if(_lookupMethodCache) if(_lookupMethodCache)

@ -254,7 +254,7 @@ int suspend(Arts::SoundServer server)
// Display server status information // Display server status information
void status(Arts::SoundServerV2 server) void status(Arts::SoundServerV2 server)
{ {
Arts::RealtimetqStatus rttqStatus = server.realtimetqStatus(); Arts::RealtimeStatus rtStatus = server.realtimeStatus();
long seconds = server.secondsUntilSuspend(); long seconds = server.secondsUntilSuspend();
cout << "server status: "; cout << "server status: ";
@ -274,7 +274,7 @@ void status(Arts::SoundServerV2 server)
} }
cout << "real-time status: "; cout << "real-time status: ";
switch (rttqStatus) switch (rtStatus)
{ {
case Arts::rtRealtime: case Arts::rtRealtime:
cout << "real-time" << endl; cout << "real-time" << endl;

@ -1,6 +1,6 @@
/* /*
NEW KMedia2 tqlayout: NEW KMedia2 layout:
=================== ===================
KMedia1 itself doesn't play anything. Instead it has a backend for every KMedia1 itself doesn't play anything. Instead it has a backend for every

@ -163,7 +163,7 @@ interface SimpleSoundServer : PlayObjectFactory
object createObject(string name); object createObject(string name);
}; };
enum RealtimetqStatus { rtRealtime, rtNoSupport, rtNoWrapper, rtNoRealtime }; enum RealtimeStatus { rtRealtime, rtNoSupport, rtNoWrapper, rtNoRealtime };
/** /**
* This is an enhanced sound server interface which can be used to * This is an enhanced sound server interface which can be used to
@ -171,7 +171,7 @@ enum RealtimetqStatus { rtRealtime, rtNoSupport, rtNoWrapper, rtNoRealtime };
*/ */
interface SoundServer : SimpleSoundServer interface SoundServer : SimpleSoundServer
{ {
readonly attribute RealtimetqStatus realtimetqStatus; readonly attribute RealtimeStatus realtimeStatus;
/** /**
* Returns how many seconds you have to wait _now_ for the soundserver * Returns how many seconds you have to wait _now_ for the soundserver

@ -39,14 +39,14 @@ using namespace Arts;
#ifdef HAVE_REALTIME_SCHED #ifdef HAVE_REALTIME_SCHED
#include <sched.h> #include <sched.h>
RealtimetqStatus SoundServer_impl::realtimetqStatus() { RealtimeStatus SoundServer_impl::realtimeStatus() {
int sched = sched_getscheduler(0); int sched = sched_getscheduler(0);
if (sched == SCHED_FIFO || sched == SCHED_RR) return rtRealtime; if (sched == SCHED_FIFO || sched == SCHED_RR) return rtRealtime;
if (!getenv("STARTED_THROUGH_ARTSWRAPPER")) return rtNoWrapper; if (!getenv("STARTED_THROUGH_ARTSWRAPPER")) return rtNoWrapper;
return rtNoRealtime; return rtNoRealtime;
} }
#else #else
RealtimetqStatus SoundServer_impl::realtimetqStatus() { RealtimeStatus SoundServer_impl::realtimeStatus() {
return rtNoSupport; return rtNoSupport;
} }
#endif #endif

@ -35,7 +35,7 @@ namespace Arts {
class SoundServer_impl : virtual public SoundServer_skel, class SoundServer_impl : virtual public SoundServer_skel,
public SimpleSoundServer_impl public SimpleSoundServer_impl
{ {
RealtimetqStatus realtimetqStatus(); RealtimeStatus realtimeStatus();
long secondsUntilSuspend(); long secondsUntilSuspend();
bool suspend(); bool suspend();
bool suspended(); bool suspended();

@ -157,7 +157,7 @@ struct TestWrapper : public TestCase
d.value(6); d.value(6);
testEquals(1, active_d_objects); testEquals(1, active_d_objects);
b = d; // uses operator, not constructor. should tqinvalidate A::cacheOK b = d; // uses operator, not constructor. should invalidate A::cacheOK
testEquals(6, b.value()); testEquals(6, b.value());
testEquals(1, active_d_objects); testEquals(1, active_d_objects);

Loading…
Cancel
Save