Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent 37b0caa758
commit bdff7895a8

@ -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)
{ {

@ -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;

@ -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();

Loading…
Cancel
Save