mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Regularize casts as (int), so they are easier to find and review
This commit is contained in:
@@ -1087,9 +1087,9 @@ void ExportMixerPanel::OnPaint(wxPaintEvent & WXUNUSED(event))
|
||||
|
||||
for( int i = 0; i < mMixerSpec->GetNumTracks(); i++ )
|
||||
{
|
||||
mTrackRects[ i ].x = ( int )( mBoxWidth * 2 + radius - radius *
|
||||
mTrackRects[ i ].x = (int)( mBoxWidth * 2 + radius - radius *
|
||||
cos( totAngle / 2.0 - angle * ( i + 1 ) ) - mBoxWidth + 0.5 );
|
||||
mTrackRects[ i ].y = ( int )( mHeight * 0.5 - radius *
|
||||
mTrackRects[ i ].y = (int)( mHeight * 0.5 - radius *
|
||||
sin( totAngle * 0.5 - angle * ( i + 1.0 ) ) -
|
||||
0.5 * mTrackHeight + 0.5 );
|
||||
|
||||
@@ -1115,9 +1115,9 @@ void ExportMixerPanel::OnPaint(wxPaintEvent & WXUNUSED(event))
|
||||
|
||||
for( int i = 0; i < mMixerSpec->GetNumChannels(); i++ )
|
||||
{
|
||||
mChannelRects[ i ].x = ( int )( mBoxWidth * 4 - radius + radius *
|
||||
mChannelRects[ i ].x = (int)( mBoxWidth * 4 - radius + radius *
|
||||
cos( totAngle * 0.5 - angle * ( i + 1 ) ) + 0.5 );
|
||||
mChannelRects[ i ].y = ( int )( mHeight * 0.5 - radius *
|
||||
mChannelRects[ i ].y = (int)( mHeight * 0.5 - radius *
|
||||
sin( totAngle * 0.5 - angle * ( i + 1 ) ) -
|
||||
0.5 * mChannelHeight + 0.5 );
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ int ExportOGG::Export(AudacityProject *project,
|
||||
|
||||
// Encoding setup
|
||||
vorbis_info_init(&info);
|
||||
vorbis_encode_init_vbr(&info, numChannels, int(rate + 0.5), quality);
|
||||
vorbis_encode_init_vbr(&info, numChannels, (int)(rate + 0.5), quality);
|
||||
|
||||
// Retrieve tags
|
||||
if (!FillComment(project, &comment, metadata)) {
|
||||
|
||||
Reference in New Issue
Block a user