Fix comments.
[ardour.git] / gtk2_ardour / sfdb_freesound_mootcher.cc
index 8791f63a45b3e6e07d7d1e15d1b09ff085248641..5f1711d3c8c67a679a61bb0787310bf4ba09618a 100644 (file)
@@ -221,6 +221,28 @@ std::string        Mootcher::searchText(std::string word)
                postMessage += tempPointer;\r
                sprintf( tempPointer, "&searchtags=1");\r
                postMessage += tempPointer;\r
+\r
+               // Ref: http://www.freesound.org/forum/viewtopic.php?p=19081\r
+               // const ORDER_DEFAULT = 0;\r
+               // const ORDER_DOWNLOADS_DESC = 1;\r
+               // const ORDER_DOWNLOADS_ASC = 2;\r
+               // const ORDER_USERNAME_DESC = 3;\r
+               // const ORDER_USERNAME_ASC = 4;\r
+               // const ORDER_DATE_DESC = 5;\r
+               // const ORDER_DATE_ASC = 6;\r
+               // const ORDER_DURATION_DESC = 7;\r
+               // const ORDER_DURATION_ASC = 8;\r
+               // const ORDER_FILEFORMAT_DESC = 9;\r
+               // const ORDER_FILEFORMAT_ASC = 10;\r
+               sprintf( tempPointer, "&order=1");\r
+               postMessage += tempPointer;\r
+               sprintf( tempPointer, "&start=0");\r
+               postMessage += tempPointer;\r
+               sprintf( tempPointer, "&limit=10");\r
+               postMessage += tempPointer;\r
+               // The limit of 10 samples is arbitrary, but seems\r
+               // reasonable in light of the fact that all of the returned\r
+               // samples get downloaded, and downloads are s-l-o-w.\r
                \r
                if(curl)\r
                {\r