Use size-correct casts. Fixes some AMD64 sim warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9192 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
738a584a5c
commit
e2824c94fc
2 changed files with 3 additions and 3 deletions
|
@ -1016,7 +1016,7 @@ bool dsp_configure(int setting, void *value)
|
|||
sizeof(struct resample_data));
|
||||
/* Fall through!!! */
|
||||
case DSP_SWITCH_FREQUENCY:
|
||||
dsp->codec_frequency = ((int) value == 0) ? NATIVE_FREQUENCY : (int) value;
|
||||
dsp->codec_frequency = ((long) value == 0) ? NATIVE_FREQUENCY : (long) value;
|
||||
/* Account for playback speed adjustment when settingg dsp->frequency
|
||||
if we're called from the main audio thread. Voice UI thread should
|
||||
not need this feature.
|
||||
|
|
|
@ -755,12 +755,12 @@ static void codec_configure_callback(int setting, void *value)
|
|||
{
|
||||
switch (setting) {
|
||||
case CODEC_SET_FILEBUF_WATERMARK:
|
||||
conf_watermark = (unsigned int)value;
|
||||
conf_watermark = (unsigned long)value;
|
||||
set_filebuf_watermark(buffer_margin);
|
||||
break;
|
||||
|
||||
case CODEC_SET_FILEBUF_CHUNKSIZE:
|
||||
conf_filechunk = (unsigned int)value;
|
||||
conf_filechunk = (unsigned long)value;
|
||||
break;
|
||||
|
||||
case CODEC_DSP_ENABLE:
|
||||
|
|
Loading…
Reference in a new issue