Mercurial > audlegacy-plugins
diff src/madplug/plugin.c @ 916:a8494c2a87eb trunk
[svn] revise reopen output code for #880. time count would be reset if output was closed. so I took two measures for it.
- 1. time count will be recorded and restored on reopen. this seems to be right way, but it causes a short stoppage of playback.
- 2. introduce a new plugin option "force_reopen_audio". if this is set to FALSE (default), decoder will not reopen output. this is a bit rude, but does not cause any interruption.
| author | yaz |
|---|---|
| date | Thu, 05 Apr 2007 21:12:59 -0700 |
| parents | 44a922a4a591 |
| children | 7e14701aef54 |
line wrap: on
line diff
--- a/src/madplug/plugin.c Thu Apr 05 10:47:18 2007 -0700 +++ b/src/madplug/plugin.c Thu Apr 05 21:12:59 2007 -0700 @@ -129,6 +129,7 @@ audmad_config.replaygain.track_mode = FALSE; audmad_config.title_override = FALSE; audmad_config.show_avg_vbr_bitrate = TRUE; + audmad_config.force_reopen_audio = FALSE; db = bmp_cfg_db_open(); if (db) { @@ -154,6 +155,8 @@ &audmad_config.id3_format); bmp_cfg_db_get_bool(db, "MAD", "show_avg_vbr_bitrate", &audmad_config.show_avg_vbr_bitrate); + bmp_cfg_db_get_bool(db, "MAD", "force_reopen_audio", + &audmad_config.force_reopen_audio); bmp_cfg_db_close(db); }
