diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2026-01-06 00:19:46 +0100 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2026-01-06 00:28:14 +0100 |
| commit | 572b6227417225ad595cb9768025001d9faa7314 (patch) | |
| tree | d42fb5f570f691dd0ed19d0b1cb88288b085e2b4 /mpeglib | |
| parent | 53cc18a718986fece2790ef71e87a1a16bbe3c23 (diff) | |
| download | tdemultimedia-master.tar.gz tdemultimedia-master.zip | |
Finishing the remaining renames from #97.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'mpeglib')
| -rw-r--r-- | mpeglib/lib/decoder/tplayPlugin.cpp | 30 | ||||
| -rw-r--r-- | mpeglib/lib/util/audio/audioIO_BeOS.cpp | 4 |
2 files changed, 17 insertions, 17 deletions
diff --git a/mpeglib/lib/decoder/tplayPlugin.cpp b/mpeglib/lib/decoder/tplayPlugin.cpp index 150b1ba2..2110cdcf 100644 --- a/mpeglib/lib/decoder/tplayPlugin.cpp +++ b/mpeglib/lib/decoder/tplayPlugin.cpp @@ -23,18 +23,18 @@ TplayPlugin::TplayPlugin() { info=new info_struct(); info->progname = NULL; - info->loop = FALSE; - info->in_seconds = FALSE; + info->loop = false; + info->in_seconds = false; info->speed = DEFAULT_SPEED; info->bits = DEFAULT_BITS; info->channels = DEFAULT_CHANNELS; info->buffer_size = BUFFER_SIZE; - info->show_usage = FALSE; - info->swap = FALSE; - info->forceraw = FALSE; - info->force = FALSE; + info->show_usage = false; + info->swap = false; + info->forceraw = false; + info->force = false; info->device = NULL; - info->verbose = FALSE; + info->verbose = false; info->optind = 0; info->buffer = NULL; info->firstblock = NULL; @@ -43,10 +43,10 @@ TplayPlugin::TplayPlugin() { info->writeblock = 0; info->readcount = 0; info->writecount = 0; - info->alldone = FALSE; - info->overflow = FALSE; - info->underflow = FALSE; - info->audioset = FALSE; + info->alldone = false; + info->overflow = false; + info->underflow = false; + info->audioset = false; info->headerskip = 0; info->blocksize = 4096; info->bytes_on_last_block = 0; @@ -88,9 +88,9 @@ void TplayPlugin::decoder_loop() { read_header(); if (info->channels == 1) - stereo = FALSE; + stereo = false; else - stereo = TRUE; + stereo = true; info->number_of_blocks = 0; bufferp = info->buffer; @@ -127,7 +127,7 @@ void TplayPlugin::decoder_loop() { } if (bytesread < info->blocksize) { - info->alldone = TRUE; + info->alldone = true; } break; @@ -211,7 +211,7 @@ void TplayPlugin::read_header() { swap_block(bufferp, bytesread); if (bytesread < info->blocksize) { - info->alldone = TRUE; + info->alldone = true; info->bytes_on_last_block = bytesread; return; } diff --git a/mpeglib/lib/util/audio/audioIO_BeOS.cpp b/mpeglib/lib/util/audio/audioIO_BeOS.cpp index 3c221f0e..80a1c638 100644 --- a/mpeglib/lib/util/audio/audioIO_BeOS.cpp +++ b/mpeglib/lib/util/audio/audioIO_BeOS.cpp @@ -175,7 +175,7 @@ void audioInit(int sampleSize,int frequency, int stereo) // Enter the stream - the_sub->EnterStream(NULL, TRUE, NULL, stream_func, NULL, TRUE); + the_sub->EnterStream(NULL, true, NULL, stream_func, NULL, true); } @@ -189,7 +189,7 @@ void audioSetVolume(int volume) void audioClose() { - the_sub->ExitStream(TRUE); + the_sub->ExitStream(true); the_sub->Unsubscribe(); delete_sem(ok_to_read); |
