Re: Sound Issue after upgrading AdvanceMame

Tim Reagant <[email protected]> Mon, 2 Nov 2015 20:14:07 -0500
Newsgroups gmane.comp.games.mame.advancemame.user
Message-ID <[email protected]>
Some further information.

Log file indicates a possible sound buffer underflow:

Warning message comes from advance/osd/video.c in function osd2_frame:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (context->config.internalresample_flag) {
         sample_recount = sample_count - latency_diff;

         /* lower limit of number of samples */
         sample_limit = sample_count / 32;
         if (sample_limit < 16)
             sample_limit = 16;

         /* correction for a generic sound buffer underflow. */
         /* generally happen that the DMA buffer underflow, */
         /* reporting a fill state instead of an empty one. */
         if (sample_recount < sample_limit) {
-->         log_std(("WARNING:emu:video: too small sound samples %d 
adjusted to %d\n", sample_recount, sample_limit));
             sample_recount = sample_limit;
         }

         /* ask always at the core to use the nominal sample rate */
         latency_diff = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Warnings from the log file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound:vsync: soundb_vsync_volume(volume:0)
sound:vsync: w_set_master_volume(0)
WARNING:emu:video: too small sound samples -115 adjusted to 24
WARNING:emu:video: too small sound samples -115 adjusted to 24
WARNING:emu:video: too small sound samples -115 adjusted to 24
WARNING:emu:video: too small sound samples -115 adjusted to 24
WARNING:emu:video: too small sound samples -115 adjusted to 24
WARNING:emu:video: too small sound samples -209 adjusted to 24
WARNING:emu:video: too small sound samples -209 adjusted to 24
WARNING:emu:video: too small sound samples -209 adjusted to 24
WARNING:emu:video: too small sound samples -209 adjusted to 24
WARNING:emu:video: too small sound samples -209 adjusted to 24
WARNING:emu:video: too small sound samples -212 adjusted to 24
WARNING:emu:video: too small sound samples -212 adjusted to 24
WARNING:emu:video: too small sound samples -212 adjusted to 24
WARNING:emu:video: too small sound samples -212 adjusted to 24

etc, etc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sound system init section from the log file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
osd: osd_start_audio_stream(sample_rate:44100, stereo_flag:1)
osd: osd2_sound_init(sample_rate:44100, stereo_flag:1)
sound:vsync: soundb_vsync_init(id:3, rate:44100, stereo:1, buffer_time:0.3)
sound:vsync: w_sound_device_init(3, 44100)
wss:error VIA686: no compatble device found.
Intel_ICH: Intel ICH4 integrated AC97 audio found.
Intel_ICH: PCI BASE0 at I/O B800
Intel_ICH: PCI BASE1 at I/O B400
sound:vsync: rate 48000
sound:vsync: device Intel ICH4 integrated AC97 audio
sound: select driver vsync
emu:sound: dft sample 1024, size 1024
sound:vsync: soundb_vsync_start(silence_time:0.05)
sound:vsync: soundb_vsync_volume(volume:1)
sound:vsync: w_set_master_volume(255)
osd: osd_start_audio_stream return 48000 rate
glue: sound samples for frame 792
Namco: freq fractional bits = 16: internal freq = 192000, output freq = 
192000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------------
___
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/advancemame-users