summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/recording/encoder_mp3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/recording/encoder_mp3.cpp')
-rw-r--r--kradio3/plugins/recording/encoder_mp3.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kradio3/plugins/recording/encoder_mp3.cpp b/kradio3/plugins/recording/encoder_mp3.cpp
index 2b2eb74..8d76fe2 100644
--- a/kradio3/plugins/recording/encoder_mp3.cpp
+++ b/kradio3/plugins/recording/encoder_mp3.cpp
@@ -76,7 +76,7 @@ void RecordingEncodingMP3::encode(const char *_buffer, size_t buffer_size, char
m_MP3BufferSize);
lameSerialization.unlock();
if (n < 0) {
- m_errorString += i18n("Error %1 while encoding mp3. ").arg(TQString().setNum(n));
+ m_errorString += i18n("Error %1 while encoding mp3. ").tqarg(TQString().setNum(n));
m_error = true;
} else if (n > 0) {
m_encodedSize += n;
@@ -86,7 +86,7 @@ void RecordingEncodingMP3::encode(const char *_buffer, size_t buffer_size, char
int r = fwrite(m_MP3Buffer, 1, n, m_MP3Output);
if (r <= 0) {
- m_errorString += i18n("Error %1 writing output. ").arg(TQString().setNum(r));
+ m_errorString += i18n("Error %1 writing output. ").tqarg(TQString().setNum(r));
m_error = true;
}
}
@@ -120,13 +120,13 @@ bool RecordingEncodingMP3::openOutput(const TQString &output)
if (lame_init_params(m_LAMEFlags) < 0) {
m_error = true;
- m_errorString += i18n("Cannot initialize libmp3lame parameters. ").arg(output);
+ m_errorString += i18n("Cannot initialize libmp3lame parameters. ").tqarg(output);
}
if (!m_error) {
id3tag_init(m_LAMEFlags);
id3tag_add_v2(m_LAMEFlags);
- TQString title = m_RadioStation->name() + TQString().sprintf(" - %s", (TQDateTime::currentDateTime().toString(Qt::ISODate)).ascii());
+ TQString title = m_RadioStation->name() + TQString().sprintf(" - %s", (TQDateTime::tqcurrentDateTime().toString(Qt::ISODate)).ascii());
TQString comment = i18n("Recorded by KRadio");
size_t l = title.length() + comment.length() + 10;
m_ID3Tags = new char[l];
@@ -140,7 +140,7 @@ bool RecordingEncodingMP3::openOutput(const TQString &output)
m_MP3Output = fopen(output.ascii(), "wb+");
if (!m_MP3Output) {
- m_errorString += i18n("Cannot open output file %1. ").arg(output);
+ m_errorString += i18n("Cannot open output file %1. ").tqarg(output);
m_error = true;
}
@@ -186,12 +186,12 @@ void RecordingEncodingMP3::closeOutput()
m_MP3BufferSize);
if (n < 0) {
m_error = true;
- m_errorString += i18n("Error %1 while encoding mp3. ").arg(TQString().setNum(n));
+ m_errorString += i18n("Error %1 while encoding mp3. ").tqarg(TQString().setNum(n));
} else if (n > 0) {
int r = fwrite(m_MP3Buffer, 1, n, m_MP3Output);
if (r <= 0) {
m_error = true;
- m_errorString += i18n("Error %1 writing output. ").arg(TQString().setNum(r));
+ m_errorString += i18n("Error %1 writing output. ").tqarg(TQString().setNum(r));
} else {
lame_mp3_tags_fid(m_LAMEFlags, m_MP3Output);
}