X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fsfdb_freesound_mootcher.cc;h=5f1711d3c8c67a679a61bb0787310bf4ba09618a;hb=9243298a7c0436cbdd216e3c5d4f3b90fe74cdf9;hp=8791f63a45b3e6e07d7d1e15d1b09ff085248641;hpb=cd3de6c9bc472ac3295b2e14453e3d4fb573081a;p=ardour.git diff --git a/gtk2_ardour/sfdb_freesound_mootcher.cc b/gtk2_ardour/sfdb_freesound_mootcher.cc index 8791f63a45..5f1711d3c8 100644 --- a/gtk2_ardour/sfdb_freesound_mootcher.cc +++ b/gtk2_ardour/sfdb_freesound_mootcher.cc @@ -221,6 +221,28 @@ std::string Mootcher::searchText(std::string word) postMessage += tempPointer; sprintf( tempPointer, "&searchtags=1"); postMessage += tempPointer; + + // Ref: http://www.freesound.org/forum/viewtopic.php?p=19081 + // const ORDER_DEFAULT = 0; + // const ORDER_DOWNLOADS_DESC = 1; + // const ORDER_DOWNLOADS_ASC = 2; + // const ORDER_USERNAME_DESC = 3; + // const ORDER_USERNAME_ASC = 4; + // const ORDER_DATE_DESC = 5; + // const ORDER_DATE_ASC = 6; + // const ORDER_DURATION_DESC = 7; + // const ORDER_DURATION_ASC = 8; + // const ORDER_FILEFORMAT_DESC = 9; + // const ORDER_FILEFORMAT_ASC = 10; + sprintf( tempPointer, "&order=1"); + postMessage += tempPointer; + sprintf( tempPointer, "&start=0"); + postMessage += tempPointer; + sprintf( tempPointer, "&limit=10"); + postMessage += tempPointer; + // The limit of 10 samples is arbitrary, but seems + // reasonable in light of the fact that all of the returned + // samples get downloaded, and downloads are s-l-o-w. if(curl) {