Ticket #1699: mfd.3.patch
File mfd.3.patch, 22.8 KB (added by , 18 years ago) |
---|
-
settings.pro
2 2 #CONFIG += release 3 3 4 4 isEmpty( PREFIX ) { 5 PREFIX = /usr /local5 PREFIX = /usr 6 6 } 7 7 8 LIBVERSION = 0.1 88 LIBVERSION = 0.19 9 9 10 10 INCLUDEPATH += $${PREFIX}/include 11 11 -
mfd/plugins/audio/audio.cpp
45 45 // thr RTSP streamer can use to get PCM bits to send out. 46 46 // 47 47 48 output = AudioOutput::OpenAudio("NULL", 16, 2, 44100, AUDIOOUTPUT_MUSIC, true );48 output = AudioOutput::OpenAudio("NULL", 16, 2, 44100, AUDIOOUTPUT_MUSIC, true, false ); 49 49 output->bufferOutputData(true); 50 50 output->setBufferSize(output_buffer_size * 1024); 51 51 output->SetBlocking(false); … … 516 516 #else 517 517 QString adevice = gContext->GetSetting("AudioDevice"); 518 518 // TODO: Error checking that device is opened correctly! 519 output = AudioOutput::OpenAudio(adevice, 16, 2, 44100, AUDIOOUTPUT_MUSIC, true );519 output = AudioOutput::OpenAudio(adevice, 16, 2, 44100, AUDIOOUTPUT_MUSIC, true, false ); 520 520 output->setBufferSize(output_buffer_size * 1024); 521 521 output->SetBlocking(false); 522 522 output->addListener(audio_listener); -
mfd/plugins/mmusic/mmusic.cpp
77 77 // This is a "magic" number signifying what we want to see 78 78 // 79 79 80 desired_database_version = "100 5";80 desired_database_version = "1007"; 81 81 82 82 // 83 83 // Initialize our container and set things up for a clean slate … … 526 526 527 527 MSqlQuery query(MSqlQuery::InitCon()); 528 528 529 query.exec("SELECT intid, filename FROM musicmetadata;");529 query.exec("SELECT song_id, filename FROM music_songs ;"); 530 530 531 531 if(query.isActive()) 532 532 { … … 544 544 545 545 ++count; 546 546 MSqlQuery delete_query(MSqlQuery::InitCon()); 547 delete_query.prepare("DELETE FROM music metadata WHERE intid = ?");547 delete_query.prepare("DELETE FROM music_songs WHERE song_id = ?"); 548 548 delete_query.bindValue(0, query.value(0).toUInt()); 549 549 delete_query.exec(); 550 550 log(QString("removed item %1 (\"%2\") from the database") … … 556 556 } 557 557 else 558 558 { 559 warning("something wrong with your music metadatatable");559 warning("something wrong with your music_songs table"); 560 560 } 561 561 562 562 if(count > 0) … … 638 638 639 639 MSqlQuery query(MSqlQuery::InitCon()); 640 640 641 query.exec("SELECT COUNT(filename) FROM music metadata;");641 query.exec("SELECT COUNT(filename) FROM music_songs;"); 642 642 643 643 if(!query.isActive()) 644 644 { 645 645 if(!sent_musicmetadata_table_warning) 646 646 { 647 warning("cannot get data from a table called music metadata");647 warning("cannot get data from a table called music_songs"); 648 648 sent_musicmetadata_table_warning = true; 649 649 } 650 650 return false; 651 651 652 652 } 653 653 654 query.exec("SELECT COUNT(playlist id) FROM musicplaylist");654 query.exec("SELECT COUNT(playlist_id) FROM music_saved_playlists "); 655 655 656 656 if(!query.isActive()) 657 657 { … … 977 977 978 978 MSqlQuery query(MSqlQuery::InitCon()); 979 979 980 query.prepare("SELECT intid, artist, album, title, genre, "980 /* query.prepare("SELECT intid, artist, album, title, genre, " 981 981 "year, tracknum, length, rating, " 982 982 "lastplay, playcount, mythdigest, size, date_added, " 983 983 "date_modified, format, description, comment, " 984 984 "compilation, composer, disc_count, disc_number, " 985 985 "track_count, start_time, stop_time, eq_preset, " 986 986 "relative_volume, sample_rate, bpm " 987 "FROM musicmetadata WHERE filename = ? ;"); 987 "FROM musicmetadata WHERE filename = ? ;");*/ 988 query.prepare("SELECT music_songs.song_id, music_artists.artist_name, " 989 "music_albums.album_name, music_songs.name, " 990 "music_genres.genre, music_songs.year, " 991 "music_songs.track, music_songs.length, " 992 "music_songs.rating, music_songs.lastplay, " 993 "music_songs.numplays, music_songs.mythdigest," 994 "music_songs.size, music_songs.date_entered, " 995 "music_songs.date_modified, music_songs.format, " 996 "music_songs.description, music_songs.comment, " 997 "music_songs.compilation, music_artists_1.artist_name AS composer, " 998 "music_songs.disc_count, music_songs.disc_number, " 999 "music_songs.track_count, music_songs.start_time, " 1000 "music_songs.stop_time, music_songs.eq_preset, " 1001 "music_songs.relative_volume, music_songs.bitrate, " 1002 "music_songs.bpm " 1003 "FROM (((music_songs INNER JOIN music_albums ON music_songs.album_id = music_albums.album_id) INNER JOIN music_artists ON music_songs.artist_id = music_artists.artist_id) INNER JOIN music_genres ON music_songs.genre_id = music_genres.genre_id) INNER JOIN music_artists AS music_artists_1 ON music_songs.compilationartist_id = music_artists_1.artist_id WHERE FILENAME = ? ;"); 988 1004 989 1005 query.bindValue(0, sqlfilename.utf8()); 990 1006 … … 1198 1214 1199 1215 MSqlQuery query(MSqlQuery::InitCon()); 1200 1216 1201 query.prepare("INSERT INTO music metadata(filename, mythdigest) "1217 query.prepare("INSERT INTO music_songs(filename, mythdigest) " 1202 1218 "values ( ? , ?)"); 1203 1219 1204 1220 query.bindValue(0, sqlfilename.utf8()); … … 1213 1229 return NULL; 1214 1230 } 1215 1231 1216 query.prepare("SELECT intid FROM musicmetadata"1232 query.prepare("SELECT song_id FROM music_songs " 1217 1233 "WHERE mythdigest = ? ;"); 1218 1234 query.bindValue(0, new_item->getMythDigest()); 1219 1235 query.exec(); … … 1322 1338 1323 1339 MSqlQuery query(MSqlQuery::InitCon()); 1324 1340 1325 query.prepare("UPDATE musicmetadata SET " 1326 "title = ? , " 1327 "artist = ? , " 1328 "album = ? , " 1329 "genre = ? , " 1341 1342 //Genrecheck 1343 //Albumcheck 1344 //Artist 1345 int ArtistID; 1346 query.prepare("SELECT music_artists.artist_id FROM music_artists " 1347 " WHERE (((music_artists.artist_name)=:ARTIST));"); 1348 query.bindValue(":ARTIST", an_item->getArtist().utf8()); 1349 query.exec(); 1350 // cout << query.executedQuery() << endl; 1351 if (query.size() > 0) 1352 { 1353 query.next(); 1354 ArtistID = query.value(0).toInt(); 1355 } 1356 else 1357 { 1358 query.prepare("INSERT INTO music_artists (artist_name) VALUES (:ARTIST);"); 1359 query.bindValue(":ARTIST", an_item->getArtist().utf8()); 1360 query.exec(); 1361 // cout << query.executedQuery() << endl; 1362 query.prepare("SELECT music_artists.artist_id FROM music_artists " 1363 " WHERE (((music_artists.artist_name)=:ARTIST));"); 1364 query.bindValue(":ARTIST", an_item->getArtist().utf8()); 1365 query.exec(); 1366 // cout << query.executedQuery() << endl; 1367 query.next(); 1368 ArtistID = query.value(0).toInt(); 1369 } 1370 1371 //Compilation Artist 1372 int CoArtistID; 1373 query.prepare("SELECT music_artists.artist_id FROM music_artists " 1374 " WHERE (((music_artists.artist_name)=:ARTIST));"); 1375 query.bindValue(":ARTIST", an_item->getComposer().utf8()); 1376 query.exec(); 1377 // cout << query.executedQuery() << endl; 1378 if (query.size() > 0) 1379 { 1380 query.next(); 1381 CoArtistID = query.value(0).toInt(); 1382 } 1383 else 1384 { 1385 query.prepare("INSERT INTO music_artists (artist_name) VALUES (:ARTIST);"); 1386 query.bindValue(":ARTIST", an_item->getComposer().utf8()); 1387 query.exec(); 1388 // cout << query.executedQuery() << endl; 1389 query.prepare("SELECT music_artists.artist_id FROM music_artists " 1390 " WHERE (((music_artists.artist_name)=:ARTIST));"); 1391 query.bindValue(":ARTIST", an_item->getComposer().utf8()); 1392 query.exec(); 1393 // cout << query.executedQuery() << endl; 1394 query.next(); 1395 CoArtistID = query.value(0).toInt(); 1396 } 1397 1398 //Album 1399 int AlbumID; 1400 query.prepare("SELECT music_albums.album_id FROM music_albums " 1401 " WHERE (((music_albums.album_name)=:ALBUM));"); 1402 query.bindValue(":ALBUM", an_item->getAlbum().utf8()); 1403 query.exec(); 1404 // cout << query.executedQuery() << endl; 1405 if (query.size() > 0) 1406 { 1407 query.next(); 1408 AlbumID = query.value(0).toInt(); 1409 } 1410 else 1411 { 1412 query.prepare("INSERT INTO music_albums (album_name) VALUES (:ALBUM);"); 1413 query.bindValue(":ALBUM", an_item->getAlbum().utf8()); 1414 query.exec(); 1415 // cout << query.executedQuery() << endl; 1416 1417 query.prepare("SELECT music_albums.album_id FROM music_albums " 1418 " WHERE (((music_albums.album_name)=:ALBUM));"); 1419 query.bindValue(":ALBUM", an_item->getAlbum().utf8()); 1420 query.exec(); 1421 // cout << query.executedQuery() << endl; 1422 query.next(); 1423 1424 AlbumID = query.value(0).toInt(); 1425 } 1426 1427 //Genres 1428 int GenreID; 1429 query.prepare("SELECT music_genres.genre_id FROM music_genres " 1430 " WHERE (((music_genres.genre)=:GENRE));"); 1431 query.bindValue(":GENRE", an_item->getGenre().utf8()); 1432 query.exec(); 1433 // cout << query.executedQuery() << endl; 1434 if (query.size() > 0) 1435 { 1436 query.next(); 1437 GenreID = query.value(0).toInt(); 1438 } 1439 else 1440 { 1441 query.prepare("INSERT INTO music_genres (genre) VALUES (:GENRE);"); 1442 query.bindValue(":GENRE", an_item->getGenre().utf8()); 1443 query.exec(); 1444 // cout << query.executedQuery() << endl; 1445 1446 query.prepare("SELECT music_genres.genre_id FROM music_genres " 1447 " WHERE (((music_genres.genre)=:GENRE));"); 1448 query.bindValue(":GENRE", an_item->getGenre().utf8()); 1449 query.exec(); 1450 // cout << query.executedQuery() << endl; 1451 query.next(); 1452 GenreID = query.value(0).toInt(); 1453 } 1454 1455 query.prepare("UPDATE music_songs SET " 1456 "name = ? , " 1457 "artist_id = ? , " 1458 "album_id = ? , " 1459 "genre_id = ? , " 1330 1460 "year = ? , " 1331 "track num= ? , "1461 "track = ? , " 1332 1462 "length = ? , " 1333 1463 "rating = ? , " 1334 1464 "lastplay = ? , " 1335 " playcount= ? , "1465 "numplays = ? , " 1336 1466 "mythdigest = ? , " 1337 1467 "size = ? , " 1338 "date_ added = ? , "1468 "date_entered = ? , " 1339 1469 "date_modified = ? , " 1340 1470 "format = ? , " 1341 1471 "description = ? , " 1342 1472 "comment = ? , " 1343 1473 "compilation = ? , " 1344 "comp oser= ? , "1474 "compilationartist_id = ? , " 1345 1475 "disc_count = ? , " 1346 1476 "disc_number = ? , " 1347 1477 "track_count = ? , " … … 1349 1479 "stop_time = ? , " 1350 1480 "eq_preset = ? , " 1351 1481 "relative_volume = ? , " 1352 " sample_rate = ? , "1482 "bitrate = ? , " 1353 1483 "bpm = ? " 1354 "WHERE intid = ? ;");1484 "WHERE song_id = ? ;"); 1355 1485 1356 1486 query.bindValue(0, an_item->getTitle().utf8()); 1357 query.bindValue(1, an_item->getArtist().utf8());1358 query.bindValue(2, an_item->getAlbum().utf8());1359 query.bindValue(3, an_item->getGenre().utf8());1487 query.bindValue(1, ArtistID); 1488 query.bindValue(2, AlbumID); 1489 query.bindValue(3, GenreID); 1360 1490 query.bindValue(4, an_item->getYear()); 1361 1491 query.bindValue(5, an_item->getTrack()); 1362 1492 query.bindValue(6, an_item->getLength()); … … 1371 1501 query.bindValue(15, an_item->getDescription().utf8()); 1372 1502 query.bindValue(16, an_item->getComment().utf8()); 1373 1503 query.bindValue(17, an_item->getCompilation()); 1374 query.bindValue(18, an_item->getComposer().utf8());1504 query.bindValue(18, CoArtistID); 1375 1505 query.bindValue(19, an_item->getDiscCount()); 1376 1506 query.bindValue(20, an_item->getDiscNumber()); 1377 1507 query.bindValue(21, an_item->getTrackCount()); … … 1467 1597 1468 1598 MSqlQuery query(MSqlQuery::InitCon()); 1469 1599 1470 query.prepare("SELECT name, songlist, playlistid FROM musicplaylist"1600 query.prepare("SELECT playlist_name, playlist_songs, playlist_id FROM music_saved_playlists " 1471 1601 "WHERE name != ? " 1472 "AND name != ? " 1473 "AND hostname = ? ;"); 1602 "AND name != ? ;"); 1474 1603 1475 1604 query.bindValue(0, "backup_playlist_storage"); 1476 1605 query.bindValue(1, "default_playlist_storage"); 1477 query.bindValue(2, hostname);1478 1606 1479 1607 query.exec(); 1480 1608 … … 1617 1745 1618 1746 MSqlQuery query(MSqlQuery::InitCon()); 1619 1747 1620 query.prepare("UPDATE musicplaylist SET songlist = ?, name = ? WHERE " 1621 "playlistid = ? ;"); 1748 int songcount = 0, playtime = 0, an_int; 1749 QStringList list = QStringList::split(",", db_song_list_string); 1750 QStringList::iterator it = list.begin(); 1751 for (; it != list.end(); it++) 1752 { 1753 an_int = QString(*it).toInt(); 1754 if (an_int != 0) 1755 { 1756 songcount++; 1757 query.prepare("SELECT length FROM music_songs WHERE song_id = :ID ;"); 1758 query.bindValue(":ID", an_int); 1759 query.exec(); 1760 query.next(); 1761 playtime += query.value(0).toInt(); 1762 } 1763 } 1622 1764 1765 query.prepare("UPDATE music_saved_playlists SET playlist_songs = ?, playlist_name = ? WHERE " 1766 "playlist_id = ?, songcount = ?, time = ? ;"); 1767 1623 1768 query.bindValue(0, db_song_list_string); 1624 1769 query.bindValue(1, a_playlist->getName().utf8()); 1625 1770 query.bindValue(2, a_playlist->getDbId()); 1771 query.bindValue(3, songcount); 1772 query.bindValue(4, playtime); 1626 1773 1627 1774 query.exec(); 1628 1775 … … 1665 1812 1666 1813 MSqlQuery query(MSqlQuery::InitCon()); 1667 1814 1668 query.prepare("INSERT INTO musicplaylist (name, hostname, songlist) values (?, ?, ?) ; "); 1815 int songcount = 0, playtime = 0, an_int; 1816 QStringList list = QStringList::split(",", db_song_list_string); 1817 QStringList::iterator it = list.begin(); 1818 for (; it != list.end(); it++) 1819 { 1820 an_int = QString(*it).toInt(); 1821 if (an_int != 0) 1822 { 1823 songcount++; 1824 query.prepare("SELECT length FROM music_songs WHERE song_id = :ID ;"); 1825 query.bindValue(":ID", an_int); 1826 query.exec(); 1827 query.next(); 1828 playtime += query.value(0).toInt(); 1829 } 1830 } 1669 1831 1832 query.prepare("INSERT INTO music_saved_playlists (playlist_name, hostname, playlist_songs, songcount, time) values (?, ?, ?, ?, ?) ; "); 1833 1670 1834 query.bindValue(0, a_playlist->getName().utf8()); 1671 1835 query.bindValue(1, hostname); 1672 1836 query.bindValue(2, db_song_list_string); 1837 query.bindValue(3, songcount); 1838 query.bindValue(4, playtime); 1673 1839 1674 1840 query.exec(); 1675 1841 … … 1681 1847 return; 1682 1848 } 1683 1849 1684 query.prepare("SELECT playlist id FROM musicplaylist WHERE name = ? AND hostname = ? AND songlist= ? ; ");1850 query.prepare("SELECT playlist_id FROM music_saved_playlists WHERE playlist_name = ? AND hostname = ? AND playlist_songs = ? ; "); 1685 1851 1686 1852 query.bindValue(0, a_playlist->getName().utf8()); 1687 1853 query.bindValue(1, hostname); … … 1776 1942 1777 1943 MSqlQuery query(MSqlQuery::InitCon()); 1778 1944 1779 query.prepare("DELETE FROM music playlist WHERE playlistid = ? ; ");1945 query.prepare("DELETE FROM music_saved_playlists WHERE playlist_id = ? ; "); 1780 1946 1781 1947 query.bindValue(0, playlist_database_id); 1782 1948 -
mfd/dbcheck.cpp
9 9 #include "mythtv/mythcontext.h" 10 10 #include "mythtv/mythdbcon.h" 11 11 12 const QString currentDatabaseVersion = "100 5";12 const QString currentDatabaseVersion = "1007"; 13 13 14 14 static void UpdateDBVersionNumber(const QString &newnumber) 15 15 { … … 323 323 324 324 performActualUpdate(updates, "1005", dbver); 325 325 } 326 327 328 if (dbver == "1005") 329 { 330 const QString updates[] = { 331 "DROP TABLE musicmetadata;", 332 "DROP TABLE musicplaylist;", 333 "CREATE TABLE music_albums (album_id int(11) NOT NULL auto_increment, album_name varchar(255) NOT NULL default '', album_art text NOT NULL, PRIMARY KEY (album_id));", 334 "CREATE TABLE music_artists (artist_id int(11) NOT NULL auto_increment, artist_name varchar(255) default NULL, PRIMARY KEY (artist_id));", 335 "CREATE TABLE music_currentsong (song_id int(11) NOT NULL default '0', pl_id int(11) NOT NULL default '0', random tinyint(3) NOT NULL default '0');", 336 "CREATE TABLE music_genres (genre_id int(11) NOT NULL auto_increment, genre varchar(25) NOT NULL default '', PRIMARY KEY (genre_id));", 337 "CREATE TABLE music_playhistory (play_id int(11) NOT NULL auto_increment, song_id int(11) default NULL, date_played datetime default NULL, PRIMARY KEY (play_id));", 338 "CREATE TABLE music_playlist (pl_id int(11) NOT NULL auto_increment, song_id int(11) default NULL, PRIMARY KEY (pl_id));", 339 "CREATE TABLE music_saved_playlists (playlist_id int(11) NOT NULL auto_increment, playlist_name varchar(255) default NULL, playlist_songs text, date_created datetime default NULL, time int(11) default NULL, songcount smallint(8) default NULL, hostname VARCHAR(255), PRIMARY KEY (playlist_id));", 340 "CREATE TABLE music_songs (song_id int(11) NOT NULL auto_increment, artist_id int(11) NOT NULL default '0', compilationartist_id int(11) NOT NULL default '0', album_id int(11) NOT NULL default '0', genre_id int(11) NOT NULL default '0', year smallint(6) NOT NULL default '0', lastplay datetime default NULL, date_entered datetime default NULL, date_modified datetime default NULL, name varchar(255) default NULL, track smallint(6) NOT NULL default '0', length int(11) NOT NULL default '0', size int(11) NOT NULL default '0', bitrate int(11) NOT NULL default '0', type varchar(4) default NULL, numplays int(11) NOT NULL default '0', rating tinyint(4) NOT NULL default '0', filename text, format varchar(4) NOT NULL default '0', compilation tinyint default 0, PRIMARY KEY (song_id));", 341 "CREATE TABLE music_stats (num_artists smallint(5) unsigned NOT NULL default '0', num_albums smallint(5) unsigned NOT NULL default '0', num_songs mediumint(8) unsigned NOT NULL default '0', num_genres tinyint(3) unsigned NOT NULL default '0', total_time varchar(12) NOT NULL default '0', total_size varchar(10) NOT NULL default '0');", 342 "RENAME TABLE smartplaylist TO music_smartplaylist;", 343 "RENAME TABLE smartplaylistitem TO music_smartplaylistitem;", 344 "RENAME TABLE smartplaylistcategory TO music_smartplaylistcategory;", 345 "" 346 }; 347 performActualUpdate(updates, "1006", dbver); 348 } 349 350 if (dbver == "1006") 351 { 352 //Database Updates for use in the MFD 353 const QString updates[] = { 354 "ALTER TABLE music_songs ADD mythdigest VARCHAR(255);", 355 "ALTER TABLE music_songs ADD description VARCHAR(255);", 356 "ALTER TABLE music_songs ADD comment VARCHAR(255);", 357 "ALTER TABLE music_songs ADD disc_count SMALLINT UNSIGNED DEFAULT 0;", 358 "ALTER TABLE music_songs ADD disc_number SMALLINT UNSIGNED DEFAULT 0;", 359 "ALTER TABLE music_songs ADD track_count SMALLINT UNSIGNED DEFAULT 0;", 360 "ALTER TABLE music_songs ADD start_time INT UNSIGNED DEFAULT 0;", 361 "ALTER TABLE music_songs ADD stop_time INT UNSIGNED;", 362 "ALTER TABLE music_songs ADD eq_preset VARCHAR(255);", 363 "ALTER TABLE music_songs ADD relative_volume TINYINT DEFAULT 0;", 364 "ALTER TABLE music_songs ADD bpm SMALLINT UNSIGNED;", 365 "ALTER TABLE music_songs ADD INDEX (mythdigest);", 366 "" 367 }; 368 performActualUpdate(updates, "1007", dbver); 369 } 370 326 371 } 327 372 -
mfd/mfd.pro
24 24 TARGET = mfd 25 25 26 26 LIBS += -lmyth-$$LIBVERSION 27 LIBS += -lmythui-$$LIBVERSION -lGL 27 28 28 29 29 !isEmpty(USE_WMA_AUDIO){ 30 30 LIBS += -lmythavformat-$$LIBVERSION 31 31 LIBS += -lmythavcodec-$$LIBVERSION -
mfdlib/avfdecoder.cpp
232 232 233 233 if (output()) 234 234 { 235 output()->Reconfigure(16, audio_dec->channels, audio_dec->sample_rate );235 output()->Reconfigure(16, audio_dec->channels, audio_dec->sample_rate, false); 236 236 output()->SetSourceBitrate(audio_dec->bit_rate); 237 237 } 238 238 -
mfdlib/aacdecoder.cpp
383 383 384 384 if (output()) 385 385 { 386 output()->Reconfigure(16, channels, sample_rate );386 output()->Reconfigure(16, channels, sample_rate, false); 387 387 output()->SetSourceBitrate(bitrate); 388 388 } 389 389 -
mfdlib/wavdecoder.cpp
146 146 147 147 if (output()) 148 148 { 149 output()->Reconfigure(bits_per_sample, chan, freq );149 output()->Reconfigure(bits_per_sample, chan, freq, false); 150 150 output()->SetSourceBitrate(bitrate); 151 151 } 152 152 -
mfdlib/flacdecoder.cpp
157 157 158 158 if (output()) 159 159 { 160 output()->Reconfigure(bitspersample, chan, freq );160 output()->Reconfigure(bitspersample, chan, freq, false); 161 161 output()->SetSourceBitrate(44100 * 2 * 16); 162 162 } 163 163 -
mfdlib/cddecoder.cpp
175 175 176 176 if (output()) 177 177 { 178 output()->Reconfigure(16, chan, freq );178 output()->Reconfigure(16, chan, freq, false); 179 179 output()->SetSourceBitrate(44100 * 2 * 16); 180 180 } 181 181 -
mfdlib/maddecoder.cpp
132 132 133 133 if (output()) 134 134 { 135 output()->Reconfigure(16, channels, freq );135 output()->Reconfigure(16, channels, freq, false); 136 136 output()->SetSourceBitrate(bitrate); 137 137 } 138 138 -
mfdlib/vorbisdecoder.cpp
233 233 234 234 if (output()) 235 235 { 236 output()->Reconfigure(16, chan, freq);236 output()->Reconfigure(16, chan, freq, false); 237 237 output()->SetSourceBitrate(bitrate); 238 238 } 239 239